aboutsummaryrefslogtreecommitdiffstats
path: root/core/plannershared.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/plannershared.h')
-rw-r--r--core/plannershared.h24
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