mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2026-01-11 07:05:48 +01:00
2018-05-17 Fred Gleason <fredg@paravelsystems.com>
* Added virtual log entries to the 'LOG_MODES' table. * Incremented the database version to 280. * Added a control for setting vLog start modes to the 'Log Mode Control' section of the 'Configure RDAirPlay' dialog in rdadmin(1).
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
/*
|
||||
* Current Database Version
|
||||
*/
|
||||
#define RD_VERSION_DATABASE 279
|
||||
#define RD_VERSION_DATABASE 280
|
||||
|
||||
|
||||
#endif // DBVERSION_H
|
||||
|
||||
@@ -718,6 +718,13 @@ bool RDStation::create(const QString &name,QString *err_msg,
|
||||
q=new RDSqlQuery(sql);
|
||||
delete q;
|
||||
}
|
||||
for(int i=0;i<RD_RDVAIRPLAY_LOG_QUAN;i++) {
|
||||
sql=QString("insert into RDAIRPLAY_CHANNELS set ")+
|
||||
"STATION_NAME=\""+RDEscapeString(name)+"\","+
|
||||
QString().sprintf("INSTANCE=%u",i+RD_RDVAIRPLAY_LOG_BASE);
|
||||
q=new RDSqlQuery(sql);
|
||||
delete q;
|
||||
}
|
||||
for(unsigned i=0;i<RD_CUT_EVENT_ID_QUAN;i++) {
|
||||
for(unsigned j=0;j<MAX_DECKS;j++) {
|
||||
sql=QString("insert into DECK_EVENTS set ")+
|
||||
@@ -739,6 +746,13 @@ bool RDStation::create(const QString &name,QString *err_msg,
|
||||
q=new RDSqlQuery(sql);
|
||||
delete q;
|
||||
}
|
||||
for(int i=0;i<RD_RDVAIRPLAY_LOG_QUAN;i++) {
|
||||
sql=QString().sprintf("insert into LOG_MODES set ")+
|
||||
"STATION_NAME=\""+RDEscapeString(name)+"\","+
|
||||
QString().sprintf("MACHINE=%d",i+RD_RDVAIRPLAY_LOG_BASE);
|
||||
q=new RDSqlQuery(sql);
|
||||
delete q;
|
||||
}
|
||||
|
||||
//
|
||||
// Log Machine Parameters
|
||||
@@ -1744,8 +1758,8 @@ bool RDStation::create(const QString &name,QString *err_msg,
|
||||
"UDP_PORT,"+ // 11
|
||||
"UDP_STRING,"+ // 12
|
||||
"LOG_RML "+ // 13
|
||||
"from LOG_MACHINES where ";
|
||||
"STATION_NAME=\""+RDEscapeString(exemplar)+"\"";
|
||||
"from LOG_MACHINES where "+
|
||||
"STATION_NAME=\""+RDEscapeString(exemplar)+"\"";
|
||||
q=new RDSqlQuery(sql,false);
|
||||
while(q->next()) {
|
||||
sql=QString("insert into LOG_MACHINES set ")+
|
||||
|
||||
Reference in New Issue
Block a user