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 @@
//
// The Rivendell Replicator Daemon
//
// (C) Copyright 2010-2019 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
@@ -70,7 +70,7 @@ MainObject::MainObject(QObject *parent)
//
// Open the Database
//
rda=new RDApplication("rdrepld","rdrepld",RDREPLD_USAGE,this);
rda=static_cast<RDApplication *>(new RDCoreApplication("rdrepld","rdrepld",RDREPLD_USAGE,this));
if(!rda->open(&err_msg,&err_type,false)) {
fprintf(stderr,"rdrepld: %s\n",(const char *)err_msg);
exit(1);
@@ -259,7 +259,7 @@ void MainObject::FreeReplicators()
int main(int argc,char *argv[])
{
QApplication a(argc,argv,false);
QCoreApplication a(argc,argv,false);
new MainObject();
return a.exec();
}