mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-17 16:11:12 +02:00
2021-08-31 Fred Gleason <fredg@paravelsystems.com>
* Added a 'SERVICES.INCLUDE_MUS_IMPORT_MARKERS' field to the database. * Added a 'SERVICES.INCLUDE_TFC_IMPORT_MARKERS' field to the database. * Added a 'LOGS.INCLUDE_MUS_IMPORT_MARKERS' field to the database. * Added a 'LOGS.INCLUDE_TFC_IMPORT_MARKERS' field to the database. * Incremented the database version to 354. * Replaced the 'Include Import Marker in Finished Logs' checkbox with 'Include Music Import Markers in Finished Logs' and 'Include Traffic Import Markers in Finished Logs' checkboxes in the 'Edit Service' dialog in rdadmin(1). Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -232,15 +232,23 @@ void RDLog::setCompletedTracks(unsigned tracks) const
|
||||
}
|
||||
|
||||
|
||||
bool RDLog::includeImportMarkers() const
|
||||
bool RDLog::includeImportMarkers(RDLog::Source src) const
|
||||
{
|
||||
return RDBool(GetStringValue("INCLUDE_IMPORT_MARKERS"));
|
||||
if(src==RDLog::SourceMusic) {
|
||||
return RDBool(GetStringValue("INCLUDE_MUS_IMPORT_MARKERS"));
|
||||
}
|
||||
return RDBool(GetStringValue("INCLUDE_TFC_IMPORT_MARKERS"));
|
||||
}
|
||||
|
||||
|
||||
void RDLog::setIncludeImportMarkers(bool state)
|
||||
void RDLog::setIncludeImportMarkers(RDLog::Source src,bool state)
|
||||
{
|
||||
SetRow("INCLUDE_IMPORT_MARKERS",RDYesNo(state));
|
||||
if(src==RDLog::SourceMusic) {
|
||||
SetRow("INCLUDE_MUS_IMPORT_MARKERS",RDYesNo(state));
|
||||
}
|
||||
else {
|
||||
SetRow("INCLUDE_TFC_IMPORT_MARKERS",RDYesNo(state));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user