Dev...
This commit is contained in:
parent
ba8f58ce5c
commit
236f999eca
@ -2,7 +2,8 @@ QT += Network
|
|||||||
|
|
||||||
|
|
||||||
HEADERS += \
|
HEADERS += \
|
||||||
Sources/MasterCtrl.h
|
Sources/MasterCtrl.h \
|
||||||
|
Sources/GlobalDefine.h
|
||||||
|
|
||||||
SOURCES += \
|
SOURCES += \
|
||||||
Sources/main.cpp \
|
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"
|
#include "MasterCtrl.h"
|
||||||
|
|
||||||
CHomeSupervisor::CHomeSupervisor()
|
CMasterCtrl::CMasterCtrl()
|
||||||
{
|
{
|
||||||
|
qDebug("Creation...");
|
||||||
|
}
|
||||||
|
|
||||||
|
void CMasterCtrl::Start()
|
||||||
|
{
|
||||||
|
qDebug("Started!");
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,10 +1,14 @@
|
|||||||
#ifndef HOMESUPERVISOR_H
|
#ifndef MASTERCTRL_H
|
||||||
#define HOMESUPERVISOR_H
|
#define MASTERCTRL_H
|
||||||
|
|
||||||
class CHomeSupervisor
|
#include "GlobalDefine.h"
|
||||||
|
|
||||||
|
class CMasterCtrl
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
CHomeSupervisor();
|
CMasterCtrl();
|
||||||
|
|
||||||
|
void Start(void);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // HOMESUPERVISOR_H
|
#endif // MASTERCTRL_H
|
||||||
|
|||||||
@ -27,6 +27,7 @@
|
|||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include <QFont>
|
#include <QFont>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include "MasterCtrl.h"
|
||||||
|
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
@ -40,13 +41,14 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
|
|
||||||
//Create program instance
|
//Create program instance
|
||||||
// COutilZT OutilZT;
|
CMasterCtrl MasterCtrl;
|
||||||
|
|
||||||
//setup stdout for screen printing.
|
//setup stdout for screen printing.
|
||||||
setvbuf(stdout, NULL, _IONBF, 0 );
|
setvbuf(stdout, NULL, _IONBF, 0 );
|
||||||
|
|
||||||
//Run Zone Tests
|
//Start application
|
||||||
// OutilZT.Start();
|
MasterCtrl.Start();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return a.exec();
|
return a.exec();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user