diff options
author | jan Iversen <jan@casacondor.com> | 2019-12-08 19:30:39 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-12-24 06:30:57 +0900 |
commit | c0069d6aee16b3acf9d00e6dc4ca0827ba31c5b5 (patch) | |
tree | 30e69841b9d353e00dcc251128993621ad4e6ca9 /core/plannershared.h | |
parent | b4eef5548b593956a4a24da43641b9eed7906efa (diff) | |
download | subsurface-c0069d6aee16b3acf9d00e6dc4ca0827ba31c5b5.tar.gz |
core: add plannerShared class
Add a plannerShared class, whose purpose is to contain shared
functions between mobile and desktop
This class is the inner workings of the diveplanner not the UI
Signed-off-by: Jan Iversen <jan@casacondor.com>
Diffstat (limited to 'core/plannershared.h')
-rw-r--r-- | core/plannershared.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/core/plannershared.h b/core/plannershared.h new file mode 100644 index 000000000..a18e2147d --- /dev/null +++ b/core/plannershared.h @@ -0,0 +1,24 @@ +// SPDX-License-Identifier: GPL-2.0 +#ifndef PLANNERSHARED_H +#define PLANNERSHARED_H +#include <QObject> + +// This is a shared class (mobile/desktop), and contains the core of the diveplanner +// without UI entanglement. +// It make variables and functions available to QML, these are referenced directly +// in the desktop version +// +// The mobile diveplanner shows all diveplans, but the editing functionality is +// limited to keep the UI simpler. + +class plannerShared: public QObject { + Q_OBJECT + +public: + static plannerShared *instance(); + +private: + plannerShared() {} +}; + +#endif // PLANNERSHARED_H |