From 236f999ecaa87d1a20a2be1b73f89164235561e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Fran=C3=A7ois=20Martel?= Date: Fri, 10 Jul 2015 13:16:16 -0400 Subject: [PATCH] Dev... --- MasterCtrl.pro | 3 ++- Sources/GlobalDefine.h | 6 ++++++ Sources/MasterCtrl.cpp | 8 +++++++- Sources/MasterCtrl.h | 14 +++++++++----- Sources/main.cpp | 8 +++++--- 5 files changed, 29 insertions(+), 10 deletions(-) create mode 100644 Sources/GlobalDefine.h diff --git a/MasterCtrl.pro b/MasterCtrl.pro index 5077993..e293f9f 100644 --- a/MasterCtrl.pro +++ b/MasterCtrl.pro @@ -2,7 +2,8 @@ QT += Network HEADERS += \ - Sources/MasterCtrl.h + Sources/MasterCtrl.h \ + Sources/GlobalDefine.h SOURCES += \ Sources/main.cpp \ diff --git a/Sources/GlobalDefine.h b/Sources/GlobalDefine.h new file mode 100644 index 0000000..7b14d03 --- /dev/null +++ b/Sources/GlobalDefine.h @@ -0,0 +1,6 @@ +#ifndef GLOBALDEFINE_H +#define GLOBALDEFINE_H + +#include "QDebug" + +#endif // GLOBALDEFINE_H diff --git a/Sources/MasterCtrl.cpp b/Sources/MasterCtrl.cpp index ea1babe..cd3699b 100644 --- a/Sources/MasterCtrl.cpp +++ b/Sources/MasterCtrl.cpp @@ -1,5 +1,11 @@ #include "MasterCtrl.h" -CHomeSupervisor::CHomeSupervisor() +CMasterCtrl::CMasterCtrl() { + qDebug("Creation..."); +} + +void CMasterCtrl::Start() +{ + qDebug("Started!"); } diff --git a/Sources/MasterCtrl.h b/Sources/MasterCtrl.h index 6220e05..b546534 100644 --- a/Sources/MasterCtrl.h +++ b/Sources/MasterCtrl.h @@ -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 diff --git a/Sources/main.cpp b/Sources/main.cpp index 0332947..964627f 100644 --- a/Sources/main.cpp +++ b/Sources/main.cpp @@ -27,6 +27,7 @@ #include #include #include +#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();