#include "MasterCtrl.h" #include CMasterCtrl::CMasterCtrl() { qDebug("Creation..."); mDeadBoltDevice = new CDeadboltDevice(1); mAVReceiverDevice = new CAVReceiverDevice; mVoipMsSMSClient = new CVoipMsSMSClient; mSystemTrayManager = new CSystemTrayManager; mSystemTrayManager->mProgramHandle = this; } CMasterCtrl::~CMasterCtrl() { mAVReceiverDevice->DisconnectReceiver(); delete mDeadBoltDevice; delete mAVReceiverDevice; delete mVoipMsSMSClient; delete mSystemTrayManager; } void CMasterCtrl::Start() { qDebug("Started!"); mAVReceiverDevice->ConnectToReceiver(); mVoipMsSMSClient->DownloadSMSFromServer(); } unsigned int CMasterCtrl::QuitApplicationRequest() { QApplication::exit(69); return RET_OK; }