mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-13 06:03:37 +02:00
2020-08-07 Fred Gleason <fredg@paravelsystems.com>
* Added a 'SYSTEM.RSS_PROCESSOR_STATION' field to the database. * Added a 'PODCASTS.EXPIRATION_DATETIME' field to the database. * Dropped the 'PODCASTS.SHELF_LIFE' field from the database. * Incremented the database version to 329. * Modified convention to use local system time for all podcast components. * Added 'RDPodcast::expirationDateTime()' and 'RDPodcast::setExpirationDateTime()' methods. * Removed 'RDPodcast::shelfLife()' and 'RDPodcast::setShelfLife()' methods. * Added an rdrssd(8) daemon. * Removed the rdpurgecasts(8) utility. * Added 'RDSystem::rssProcessorStation()' and 'RDSystem::setRssProcessorStation()' methods. * Added a 'Process RSS Updates' control to the 'System-Wide Settings' dialog in rdadmin(1). Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -187,6 +187,18 @@ void RDSystem::setNotificationAddress(const QHostAddress &addr)
|
||||
}
|
||||
|
||||
|
||||
QString RDSystem::rssProcessorStation() const
|
||||
{
|
||||
return GetValue("RSS_PROCESSOR_STATION").toString();
|
||||
}
|
||||
|
||||
|
||||
void RDSystem::setRssProcessorStation(const QString &str) const
|
||||
{
|
||||
SetRow("RSS_PROCESSOR_STATION",str);
|
||||
}
|
||||
|
||||
|
||||
QString RDSystem::xml() const
|
||||
{
|
||||
QString xml="<systemSettings>\n";
|
||||
@@ -218,24 +230,25 @@ QVariant RDSystem::GetValue(const QString &field) const
|
||||
|
||||
void RDSystem::SetRow(const QString ¶m,QString value) const
|
||||
{
|
||||
RDSqlQuery *q;
|
||||
QString sql;
|
||||
|
||||
// value.replace("\\","\\\\"); // Needed to preserve Windows pathnames
|
||||
sql=QString("update SYSTEM set ")+
|
||||
param+"=\""+RDEscapeString(value)+"\"";
|
||||
q=new RDSqlQuery(sql);
|
||||
delete q;
|
||||
if(value.isNull()) {
|
||||
sql=QString("update SYSTEM set ")+
|
||||
param+"=NULL";
|
||||
}
|
||||
else {
|
||||
sql=QString("update SYSTEM set ")+
|
||||
param+"=\""+RDEscapeString(value)+"\"";
|
||||
}
|
||||
RDSqlQuery::apply(sql);
|
||||
}
|
||||
|
||||
|
||||
void RDSystem::SetRow(const QString ¶m,int value) const
|
||||
{
|
||||
RDSqlQuery *q;
|
||||
QString sql;
|
||||
|
||||
sql=QString("update SYSTEM set ")+
|
||||
param+QString().sprintf("=%d",value);
|
||||
q=new RDSqlQuery(sql);
|
||||
delete q;
|
||||
RDSqlQuery::apply(sql);
|
||||
}
|
||||
|
Reference in New Issue
Block a user