This commit is contained in:
Jean-François Martel 2015-07-10 13:16:16 -04:00
parent ba8f58ce5c
commit 236f999eca
5 changed files with 29 additions and 10 deletions

View File

@ -2,7 +2,8 @@ QT += Network
HEADERS += \
Sources/MasterCtrl.h
Sources/MasterCtrl.h \
Sources/GlobalDefine.h
SOURCES += \
Sources/main.cpp \

6
Sources/GlobalDefine.h Normal file
View File

@ -0,0 +1,6 @@
#ifndef GLOBALDEFINE_H
#define GLOBALDEFINE_H
#include "QDebug"
#endif // GLOBALDEFINE_H

View File

@ -1,5 +1,11 @@
#include "MasterCtrl.h"
CHomeSupervisor::CHomeSupervisor()
CMasterCtrl::CMasterCtrl()
{
qDebug("Creation...");
}
void CMasterCtrl::Start()
{
qDebug("Started!");
}

View File

@ -1,10 +1,14 @@
#ifndef HOMESUPERVISOR_H
#define HOMESUPERVISOR_H
#ifndef MASTERCTRL_H
#define MASTERCTRL_H
class CHomeSupervisor
#include "GlobalDefine.h"
class CMasterCtrl
{
public:
CHomeSupervisor();
CMasterCtrl();
void Start(void);
};
#endif // HOMESUPERVISOR_H
#endif // MASTERCTRL_H

View File

@ -27,6 +27,7 @@
#include <QApplication>
#include <QFont>
#include <stdio.h>
#include "MasterCtrl.h"
int main(int argc, char *argv[])
@ -40,13 +41,14 @@ int main(int argc, char *argv[])
//Create program instance
// COutilZT OutilZT;
CMasterCtrl MasterCtrl;
//setup stdout for screen printing.
setvbuf(stdout, NULL, _IONBF, 0 );
//Run Zone Tests
// OutilZT.Start();
//Start application
MasterCtrl.Start();
return a.exec();