mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-05-30 07:32:32 +02:00
2017-10-03 Fred Gleason <fredg@paravelsystems.com>
* Implemented the '%s' wildcard in the report file path.
This commit is contained in:
parent
75883359b9
commit
70147e9345
@ -16037,3 +16037,5 @@
|
||||
in the [Provisioning] section of rd.conf(5).
|
||||
2017-10-02 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Added an '%s' datetime wildcard for Service Name.
|
||||
2017-10-03 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Implemented the '%s' wildcard in the report file path.
|
||||
|
@ -39,9 +39,11 @@ bool RDReport::ExportBmiEmr(const QDate &startdate,const QDate &enddate,
|
||||
QString station_format=stationFormat();
|
||||
|
||||
#ifdef WIN32
|
||||
QString filename=RDDateDecode(exportPath(RDReport::Windows),startdate);
|
||||
QString filename=
|
||||
RDDateDecode(exportPath(RDReport::Windows),startdate,serviceName());
|
||||
#else
|
||||
QString filename=RDDateDecode(exportPath(RDReport::Linux),startdate);
|
||||
QString filename=
|
||||
RDDateDecode(exportPath(RDReport::Linux),startdate,serviceName());
|
||||
#endif
|
||||
|
||||
//
|
||||
|
@ -41,9 +41,11 @@ bool RDReport::ExportCutLog(const QDate &startdate,const QDate &enddate,
|
||||
QString cart_num;
|
||||
|
||||
#ifdef WIN32
|
||||
QString filename=RDDateDecode(exportPath(RDReport::Windows),startdate);
|
||||
QString filename=
|
||||
RDDateDecode(exportPath(RDReport::Windows),startdate,serviceName());
|
||||
#else
|
||||
QString filename=RDDateDecode(exportPath(RDReport::Linux),startdate);
|
||||
QString filename=
|
||||
RDDateDecode(exportPath(RDReport::Linux),startdate,serviceName());
|
||||
#endif
|
||||
|
||||
QFile file(filename);
|
||||
|
@ -43,9 +43,11 @@ bool RDReport::ExportDeltaflex(const QDate &startdate,const QDate &enddate,
|
||||
QString air_fmt;
|
||||
|
||||
#ifdef WIN32
|
||||
QString filename=RDDateDecode(exportPath(RDReport::Windows),startdate);
|
||||
QString filename=
|
||||
RDDateDecode(exportPath(RDReport::Windows),startdate,serviceName());
|
||||
#else
|
||||
QString filename=RDDateDecode(exportPath(RDReport::Linux),startdate);
|
||||
QString filename=
|
||||
RDDateDecode(exportPath(RDReport::Linux),startdate,serviceName());
|
||||
#endif
|
||||
|
||||
QFile file(filename);
|
||||
|
@ -41,9 +41,11 @@ bool RDReport::ExportMusicClassical(const QDate &startdate,const QDate &enddate,
|
||||
QString cart_num;
|
||||
|
||||
#ifdef WIN32
|
||||
QString filename=RDDateDecode(exportPath(RDReport::Windows),startdate);
|
||||
QString filename=
|
||||
RDDateDecode(exportPath(RDReport::Windows),startdate,serviceName());
|
||||
#else
|
||||
QString filename=RDDateDecode(exportPath(RDReport::Linux),startdate);
|
||||
QString filename=
|
||||
RDDateDecode(exportPath(RDReport::Linux),startdate,serviceName());
|
||||
#endif
|
||||
|
||||
QFile file(filename);
|
||||
|
@ -41,9 +41,11 @@ bool RDReport::ExportMusicPlayout(const QDate &startdate,const QDate &enddate,
|
||||
QString cart_num;
|
||||
|
||||
#ifdef WIN32
|
||||
QString filename=RDDateDecode(exportPath(RDReport::Windows),startdate);
|
||||
QString filename=
|
||||
RDDateDecode(exportPath(RDReport::Windows),startdate,serviceName());
|
||||
#else
|
||||
QString filename=RDDateDecode(exportPath(RDReport::Linux),startdate);
|
||||
QString filename=
|
||||
RDDateDecode(exportPath(RDReport::Linux),startdate,serviceName());
|
||||
#endif
|
||||
|
||||
QFile file(filename);
|
||||
|
@ -40,9 +40,11 @@ bool RDReport::ExportMusicSummary(const QDate &startdate,const QDate &enddate,
|
||||
QString str;
|
||||
|
||||
#ifdef WIN32
|
||||
QString filename=RDDateDecode(exportPath(RDReport::Windows),startdate);
|
||||
QString filename=
|
||||
RDDateDecode(exportPath(RDReport::Windows),startdate,serviceName());
|
||||
#else
|
||||
QString filename=RDDateDecode(exportPath(RDReport::Linux),startdate);
|
||||
QString filename=
|
||||
RDDateDecode(exportPath(RDReport::Linux),startdate,serviceName());
|
||||
#endif
|
||||
|
||||
QFile file(filename);
|
||||
|
@ -51,9 +51,11 @@ bool RDReport::ExportNprSoundEx(const QDate &startdate,const QDate &enddate,
|
||||
QString channel_name=stationId();
|
||||
|
||||
#ifdef WIN32
|
||||
QString filename=RDDateDecode(exportPath(RDReport::Windows),startdate);
|
||||
QString filename=
|
||||
RDDateDecode(exportPath(RDReport::Windows),startdate,serviceName());
|
||||
#else
|
||||
QString filename=RDDateDecode(exportPath(RDReport::Linux),startdate);
|
||||
QString filename=
|
||||
RDDateDecode(exportPath(RDReport::Linux),startdate,serviceName());
|
||||
#endif
|
||||
if((f=fopen(filename,"wb"))==NULL) {
|
||||
report_error_code=RDReport::ErrorCantOpen;
|
||||
|
@ -38,9 +38,11 @@ bool RDReport::ExportRadioTraffic(const QDate &startdate,const QDate &enddate,
|
||||
QString air_fmt;
|
||||
|
||||
#ifdef WIN32
|
||||
QString filename=RDDateDecode(exportPath(RDReport::Windows),startdate);
|
||||
QString filename=
|
||||
RDDateDecode(exportPath(RDReport::Windows),startdate,serviceName());
|
||||
#else
|
||||
QString filename=RDDateDecode(exportPath(RDReport::Linux),startdate);
|
||||
QString filename=
|
||||
RDDateDecode(exportPath(RDReport::Linux),startdate,serviceName());
|
||||
#endif
|
||||
|
||||
QFile file(filename);
|
||||
|
@ -48,9 +48,11 @@ bool RDReport::ExportSoundEx(const QDate &startdate,const QDate &enddate,
|
||||
QString channel_name=stationId();
|
||||
|
||||
#ifdef WIN32
|
||||
QString filename=RDDateDecode(exportPath(RDReport::Windows),startdate);
|
||||
QString filename=
|
||||
RDDateDecode(exportPath(RDReport::Windows),startdate,serviceName());
|
||||
#else
|
||||
QString filename=RDDateDecode(exportPath(RDReport::Linux),startdate);
|
||||
QString filename=
|
||||
RDDateDecode(exportPath(RDReport::Linux),startdate,serviceName());
|
||||
#endif
|
||||
|
||||
//
|
||||
|
@ -50,9 +50,11 @@ bool RDReport::ExportSpinCount(const QDate &startdate,const QDate &enddate,
|
||||
|
||||
|
||||
#ifdef WIN32
|
||||
QString filename=RDDateDecode(exportPath(RDReport::Windows),startdate);
|
||||
QString filename=
|
||||
RDDateDecode(exportPath(RDReport::Windows),startdate,serviceName());
|
||||
#else
|
||||
QString filename=RDDateDecode(exportPath(RDReport::Linux),startdate);
|
||||
QString filename=
|
||||
RDDateDecode(exportPath(RDReport::Linux),startdate,serviceName());
|
||||
#endif
|
||||
|
||||
QFile file(filename);
|
||||
|
@ -44,9 +44,11 @@ bool RDReport::ExportTechnical(const QDate &startdate,const QDate &enddate,
|
||||
char eol[3]="\n";
|
||||
|
||||
#ifdef WIN32
|
||||
QString filename=RDDateDecode(exportPath(RDReport::Windows),startdate);
|
||||
QString filename=
|
||||
RDDateDecode(exportPath(RDReport::Windows),startdate,serviceName());
|
||||
#else
|
||||
QString filename=RDDateDecode(exportPath(RDReport::Linux),startdate);
|
||||
QString filename=
|
||||
RDDateDecode(exportPath(RDReport::Linux),startdate,serviceName());
|
||||
if(incl_crs) {
|
||||
strcpy(eol,"\r\n");
|
||||
}
|
||||
|
@ -42,9 +42,11 @@ bool RDReport::ExportTextLog(const QDate &startdate,const QDate &enddate,
|
||||
QString cart_num;
|
||||
|
||||
#ifdef WIN32
|
||||
QString filename=RDDateDecode(exportPath(RDReport::Windows),startdate);
|
||||
QString filename=
|
||||
RDDateDecode(exportPath(RDReport::Windows),startdate,serviceName());
|
||||
#else
|
||||
QString filename=RDDateDecode(exportPath(RDReport::Linux),startdate);
|
||||
QString filename=
|
||||
RDDateDecode(exportPath(RDReport::Linux),startdate,serviceName());
|
||||
#endif
|
||||
|
||||
QFile file(filename);
|
||||
|
@ -253,7 +253,8 @@ void TestImport::importData()
|
||||
void TestImport::dateChangedData(const QDate &date)
|
||||
{
|
||||
test_filename_edit->
|
||||
setText(RDDateDecode(test_svc->importPath(test_src,RDSvc::Linux),date));
|
||||
setText(RDDateDecode(test_svc->importPath(test_src,RDSvc::Linux),date,
|
||||
test_svc->name()));
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user