mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2026-01-15 17:11:33 +01:00
2019-10-21 Fred Gleason <fredg@paravelsystems.com>
* Added an 'RDLOGEDIT.WAVEFORM_CAPTION' field to the database. * Incremented the database version to 311. * Added a 'WaveForm Caption' control to the 'Edit RDLogEdit' dialog in rdadmin(1). * Implemented the 'WaveForm Caption' setting in the Voicetracker dialog in rdlogedit(1).
This commit is contained in:
@@ -185,6 +185,19 @@ void RDLogeditConf::setTailPreroll(unsigned length) const
|
||||
}
|
||||
|
||||
|
||||
QString RDLogeditConf::waveformCaption() const
|
||||
{
|
||||
return RDGetSqlValue("RDLOGEDIT","STATION",lib_station,"WAVEFORM_CAPTION").
|
||||
toString();
|
||||
}
|
||||
|
||||
|
||||
void RDLogeditConf::setWaveformCaption(const QString &str)
|
||||
{
|
||||
SetRow("WAVEFORM_CAPTION",str);
|
||||
}
|
||||
|
||||
|
||||
unsigned RDLogeditConf::startCart() const
|
||||
{
|
||||
return RDGetSqlValue("RDLOGEDIT","STATION",lib_station,"START_CART").toUInt();
|
||||
@@ -340,6 +353,19 @@ void RDLogeditConf::SetRow(const QString ¶m,unsigned value) const
|
||||
}
|
||||
|
||||
|
||||
void RDLogeditConf::SetRow(const QString ¶m,const QString &value) const
|
||||
{
|
||||
RDSqlQuery *q;
|
||||
QString sql;
|
||||
|
||||
sql=QString("update RDLOGEDIT set ")+
|
||||
param+"=\""+RDEscapeString(value)+"\" where "+
|
||||
"STATION=\""+RDEscapeString(lib_station)+"\"",
|
||||
q=new RDSqlQuery(sql);
|
||||
delete q;
|
||||
}
|
||||
|
||||
|
||||
void RDLogeditConf::SetRow(const QString ¶m,bool value) const
|
||||
{
|
||||
RDSqlQuery *q;
|
||||
|
||||
Reference in New Issue
Block a user