2021-01-20 Fred Gleason <fredg@paravelsystems.com>

* Split the 'RDApplication' class into the base class
	'RDCoreApplication' and 'RDApplication'.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2021-01-20 19:50:24 -05:00
parent 1b5a800783
commit a3525c88e2
54 changed files with 1475 additions and 1370 deletions

View File

@@ -2,7 +2,7 @@
//
// Test the Rivendell file format converter.
//
// (C) Copyright 2010-2018 Fred Gleason <fredg@paravelsystems.com>
// (C) Copyright 2010-2021 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
@@ -42,8 +42,7 @@ MainObject::MainObject(QObject *parent)
//
// Open the Database
//
rda=new RDApplication("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,this));
if(!rda->open(&err_msg)) {
fprintf(stderr,"audio_convert_test: %s\n",(const char *)err_msg.toUtf8());
exit(1);
@@ -202,7 +201,7 @@ MainObject::MainObject(QObject *parent)
int main(int argc,char *argv[])
{
QApplication a(argc,argv,false);
QCoreApplication a(argc,argv,false);
new MainObject();
return a.exec();
}

View File

@@ -2,7 +2,7 @@
//
// Test the Rivendell file format exporter.
//
// (C) Copyright 2010,2016-2018 Fred Gleason <fredg@paravelsystems.com>
// (C) Copyright 2010-2021 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
@@ -46,7 +46,7 @@ MainObject::MainObject(QObject *parent)
//
// Open the Database
//
rda=new RDApplication("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,this));
if(!rda->open(&err_msg)) {
fprintf(stderr,"audio_export_test: %s\n",(const char *)err_msg);
exit(1);
@@ -214,7 +214,7 @@ MainObject::MainObject(QObject *parent)
int main(int argc,char *argv[])
{
QApplication a(argc,argv,false);
QCoreApplication a(argc,argv,false);
new MainObject();
return a.exec();
}

View File

@@ -2,7 +2,7 @@
//
// Test Rivendell file importing.
//
// (C) Copyright 2010,2016-2018 Fred Gleason <fredg@paravelsystems.com>
// (C) Copyright 2010-2021 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
@@ -45,8 +45,7 @@ MainObject::MainObject(QObject *parent)
//
// Open the Database
//
rda=new RDApplication("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,this));
if(!rda->open(&err_msg)) {
fprintf(stderr,"audio_import_test: %s\n",(const char *)err_msg);
exit(1);
@@ -159,7 +158,7 @@ MainObject::MainObject(QObject *parent)
int main(int argc,char *argv[])
{
QApplication a(argc,argv,false);
QCoreApplication a(argc,argv,false);
new MainObject();
return a.exec();
}

View File

@@ -2,7 +2,7 @@
//
// Test the Rivendell audio file metadata reader.
//
// (C) Copyright 2018 Fred Gleason <fredg@paravelsystems.com>
// (C) Copyright 2018-2021 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
@@ -35,8 +35,7 @@ MainObject::MainObject(QObject *parent)
//
// Open the Database
//
rda=new RDApplication("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,this));
if(!rda->open(&err_msg)) {
fprintf(stderr,"audio_metadata_test: %s\n",(const char *)err_msg.toUtf8());
exit(1);
@@ -76,7 +75,7 @@ MainObject::MainObject(QObject *parent)
int main(int argc,char *argv[])
{
QApplication a(argc,argv,false);
QCoreApplication a(argc,argv,false);
new MainObject();
return a.exec();
}

View File

@@ -2,7 +2,7 @@
//
// Display charset/collation parameters for a DB connection
//
// (C) Copyright 2018 Fred Gleason <fredg@paravelsystems.com>
// (C) Copyright 2018-2021 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
@@ -46,8 +46,7 @@ MainObject::MainObject(QObject *parent)
//
// Open the Database
//
rda=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,this));
if(!rda->open(&err_msg)) {
fprintf(stderr,"db_charset_test: %s\n",(const char *)err_msg);
exit(1);
@@ -75,7 +74,7 @@ MainObject::MainObject(QObject *parent)
int main(int argc,char *argv[])
{
QApplication a(argc,argv,false);
QCoreApplication a(argc,argv,false);
MainObject();
return a.exec();