diff options
author | Dominik Holland <dominik.holland@pelagicore.com> | 2015-01-26 14:16:25 +0100 |
---|---|---|
committer | Dominik Holland <dominik.holland@pelagicore.com> | 2015-01-26 14:16:25 +0100 |
commit | 973cb071c0113566bb930bf91b46a5a774068c66 (patch) | |
tree | 34fe9880c09d0830e4d147e7d9a5c7d1ac42ffbc | |
download | qtivi-973cb071c0113566bb930bf91b46a5a774068c66.tar.gz |
Initial qt module setup
-rw-r--r-- | examples/examples.pro | 1 | ||||
-rw-r--r-- | qtivi.pro | 8 | ||||
-rw-r--r-- | src/core/core.pro | 15 | ||||
-rw-r--r-- | src/core/qtiviservicemanager.cpp | 18 | ||||
-rw-r--r-- | src/core/qtiviservicemanager.h | 19 | ||||
-rw-r--r-- | src/src.pro | 3 | ||||
-rw-r--r-- | sync.profile | 20 |
7 files changed, 84 insertions, 0 deletions
diff --git a/examples/examples.pro b/examples/examples.pro new file mode 100644 index 0000000..9671085 --- /dev/null +++ b/examples/examples.pro @@ -0,0 +1 @@ +TEMPLATE = subdirs diff --git a/qtivi.pro b/qtivi.pro new file mode 100644 index 0000000..2e8039a --- /dev/null +++ b/qtivi.pro @@ -0,0 +1,8 @@ +enable-examples { + QTIVICORE_BUILD_PARTS = $$QT_BUILD_PARTS + QTIVICORE_BUILD_PARTS *= examples +} + +lessThan(QT_MAJOR_VERSION, 5): error("QtIVI only supports Qt 5.") +load(configure) +load(qt_parts) diff --git a/src/core/core.pro b/src/core/core.pro new file mode 100644 index 0000000..2cb66b5 --- /dev/null +++ b/src/core/core.pro @@ -0,0 +1,15 @@ +MODULE = QtIVICore +TARGET = $$MODULE +QT = core +CONFIG += c++11 +VERSION = 1.0.0 + +CMAKE_MODULE_TESTS = '-' + +HEADERS += \ + qtiviservicemanager.h + +SOURCES += \ + qtiviservicemanager.cpp + +load(qt_module) diff --git a/src/core/qtiviservicemanager.cpp b/src/core/qtiviservicemanager.cpp new file mode 100644 index 0000000..7f54a8a --- /dev/null +++ b/src/core/qtiviservicemanager.cpp @@ -0,0 +1,18 @@ +#include "qtiviservicemanager.h" + +QtIVIServiceManager::QtIVIServiceManager(QObject *parent) : QObject(parent) +{ + +} + +QtIVIServiceManager *QtIVIServiceManager::instance() +{ + static QtIVIServiceManager* instance = new QtIVIServiceManager(); + return instance; +} + +QtIVIServiceManager::~QtIVIServiceManager() +{ + +} + diff --git a/src/core/qtiviservicemanager.h b/src/core/qtiviservicemanager.h new file mode 100644 index 0000000..747d3a7 --- /dev/null +++ b/src/core/qtiviservicemanager.h @@ -0,0 +1,19 @@ +#ifndef QTIVISERVICEMANAGER_H +#define QTIVISERVICEMANAGER_H + +#include <QtCore/QObject> + +class QtIVIServiceManager : public QObject +{ + Q_OBJECT +public: + QtIVIServiceManager *instance(); + virtual ~QtIVIServiceManager(); + +signals: + +private: + explicit QtIVIServiceManager(QObject *parent = 0); +}; + +#endif // QTIVISERVICEMANAGER_H diff --git a/src/src.pro b/src/src.pro new file mode 100644 index 0000000..6300dbd --- /dev/null +++ b/src/src.pro @@ -0,0 +1,3 @@ +TEMPLATE = subdirs +SUBDIRS = core + diff --git a/sync.profile b/sync.profile new file mode 100644 index 0000000..a999d1f --- /dev/null +++ b/sync.profile @@ -0,0 +1,20 @@ +%modules = ( # path to module name map + "QtIVICore" => "$basedir/src/core", +); +%moduleheaders = ( # restrict the module headers to those found in relative path +); +%classnames = ( +); +%deprecatedheaders = ( +); +$publicclassregexp = "Q.+"; +# Module dependencies. +# Every module that is required to build this module should have one entry. +# Each of the module version specifiers can take one of the following values: +# - A specific Git revision. +# - any git symbolic ref resolvable from the module's repository (e.g. "refs/heads/master" to track master branch) +# +%dependencies = ( + "qtbase" => "refs/heads/stable", +); + |