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:
Fred Gleason
2020-08-07 17:06:50 -04:00
parent 7d62e200ba
commit e0af63d3e1
45 changed files with 818 additions and 438 deletions

View File

@@ -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 &param,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 &param,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);
}