2023-06-01 Fred Gleason <fredg@paravelsystems.com>

* Fixed a bug that would cause 'failed to load translation file'
	warnings to be sent to the Apache error log.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason 2023-06-01 15:48:34 -04:00
parent ef6165184e
commit 210bb8bca7
59 changed files with 105 additions and 65 deletions

View File

@ -24202,3 +24202,6 @@
* Refactored the WebAPI HTML test harnesses to allow testing via both
'multipart/form-data' and 'application/x-www-form-urlencoded'
encodings.
2023-06-01 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug that would cause 'failed to load translation file'
warnings to be sent to the Apache error log.

View File

@ -91,7 +91,8 @@ MainObject::MainObject(QObject *parent)
//
// Open Database
//
rda=static_cast<RDApplication *>(new RDCoreApplication("caed","caed",CAED_USAGE,this));
rda=static_cast<RDApplication *>(new RDCoreApplication("caed","caed",
CAED_USAGE,false,this));
if(!rda->open(&err_msg,&err_type,false)) {
fprintf(stderr,"caed: %s\n",err_msg.toUtf8().constData());
exit(1);

View File

@ -2,7 +2,7 @@
//
// A Library import filter for the Prophet NexGen system
//
// (C) Copyright 2012-2021 Fred Gleason <fredg@paravelsystems.com>
// (C) Copyright 2012-2023 Fred Gleason <fredg@paravelsystems.com>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
@ -62,7 +62,8 @@ MainObject::MainObject(QObject *parent)
//
// Open the Database
//
rda=static_cast<RDApplication *>(new RDCoreApplication("nexgen_filter","nexgen_filter",NEXGEN_FILTER_USAGE,this));
rda=static_cast<RDApplication *>(new RDCoreApplication("nexgen_filter",
"nexgen_filter",NEXGEN_FILTER_USAGE,false,this));
if(!rda->open(&err_msg,NULL,false)) {
fprintf(stderr,"nexgen_filter: %s\n",err_msg.toUtf8().constData());
exit(1);

View File

@ -2,7 +2,7 @@
//
// A Library import filter for the Airforce Wings system
//
// (C) Copyright 2002-2021 Fred Gleason <fredg@paravelsystems.com>
// (C) Copyright 2002-2023 Fred Gleason <fredg@paravelsystems.com>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
@ -50,7 +50,8 @@ MainObject::MainObject(QObject *parent)
//
// Open the Database
//
rda=static_cast<RDApplication *>(new RDCoreApplication("wings_filter","wings_filter",WINGS_FILTER_USAGE,this));
rda=static_cast<RDApplication *>(new RDCoreApplication("wings_filter",
"wings_filter",WINGS_FILTER_USAGE,false,this));
if(!rda->open(&err_msg,NULL,false)) {
fprintf(stderr,"wings_filter: %s\n",err_msg.toUtf8().constData());
exit(1);

View File

@ -25,8 +25,9 @@
RDApplication *rda=NULL;
RDApplication::RDApplication(const QString &module_name,const QString &cmdname,
const QString &usage,QObject *parent)
: RDCoreApplication(module_name,cmdname,usage,parent)
const QString &usage,bool use_translations,
QObject *parent)
: RDCoreApplication(module_name,cmdname,usage,use_translations,parent)
{
app_icon_engine=new RDIconEngine();
}

View File

@ -29,7 +29,7 @@ class RDApplication : public RDCoreApplication
Q_OBJECT;
public:
RDApplication(const QString &module_name,const QString &cmdname,
const QString &usage,QObject *parent);
const QString &usage,bool use_translations,QObject *parent);
~RDApplication();
RDIconEngine *iconEngine() const;
static QString locale();

View File

@ -45,7 +45,8 @@ void __RDCoreApplication_ExitCallback()
RDCoreApplication::RDCoreApplication(const QString &module_name,
const QString &cmdname,
const QString &usage,QObject *parent)
const QString &usage,bool use_translations,
QObject *parent)
: QObject(parent)
{
app_module_name=module_name;
@ -81,7 +82,7 @@ RDCoreApplication::RDCoreApplication(const QString &module_name,
//
// Translations
//
rdt=new RDTranslator(app_command_name,this);
rdt=new RDTranslator(app_command_name,use_translations,this);
atexit(__RDCoreApplication_ExitCallback);
}

View File

@ -56,7 +56,7 @@ class RDCoreApplication : public QObject
ExitInvalidCart=16,ExitNoSchedCode=17,
ExitBadTicket=18,ExitNoStation=19,ExitLast=20};
RDCoreApplication(const QString &module_name,const QString &cmdname,
const QString &usage,QObject *parent=0);
const QString &usage,bool use_translations,QObject *parent);
~RDCoreApplication();
bool open(QString *err_msg,ErrorType *err_type,bool check_svc);
RDAirPlayConf *airplayConf();

View File

@ -26,13 +26,14 @@
RDTranslator *rdt=NULL;
RDTranslator::RDTranslator(const QString &cmdname,QObject *parent)
RDTranslator::RDTranslator(const QString &cmdname,bool use_translations,
QObject *parent)
: QObject(parent)
{
d_command_name=cmdname;
QString loc=RDApplication::locale().left(2)+".qm";
if(loc.left(2)!="en") { // There are no English translations
if(use_translations&&(loc.left(2)!="en")) { // There are no English translations
LoadTranslation("qt_"+loc,"/usr/share/qt5/translations");
LoadTranslation("librd_"+loc,"/usr/share/rivendell");
LoadTranslation("rdhpi_"+loc,"/usr/share/rivendell");

View File

@ -27,7 +27,7 @@ class RDTranslator : public QObject
{
Q_OBJECT;
public:
RDTranslator(const QString &cmdname,QObject *parent=0);
RDTranslator(const QString &cmdname,bool use_translations,QObject *parent=0);
private:
bool LoadTranslation(const QString &filename,const QString &dirname);

View File

@ -83,7 +83,7 @@ MainWidget::MainWidget(RDConfig *config,RDWidget *parent)
//
// Open the Database
//
rda=new RDApplication("RDAdmin","rdadmin",RDADMIN_USAGE,this);
rda=new RDApplication("RDAdmin","rdadmin",RDADMIN_USAGE,true,this);
if(!rda->open(&err_msg,&err_type,false)) {
if(err_type!=RDApplication::ErrorNoHostEntry) {
QMessageBox::critical(this,"RDAdmin - "+tr("Error"),err_msg);

View File

@ -73,7 +73,7 @@ MainWidget::MainWidget(RDConfig *config,QWidget *parent)
//
// Open the Database
//
rda=new RDApplication("RDAirPlay","rdairplay",RDAIRPLAY_USAGE,this);
rda=new RDApplication("RDAirPlay","rdairplay",RDAIRPLAY_USAGE,true,this);
if(!rda->open(&err_msg,NULL,true)) {
QMessageBox::critical(this,"RDAirPlay - "+tr("Error"),err_msg);
exit(1);

View File

@ -34,7 +34,7 @@ MainWidget::MainWidget(RDConfig *c,QWidget *parent)
//
// Open the Database
//
rda=new RDApplication("RDCartSlots","rdcartslots",RDCARTSLOTS_USAGE,this);
rda=new RDApplication("RDCartSlots","rdcartslots",RDCARTSLOTS_USAGE,true,this);
if(!rda->open(&err_msg,NULL,false)) {
QMessageBox::critical(this,"RDCartSlots - "+tr("Error"),err_msg);
exit(1);

View File

@ -57,7 +57,7 @@ MainWidget::MainWidget(RDConfig *c,QWidget *parent)
//
// Open the Database/
//
rda=new RDApplication("RDCastManager","rdcastmanager",RDCASTMANAGER_USAGE,
rda=new RDApplication("RDCastManager","rdcastmanager",RDCASTMANAGER_USAGE,true,
this);
if(!rda->open(&err_msg,NULL,true)) {
QMessageBox::critical(this,"RDCastManager - "+tr("Error"),err_msg);

View File

@ -66,7 +66,7 @@ MainWidget::MainWidget(RDConfig *c,QWidget *parent)
//
// Open the Database
//
rda=new RDApplication("RDCatch","rdcatch",RDCATCH_USAGE,this);
rda=new RDApplication("RDCatch","rdcatch",RDCATCH_USAGE,true,this);
if(!rda->open(&err_msg,NULL,true)) {
QMessageBox::critical(this,"RDCatch - "+tr("Error"),err_msg);
exit(1);

View File

@ -90,7 +90,7 @@ MainObject::MainObject(QObject *parent)
// Open the Database
//
rda=static_cast<RDApplication *>(new RDCoreApplication("rdcatchd","rdcatchd",
RDCATCHD_USAGE,this));
RDCATCHD_USAGE,false,this));
if(!rda->open(&err_msg,&err_type,false)) {
fprintf(stderr,"rdcatchd: %s\n",err_msg.toUtf8().constData());
exit(1);

View File

@ -86,7 +86,7 @@ MainWidget::MainWidget(RDConfig *c,QWidget *parent)
//
// Open the Database
//
rda=new RDApplication("RDLibrary","rdlibrary",RDLIBRARY_USAGE,this);
rda=new RDApplication("RDLibrary","rdlibrary",RDLIBRARY_USAGE,true,this);
if(!rda->open(&err_msg,NULL,true)) {
QMessageBox::critical(this,"RDLibrary - "+tr("Error"),err_msg);
exit(1);

View File

@ -60,7 +60,7 @@ MainWidget::MainWidget(RDConfig *c,QWidget *parent)
//
// Open the Database
//
rda=new RDApplication("RDLogEdit","rdlogedit",RDLOGEDIT_USAGE,this);
rda=new RDApplication("RDLogEdit","rdlogedit",RDLOGEDIT_USAGE,true,this);
if(!rda->open(&err_msg,NULL,true)) {
QMessageBox::critical(this,"RDLogEdit - "+tr("Error"),err_msg);
exit(1);

View File

@ -47,7 +47,7 @@ MainWidget::MainWidget(RDConfig *c,QWidget *parent)
//
// Open the database
//
rda=new RDApplication("RDLogin","rdlogin",RDLOGIN_USAGE,this);
rda=new RDApplication("RDLogin","rdlogin",RDLOGIN_USAGE,true,this);
if(!rda->open(&err_msg,NULL,true)) {
QMessageBox::critical(this,"RDLogin - "+tr("Error"),err_msg);
exit(1);

View File

@ -46,7 +46,7 @@ int RunReportOperation(int argc,char *argv[],const QString &rptname,
}
rda=static_cast<RDApplication *>(new RDCoreApplication("RDLogManager",
"rdlogmanager",RDLOGMANAGER_USAGE));
"rdlogmanager",RDLOGMANAGER_USAGE,true,NULL));
if(!rda->open(&err_msg,NULL,true)) {
fprintf(stderr,"rdlogmanager: %s\n",err_msg.toUtf8().constData());
exit(RDApplication::ExitNoDb);

View File

@ -44,7 +44,8 @@ LogObject::LogObject(const QString &svcname,int start_offset,
//
// Open the Database
//
rda=static_cast<RDApplication *>(new RDCoreApplication("RDLogManager","rdlogmanager",""));
rda=static_cast<RDApplication *>(new RDCoreApplication("RDLogManager",
"rdlogmanager","",true,NULL));
if(!rda->open(&err_msg,NULL,false)) {
fprintf(stderr,"rdlogmanager: %s\n",err_msg.toUtf8().constData());
exit(RDApplication::ExitNoDb);

View File

@ -52,7 +52,8 @@ MainWidget::MainWidget(RDConfig *c,QWidget *parent)
//
// Open the Database
//
rda=new RDApplication("RDLogManager","rdlogmanager",RDLOGMANAGER_USAGE,this);
rda=new RDApplication("RDLogManager","rdlogmanager",RDLOGMANAGER_USAGE,true,
this);
if(!rda->open(&err_msg,NULL,true)) {
QMessageBox::critical(this,"RDLogManager - "+tr("Error"),err_msg);
exit(RDApplication::ExitNoDb);

View File

@ -54,7 +54,8 @@ MainObject::MainObject(QObject *parent)
//
// Open the Database
//
rda=static_cast<RDApplication *>(new RDCoreApplication("rdpadengined","rdpadengined",RDPADENGINED_USAGE,this));
rda=static_cast<RDApplication *>(new RDCoreApplication("rdpadengined",
"rdpadengined",RDPADENGINED_USAGE,false,this));
if(!rda->open(&err_msg,&err_type,false)) {
fprintf(stderr,"rdpadengined: %s\n",err_msg.toUtf8().constData());
exit(1);

View File

@ -53,7 +53,7 @@ MainWidget::MainWidget(RDConfig *c,QWidget *parent)
//
// Open the Database
//
rda=new RDApplication("RDPanel","rdpanel",RDPANEL_USAGE,this);
rda=new RDApplication("RDPanel","rdpanel",RDPANEL_USAGE,true,this);
if(!rda->open(&err_msg,NULL,true)) {
QMessageBox::critical(this,"RDPanel - "+tr("Error"),err_msg);
exit(1);

View File

@ -71,7 +71,8 @@ MainObject::MainObject(QObject *parent)
//
// Open the Database
//
rda=static_cast<RDApplication *>(new RDCoreApplication("rdrepld","rdrepld",RDREPLD_USAGE,this));
rda=static_cast<RDApplication *>(new RDCoreApplication("rdrepld","rdrepld",
RDREPLD_USAGE,false,this));
if(!rda->open(&err_msg,&err_type,false)) {
fprintf(stderr,"rdrepld: %s\n",err_msg.toUtf8().constData());
exit(1);

View File

@ -39,7 +39,8 @@ MainObject::MainObject(QObject *parent)
//
// Open the Database
//
rda=static_cast<RDApplication *>(new RDCoreApplication("rdrssd","rdrssd",RDRSSD_USAGE,this));
rda=static_cast<RDApplication *>(new RDCoreApplication("rdrssd","rdrssd",
RDRSSD_USAGE,false,this));
if(!rda->open(&err_msg,&err_type,false)) {
fprintf(stderr,"rdrssd: %s\n",err_msg.toUtf8().constData());
exit(1);

View File

@ -66,7 +66,8 @@ MainObject::MainObject(QObject *parent)
//
// Open the Database
//
rda=static_cast<RDApplication *>(new RDCoreApplication("rdservice","rdservice","\n\n",this));
rda=static_cast<RDApplication *>(new RDCoreApplication("rdservice","rdservice",
"\n\n",false,this));
if(!rda->open(&err_msg,&err_type,false)) {
rda->syslog(LOG_ERR,"unable to open database [%s]",
err_msg.toUtf8().constData());

View File

@ -66,7 +66,8 @@ MainObject::MainObject(QObject *parent)
//
// Open the Database
//
rda=static_cast<RDApplication *>(new RDCoreApplication("rdvairplayd","rdvairplayd",RDVAIRPLAYD_USAGE,this));
rda=static_cast<RDApplication *>(new RDCoreApplication("rdvairplayd",
"rdvairplayd",false,RDVAIRPLAYD_USAGE,this));
if(!rda->open(&err_msg,&err_type,false)) {
fprintf(stderr,"rdvairplayd: %s\n",err_msg.toUtf8().constData());
exit(1);

View File

@ -71,7 +71,8 @@ MainObject::MainObject(QObject *parent)
QString err_msg;
RDApplication::ErrorType err_type=RDApplication::ErrorOk;
rda=static_cast<RDApplication *>(new RDCoreApplication("ripcd","ripcd",RIPCD_USAGE,this));
rda=static_cast<RDApplication *>(new RDCoreApplication("ripcd","ripcd",
RIPCD_USAGE,false,this));
if(!rda->open(&err_msg,&err_type,false)) {
fprintf(stderr,"ripcd: %s\n",(const char *)err_msg.toUtf8());
exit(1);

View File

@ -42,7 +42,8 @@ MainObject::MainObject(QObject *parent)
//
// Open the Database
//
rda=static_cast<RDApplication *>(new RDCoreApplication("audio_convert_test","audio_convert_test",AUDIO_CONVERT_TEST_USAGE,this));
rda=static_cast<RDApplication *>(new RDCoreApplication("audio_convert_test",
"audio_convert_test",AUDIO_CONVERT_TEST_USAGE,false,this));
if(!rda->open(&err_msg,NULL,true)) {
fprintf(stderr,"audio_convert_test: %s\n",(const char *)err_msg.toUtf8());
exit(1);

View File

@ -44,7 +44,8 @@ MainObject::MainObject(QObject *parent)
//
// Open the Database
//
rda=static_cast<RDApplication *>(new RDCoreApplication("audio_export_test","audio_export_test",AUDIO_EXPORT_TEST_USAGE,this));
rda=static_cast<RDApplication *>(new RDCoreApplication("audio_export_test",
"audio_export_test",AUDIO_EXPORT_TEST_USAGE,false,this));
if(!rda->open(&err_msg,NULL,true)) {
fprintf(stderr,"audio_export_test: %s\n",err_msg.toUtf8().constData());
exit(1);

View File

@ -45,7 +45,8 @@ MainObject::MainObject(QObject *parent)
//
// Open the Database
//
rda=static_cast<RDApplication *>(new RDCoreApplication("audio_import_test","audio_import_test",AUDIO_IMPORT_TEST_USAGE,this));
rda=static_cast<RDApplication *>(new RDCoreApplication("audio_import_test",
"audio_import_test",AUDIO_IMPORT_TEST_USAGE,false,this));
if(!rda->open(&err_msg,NULL,true)) {
fprintf(stderr,"audio_import_test: %s\n",err_msg.toUtf8().constData());
exit(1);

View File

@ -35,7 +35,8 @@ MainObject::MainObject(QObject *parent)
//
// Open the Database
//
rda=static_cast<RDApplication *>(new RDCoreApplication("audio_metadata_test","audio_metadata_test",AUDIO_METADATA_TEST_USAGE,this));
rda=static_cast<RDApplication *>(new RDCoreApplication("audio_metadata_test",
"audio_metadata_test",AUDIO_METADATA_TEST_USAGE,false,this));
if(!rda->open(&err_msg,NULL,true)) {
fprintf(stderr,"audio_metadata_test: %s\n",(const char *)err_msg.toUtf8());
exit(1);

View File

@ -42,7 +42,8 @@ MainObject::MainObject(QObject *parent)
//
// Open the Database
//
rda=static_cast<RDApplication *>(new RDApplication("db_charset_test","rdvairplayd",DB_CHARSET_TEST_USAGE,this));
rda=static_cast<RDApplication *>(new RDApplication("db_charset_test",
"rdvairplayd",DB_CHARSET_TEST_USAGE,false,this));
if(!rda->open(&err_msg,NULL,true)) {
fprintf(stderr,"db_charset_test: %s\n",err_msg.toUtf8().constData());
exit(1);

View File

@ -39,7 +39,8 @@ MainObject::MainObject(QObject *parent)
//
// Open the Database
//
rda=new RDApplication("delete_test","delete_test",DELETE_TEST_USAGE,this);
rda=new RDApplication("delete_test","delete_test",DELETE_TEST_USAGE,false,
this);
if(!rda->open(&err_msg,NULL,true)) {
fprintf(stderr,"delete_test: %s\n",err_msg.toUtf8().constData());
exit(1);

View File

@ -41,7 +41,8 @@ MainObject::MainObject(QObject *parent)
//
// Open the Database
//
rda=new RDApplication("download_test","download_test",DOWNLOAD_TEST_USAGE,this);
rda=new RDApplication("download_test","download_test",DOWNLOAD_TEST_USAGE,
false,this);
if(!rda->open(&err_msg,NULL,true)) {
fprintf(stderr,"download_test: %s\n",err_msg.toUtf8().constData());
exit(1);

View File

@ -45,7 +45,8 @@ MainObject::MainObject(QObject *parent)
//
// Open the Database
//
rda=new RDApplication("feed_image_test","feed_image_test",FEED_IMAGE_TEST_USAGE,this);
rda=new RDApplication("feed_image_test","feed_image_test",
FEED_IMAGE_TEST_USAGE,false,this);
if(!rda->open(&err_msg,NULL,true)) {
fprintf(stderr,"feed_image_test: %s\n",err_msg.toUtf8().constData());
exit(1);

View File

@ -40,7 +40,7 @@ MainObject::MainObject(QObject *parent)
// Open the Database
//
rda=new RDApplication("metadata_wildcard_test","metadata_wildcard_test",
METADATA_WILDCARD_TEST_USAGE,this);
METADATA_WILDCARD_TEST_USAGE,false,this);
if(!rda->open(&err_msg,NULL,true)) {
fprintf(stderr,"metadata_wildcard_test: %s\n",(const char *)err_msg.toUtf8());
exit(1);

View File

@ -35,7 +35,7 @@ MainWidget::MainWidget(QWidget *parent)
// Open the database
//
rda=new RDApplication("meterstrip_test","meterstrip_test",METERSTRIP_TEST_USAGE,
this);
false,this);
if(!rda->open(&err_msg,NULL,true)) {
QMessageBox::critical(this,"meterstrip_test - "+tr("Error"),err_msg);
exit(RDApplication::ExitNoDb);

View File

@ -29,7 +29,8 @@ MainObject::MainObject(QObject *parent)
{
QString err_msg;
rda=new RDApplication("notification_test","notification_test",NOTIFICATION_TEST_USAGE,this);
rda=new RDApplication("notification_test","notification_test",
NOTIFICATION_TEST_USAGE,false,this);
if(!rda->open(&err_msg,NULL,true)) {
fprintf(stderr,"notification_test: %s\n",err_msg.toUtf8().constData());
exit(1);

View File

@ -41,7 +41,7 @@ MainObject::MainObject(QObject *parent)
rda=static_cast<RDApplication *>(new RDCoreApplication("timeengine_test",
"timeengine_test",
TIMEENGINE_TEST_USAGE,
this));
false,this));
if(!rda->open(&err_msg,&err_type,false)) {
fprintf(stderr,"timeengine_test: %s\n",err_msg.toUtf8().constData());
exit(1);

View File

@ -41,7 +41,8 @@ MainObject::MainObject(QObject *parent)
//
// Open the Database
//
rda=new RDApplication("upload_test","upload_test",UPLOAD_TEST_USAGE,this);
rda=new RDApplication("upload_test","upload_test",UPLOAD_TEST_USAGE,false,
this);
if(!rda->open(&err_msg,NULL,true)) {
fprintf(stderr,"upload_test: %s\n",err_msg.toUtf8().constData());
exit(1);

View File

@ -42,8 +42,8 @@ MainWidget::MainWidget(QWidget *parent)
//
// Open the database
//
rda=new RDApplication("wavefactory_test","wavefactory_test",WAVEFACTORY_TEST_USAGE,
this);
rda=new RDApplication("wavefactory_test","wavefactory_test",
WAVEFACTORY_TEST_USAGE,false,this);
if(!rda->open(&err_msg,NULL,true)) {
QMessageBox::critical(this,"wavefactory_test - "+tr("Error"),err_msg);
exit(RDApplication::ExitNoDb);

View File

@ -42,7 +42,7 @@ MainWidget::MainWidget(QWidget *parent)
// Open the database
//
rda=new RDApplication("wavescene_test","wavescene_test",WAVESCENE_TEST_USAGE,
this);
false,this);
if(!rda->open(&err_msg,NULL,true)) {
QMessageBox::critical(this,"wavescene_test - "+tr("Error"),err_msg);
exit(RDApplication::ExitNoDb);

View File

@ -41,7 +41,7 @@ MainWidget::MainWidget(QWidget *parent)
// Open the database
//
rda=new RDApplication("wavewidget_test","wavewidget_test",WAVEWIDGET_TEST_USAGE,
this);
false,this);
if(!rda->open(&err_msg,NULL,true)) {
QMessageBox::critical(this,"wavewidget_test - "+tr("Error"),err_msg);
exit(RDApplication::ExitNoDb);

View File

@ -82,7 +82,8 @@ MainWidget::MainWidget(RDConfig *c,QWidget *parent)
//
// Open the Database
//
rda=new RDApplication("RDAlsaConfig","rdalsaconfig",RDALSACONFIG_USAGE,this);
rda=new RDApplication("RDAlsaConfig","rdalsaconfig",RDALSACONFIG_USAGE,false,
this);
if(!rda->open(&err_msg,NULL,false)) {
QMessageBox::critical(this,"RDAlsaConfig - "+tr("Error"),err_msg);
exit(1);
@ -362,7 +363,8 @@ Autogen::Autogen()
//
// Open the Database
//
rda=new RDApplication("RDAlsaConfig","rdalsaconfig",RDALSACONFIG_USAGE,this);
rda=new RDApplication("RDAlsaConfig","rdalsaconfig",RDALSACONFIG_USAGE,
false,this);
if(!rda->open(&err_msg,NULL,false)) {
fprintf(stderr,"rdalsaconfig: unable to open database [%s]\n",
(const char *)err_msg.toUtf8());

View File

@ -42,7 +42,8 @@ MainObject::MainObject(QObject *parent)
//
// Open the Database
//
rda=static_cast<RDApplication *>(new RDCoreApplication("rdcheckcuts","rdcheckcuts",RDCHECKCUTS_USAGE,this));
rda=static_cast<RDApplication *>(new RDCoreApplication("rdcheckcuts",
"rdcheckcuts",RDCHECKCUTS_USAGE,false,this));
if(!rda->open(&err_msg,NULL,true)) {
fprintf(stderr,"rdcheckcuts: %s\n",err_msg.toUtf8().constData());
exit(1);

View File

@ -48,7 +48,8 @@ MainObject::MainObject(QObject *parent)
//
// Open the Database
//
rda=static_cast<RDApplication *>(new RDCoreApplication("rdclilogedit","rdclilogedit",RDCLILOGEDIT_USAGE,this));
rda=static_cast<RDApplication *>(new RDCoreApplication("rdclilogedit",
"rdclilogedit",RDCLILOGEDIT_USAGE,false,this));
if(!rda->open(&err_msg,NULL,true)) {
fprintf(stderr,"rdclilogedit: %s\n",err_msg.toUtf8().constData());
exit(1);

View File

@ -42,7 +42,8 @@ MainObject::MainObject(QObject *parent)
//
// Open the Database
//
rda=static_cast<RDApplication *>(new RDCoreApplication("rdconvert","rdconvert",RDCONVERT_USAGE,this));
rda=static_cast<RDApplication *>(new RDCoreApplication("rdconvert","rdconvert",
RDCONVERT_USAGE,false,this));
if(!rda->open(&err_msg,NULL,true)) {
fprintf(stderr,"rdconvert: %s\n",err_msg.toUtf8().constData());
exit(1);

View File

@ -43,7 +43,8 @@ MainObject::MainObject(QObject *parent)
//
// Open the Database
//
rda=static_cast<RDApplication *>(new RDCoreApplication("rddelete","rddelete",RDDELETE_USAGE,this));
rda=static_cast<RDApplication *>(new RDCoreApplication("rddelete","rddelete",
RDDELETE_USAGE,false,this));
if(!rda->open(&err_msg,NULL,true)) {
fprintf(stderr,"rddelete: %s\n",err_msg.toUtf8().constData());
exit(1);

View File

@ -56,7 +56,8 @@ MainObject::MainObject(QObject *parent)
//
// Open the Database
//
rda=static_cast<RDApplication *>(new RDCoreApplication("rdexport","rdexport",RDEXPORT_USAGE,this));
rda=static_cast<RDApplication *>(new RDCoreApplication("rdexport","rdexport",
RDEXPORT_USAGE,false,this));
if(!rda->open(&err_msg,NULL,true)) {
fprintf(stderr,"rdexport: %s\n",(const char *)err_msg.toUtf8());
exit(1);

View File

@ -38,7 +38,7 @@ MainWidget::MainWidget(RDConfig *c,QWidget *parent)
//
// Open the Database
//
rda=new RDApplication("RDGpiMon","rdgpimon",RDGPIMON_USAGE,this);
rda=new RDApplication("RDGpiMon","rdgpimon",RDGPIMON_USAGE,true,this);
if(!rda->open(&err_msg,NULL,true)) {
QMessageBox::critical(this,"RDGpiMon - "+tr("Error"),err_msg);
exit(1);

View File

@ -108,7 +108,7 @@ MainObject::MainObject(QObject *parent)
// Open the Database
//
rda=static_cast<RDApplication *>(new RDCoreApplication("rdimport","rdimport",
RDIMPORT_USAGE,this));
RDIMPORT_USAGE,false,this));
if(!rda->open(&err_msg,NULL,true)) {
fprintf(stderr,"rdimport: %s\n",err_msg.toUtf8().constData());
ErrorExit(RDApplication::ExitNoDb);

View File

@ -57,7 +57,8 @@ MainObject::MainObject(QObject *parent)
//
// Open the Database
//
rda=static_cast<RDApplication *>(new RDCoreApplication("rdmaint","rdmaint",RDMAINT_USAGE,this));
rda=static_cast<RDApplication *>(new RDCoreApplication("rdmaint","rdmaint",
RDMAINT_USAGE,false,this));
if(!rda->open(&err_msg,NULL,false)) {
fprintf(stderr,"rdmaint: %s\n",err_msg.toUtf8().constData());
rda->syslog(LOG_ERR,"%s",err_msg.toUtf8().constData());

View File

@ -57,7 +57,8 @@ MainObject::MainObject(QObject *parent)
//
// Open the Database
//
rda=static_cast<RDApplication *>(new RDCoreApplication("rdmarkerset","rdmarkerset",RDMARKERSET_USAGE,this));
rda=static_cast<RDApplication *>(new RDCoreApplication("rdmarkerset",
"rdmarkerset",RDMARKERSET_USAGE,false,this));
if(!rda->open(&err_msg,NULL,true)) {
fprintf(stderr,"rdmarkerset: %s\n",err_msg.toUtf8().constData());
exit(1);

View File

@ -49,7 +49,8 @@ MainObject::MainObject(QObject *parent)
//
// Open the Database
//
rda=static_cast<RDApplication *>(new RDCoreApplication("rdmetadata","rdmetadata",RDMETADATA_USAGE,this));
rda=static_cast<RDApplication *>(new RDCoreApplication("rdmetadata",
"rdmetadata",RDMETADATA_USAGE,false,this));
if(!rda->open(&err_msg,NULL,true)) {
fprintf(stderr,"rdmetadata: %s\n",err_msg.toUtf8().constData());
exit(1);

View File

@ -67,7 +67,8 @@ MainObject::MainObject(QObject *parent)
//
// Open the Database
//
rda=static_cast<RDApplication *>(new RDCoreApplication("rdrender","rdrender",RDRENDER_USAGE,this));
rda=static_cast<RDApplication *>(new RDCoreApplication("rdrender","rdrender",
RDRENDER_USAGE,false,this));
if(!rda->open(&err_msg,NULL,true)) {
fprintf(stderr,"rdrender: %s\n",(const char *)err_msg.toUtf8());
exit(1);

View File

@ -49,7 +49,8 @@ Xport::Xport(QObject *parent)
//
// Open the Database
//
rda=static_cast<RDApplication *>(new RDCoreApplication("rdxport.cgi","rdxport.cgi",RDXPORT_CGI_USAGE,this));
rda=static_cast<RDApplication *>(new RDCoreApplication("rdxport.cgi",
"rdxport.cgi",RDXPORT_CGI_USAGE,false,this));
if(!rda->open(&err_msg,NULL,false)) {
printf("Content-type: text/html\n");
printf("Status: 500\n");

View File

@ -50,7 +50,8 @@ MainObject::MainObject(QObject *parent)
//
// Open the Database
//
rda=static_cast<RDApplication *>(new RDCoreApplication("webget.cgi","webget.cgi",WEBGET_CGI_USAGE,this));
rda=static_cast<RDApplication *>(new RDCoreApplication("webget.cgi",
"webget.cgi",WEBGET_CGI_USAGE,false,this));
if(!rda->open(&err_msg,NULL,true)) {
TextExit(err_msg,500,LINE_NUMBER);
}