Dev...
This commit is contained in:
parent
ba8f58ce5c
commit
236f999eca
@ -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
6
Sources/GlobalDefine.h
Normal file
@ -0,0 +1,6 @@
|
||||
#ifndef GLOBALDEFINE_H
|
||||
#define GLOBALDEFINE_H
|
||||
|
||||
#include "QDebug"
|
||||
|
||||
#endif // GLOBALDEFINE_H
|
||||
@ -1,5 +1,11 @@
|
||||
#include "MasterCtrl.h"
|
||||
|
||||
CHomeSupervisor::CHomeSupervisor()
|
||||
CMasterCtrl::CMasterCtrl()
|
||||
{
|
||||
qDebug("Creation...");
|
||||
}
|
||||
|
||||
void CMasterCtrl::Start()
|
||||
{
|
||||
qDebug("Started!");
|
||||
}
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user