Commit 0c1abac82f526a67a7bf1e41b2971a3b4a0b2814

Authored by Peter M. Groen
1 parent bdd63e89

Added Control Class

.gitignore
1 /.gitmodules 1 /.gitmodules
2 /cmake/ 2 /cmake/
3 /versioning/ 3 /versioning/
  4 +/build/
  5 +/CMakeLists.txt.user
src/controlcentre/CMakeLists.txt
@@ -26,10 +26,10 @@ find_package( Qt5Widgets REQUIRED ) @@ -26,10 +26,10 @@ find_package( Qt5Widgets REQUIRED )
26 26
27 include(compiler) 27 include(compiler)
28 28
29 -include_directories( 29 +include_directories( SYSTEM
30 ${Qt5Core_INCLUDE_DIRS} 30 ${Qt5Core_INCLUDE_DIRS}
31 ${Qt5Gui_INCLUDE_DIRS} 31 ${Qt5Gui_INCLUDE_DIRS}
32 - ${Qt5Widget_INCLUDE_DIRS} 32 + ${Qt5Widgets_INCLUDE_DIRS}
33 ) 33 )
34 34
35 set(SRC_LIST 35 set(SRC_LIST
@@ -49,7 +49,7 @@ add_executable( ${PROJECT_NAME} @@ -49,7 +49,7 @@ add_executable( ${PROJECT_NAME}
49 target_link_libraries( ${PROJECT_NAME} 49 target_link_libraries( ${PROJECT_NAME}
50 ${Qt5Core_LIBRARIES} 50 ${Qt5Core_LIBRARIES}
51 ${Qt5Gui_LIBRARIES} 51 ${Qt5Gui_LIBRARIES}
52 - ${Qt5Widget_LIBRARIES} 52 + ${Qt5Widgets_LIBRARIES}
53 mqtt-cpp 53 mqtt-cpp
54 ) 54 )
55 55
src/controlcentre/controlcentre.cpp
  1 +/* ****************************************************************************
  2 + * Copyright 2019 Open Systems Development BV *
  3 + * *
  4 + * Permission is hereby granted, free of charge, to any person obtaining a *
  5 + * copy of this software and associated documentation files (the "Software"), *
  6 + * to deal in the Software without restriction, including without limitation *
  7 + * the rights to use, copy, modify, merge, publish, distribute, sublicense, *
  8 + * and/or sell copies of the Software, and to permit persons to whom the *
  9 + * Software is furnished to do so, subject to the following conditions: *
  10 + * *
  11 + * The above copyright notice and this permission notice shall be included in *
  12 + * all copies or substantial portions of the Software. *
  13 + * *
  14 + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
  15 + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
  16 + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL *
  17 + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
  18 + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING *
  19 + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER *
  20 + * DEALINGS IN THE SOFTWARE. *
  21 + * ***************************************************************************/
  22 +#include "controlcentre.h"
  23 +
  24 +ControlCentre::ControlCentre( QObject *parent )
  25 + : QObject( parent )
  26 +{
  27 +
  28 +}
src/controlcentre/controlcentre.h
  1 +/* ****************************************************************************
  2 + * Copyright 2022 Open Systems Development BV *
  3 + * *
  4 + * Permission is hereby granted, free of charge, to any person obtaining a *
  5 + * copy of this software and associated documentation files (the "Software"), *
  6 + * to deal in the Software without restriction, including without limitation *
  7 + * the rights to use, copy, modify, merge, publish, distribute, sublicense, *
  8 + * and/or sell copies of the Software, and to permit persons to whom the *
  9 + * Software is furnished to do so, subject to the following conditions: *
  10 + * *
  11 + * The above copyright notice and this permission notice shall be included in *
  12 + * all copies or substantial portions of the Software. *
  13 + * *
  14 + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
  15 + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
  16 + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL *
  17 + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
  18 + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING *
  19 + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER *
  20 + * DEALINGS IN THE SOFTWARE. *
  21 + * ***************************************************************************/
  22 +#pragma once
  23 +
  24 +#include <QObject>
  25 +
  26 +class ControlCentre : public QObject
  27 +{
  28 + Q_OBJECT
  29 +
  30 +public:
  31 + ControlCentre( QObject *parent = nullptr );
  32 +
  33 + virtual ~ControlCentre() {}
  34 +
  35 +
  36 +};
src/controlcentre/main.cpp
  1 +/* ****************************************************************************
  2 + * Copyright 2019 Open Systems Development BV *
  3 + * *
  4 + * Permission is hereby granted, free of charge, to any person obtaining a *
  5 + * copy of this software and associated documentation files (the "Software"), *
  6 + * to deal in the Software without restriction, including without limitation *
  7 + * the rights to use, copy, modify, merge, publish, distribute, sublicense, *
  8 + * and/or sell copies of the Software, and to permit persons to whom the *
  9 + * Software is furnished to do so, subject to the following conditions: *
  10 + * *
  11 + * The above copyright notice and this permission notice shall be included in *
  12 + * all copies or substantial portions of the Software. *
  13 + * *
  14 + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
  15 + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
  16 + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL *
  17 + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
  18 + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING *
  19 + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER *
  20 + * DEALINGS IN THE SOFTWARE. *
  21 + * ***************************************************************************/
  22 +
  23 +#include <QApplication>
  24 +
  25 +int main( int argc, char* argv[] )
  26 +{
  27 + QApplication oApp( argc, argv );
  28 +
  29 + return oApp.exec();
  30 +}