mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-13 06:03:37 +02:00
2017-10-15 Fred Gleason <fredg@paravelsystems.com>
* Added a 'STATIONS.SHORT_NAME' field to the database. * Incremented the database version to 270. * Added 'RDStation::shortName()' and 'RDStation::setShortName()' methods. * Removed the 'Broadcast Security Model' control from the 'Edit Host' dialog. * Added a 'Short Name' control to the 'Edit Host' dialog. * Implemented a '%R' wildcard for Rivendell Host Short Name.
This commit is contained in:
@@ -22,8 +22,8 @@
|
||||
|
||||
#include <rddatedecode.h>
|
||||
|
||||
QString RDDateDecode(QString str,const QDate &date,RDConfig *config,
|
||||
const QString &svcname)
|
||||
QString RDDateDecode(QString str,const QDate &date,RDStation *station,
|
||||
RDConfig *config,const QString &svcname)
|
||||
{
|
||||
QString string;
|
||||
int yearnum;
|
||||
@@ -122,6 +122,10 @@ QString RDDateDecode(QString str,const QDate &date,RDConfig *config,
|
||||
field=config->stationName();
|
||||
break;
|
||||
|
||||
case 'R': // Rivendell Host Short Name
|
||||
field=station->shortName();
|
||||
break;
|
||||
|
||||
case 's': // Service name
|
||||
if(!svcname.isEmpty()) {
|
||||
field=svcname;
|
||||
@@ -176,7 +180,8 @@ QString RDDateDecode(QString str,const QDate &date,RDConfig *config,
|
||||
|
||||
|
||||
QString RDDateTimeDecode(QString str,const QDateTime &datetime,
|
||||
RDConfig *config,const QString &svcname)
|
||||
RDStation *station,RDConfig *config,
|
||||
const QString &svcname)
|
||||
{
|
||||
QString string;
|
||||
int yearnum;
|
||||
@@ -303,6 +308,10 @@ QString RDDateTimeDecode(QString str,const QDateTime &datetime,
|
||||
field=config->stationName();
|
||||
break;
|
||||
|
||||
case 'R': // Rivendell Host Short Name
|
||||
field=station->shortName();
|
||||
break;
|
||||
|
||||
case 'S': // Second (SS)
|
||||
field=QString().sprintf("%02d",datetime.time().second());
|
||||
break;
|
||||
|
Reference in New Issue
Block a user