2018-02-15 Fred Gleason <fredg@paravelsystems.com>

* Added a 'SERVICES.LOG_SHELFLIFE_ORIGIN' field to the database.
	* Incremented the database version to 275.
	* Added a drop-down control to the 'Set Logs to auto-delete' control
	to allow origin to be specified in the 'Edit Service' dialog in
	rdadmin(1).
This commit is contained in:
Fred Gleason
2018-02-15 09:39:37 -05:00
parent 948ccf4d8f
commit 8f1bd700cd
23 changed files with 187 additions and 49 deletions

View File

@@ -40,6 +40,7 @@ class RDSvc : public QObject
enum ImportField {CartNumber=0,ExtData=3,ExtEventId=4,ExtAnncType=5,
Title=6,StartHours=7,StartMinutes=8,StartSeconds=9,
LengthHours=10,LengthMinutes=11,LengthSeconds=12};
enum ShelflifeOrigin {OriginAirDate=0,OriginCreationDate=1};
RDSvc(QString svcname,RDStation *station,RDConfig *config,QObject *parent=0);
QString name() const;
bool exists() const;
@@ -59,6 +60,8 @@ class RDSvc : public QObject
void setAutoRefresh(bool state);
int defaultLogShelflife() const;
void setDefaultLogShelflife(int days) const;
ShelflifeOrigin logShelflifeOrigin() const;
void setLogShelflifeOrigin(ShelflifeOrigin orig);
int elrShelflife() const;
void setElrShelflife(int days) const;
bool chainto() const;