mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2026-01-12 07:35:55 +01:00
2018-01-31 Fred Gleason <fredg@paravelsystems.com>
* Converted rdpanel(1) to use RDApplication.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user