2018-01-31 Fred Gleason <fredg@paravelsystems.com>

* Converted rdpanel(1) to use RDApplication.
This commit is contained in:
Fred Gleason
2018-01-31 01:41:18 -05:00
parent 271f9747fa
commit 99814a9f00
11 changed files with 99 additions and 145 deletions

View File

@@ -34,6 +34,7 @@ RDApplication::RDApplication(const QString &module_name,QObject *parent)
{
app_module_name=module_name;
app_heartbeat=NULL;
app_airplay_conf=NULL;
app_cae=NULL;
app_config=NULL;
@@ -49,6 +50,9 @@ RDApplication::RDApplication(const QString &module_name,QObject *parent)
RDApplication::~RDApplication()
{
if(app_heartbeat!=NULL) {
delete app_heartbeat;
}
if(app_config!=NULL) {
delete app_config;
}
@@ -122,6 +126,7 @@ bool RDApplication::open(QString *err_msg)
QString().sprintf(" %u",schema);
return false;
}
app_heartbeat=new RDDbHeartbeat(app_config->mysqlHeartbeatInterval(),this);
//
// Open Accessors

View File

@@ -27,6 +27,7 @@
#include <rdcae.h>
#include <rdconfig.h>
#include <rddb.h>
#include <rddbheartbeat.h>
#include <rdlibrary_conf.h>
#include <rdlogedit_conf.h>
#include <rdripc.h>
@@ -63,6 +64,7 @@ class RDApplication : public QObject
RDStation *app_station;
RDSystem *app_system;
RDUser *app_user;
RDDbHeartbeat *app_heartbeat;
QString app_command_name;
QString app_module_name;
};