mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-11-26 15:20:29 +01:00
2020-10-07 Fred Gleason <fredg@paravelsystems.com>
* Added a 'SERVICES.SUB_EVENT_INHERITANCE' field to the database. * Incremented the database version to 339. * Added 'RDSvc::subEventInheritance()' and 'RDSvc::setSubEventInheritance()' methods. * Added an 'Inline Traffic Inheritance' control to the 'Edit Service' dialog in rdadmin(1). Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
/*
|
||||
* Current Database Version
|
||||
*/
|
||||
#define RD_VERSION_DATABASE 338
|
||||
#define RD_VERSION_DATABASE 339
|
||||
|
||||
|
||||
#endif // DBVERSION_H
|
||||
|
||||
@@ -207,6 +207,19 @@ void RDSvc::setChainto(bool state) const
|
||||
}
|
||||
|
||||
|
||||
RDSvc::SubEventInheritance RDSvc::subEventInheritance() const
|
||||
{
|
||||
return (RDSvc::SubEventInheritance)
|
||||
RDGetSqlValue("SERVICES","NAME",svc_name,"SUB_EVENT_INHERITANCE").toInt();
|
||||
}
|
||||
|
||||
|
||||
void RDSvc::setSubEventInheritance(RDSvc::SubEventInheritance inherit) const
|
||||
{
|
||||
SetRow("SUB_EVENT_INHERITANCE",inherit);
|
||||
}
|
||||
|
||||
|
||||
QString RDSvc::importTemplate(ImportSource src) const
|
||||
{
|
||||
QString fieldname=SourceString(src)+"IMPORT_TEMPLATE";
|
||||
|
||||
@@ -40,6 +40,7 @@ class RDSvc : public QObject
|
||||
Title=6,StartHours=7,StartMinutes=8,StartSeconds=9,
|
||||
LengthHours=10,LengthMinutes=11,LengthSeconds=12};
|
||||
enum ShelflifeOrigin {OriginAirDate=0,OriginCreationDate=1};
|
||||
enum SubEventInheritance {ParentEvent=0,SchedFile=1};
|
||||
RDSvc(QString svcname,RDStation *station,RDConfig *config,QObject *parent=0);
|
||||
QString name() const;
|
||||
bool exists() const;
|
||||
@@ -67,6 +68,8 @@ class RDSvc : public QObject
|
||||
void setIncludeImportMarkers(bool state);
|
||||
bool chainto() const;
|
||||
void setChainto(bool state) const;
|
||||
SubEventInheritance subEventInheritance() const;
|
||||
void setSubEventInheritance(SubEventInheritance inherit) const;
|
||||
QString importTemplate(ImportSource src) const;
|
||||
void setImportTemplate(ImportSource src,const QString &str) const;
|
||||
QString breakString() const;
|
||||
|
||||
Reference in New Issue
Block a user