aboutsummaryrefslogtreecommitdiffstats
path: root/mobile-widgets/statsmanager.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2021-01-07 15:12:25 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2021-01-10 15:16:52 -0800
commitd77f25432850ea2e2ea9e7fb84c49d52c3a308eb (patch)
tree49c284199f232585dc5c74b4767c845605d747da /mobile-widgets/statsmanager.h
parente7907c494f7f78831c2e2d523f7eb43e25ee77c0 (diff)
downloadsubsurface-d77f25432850ea2e2ea9e7fb84c49d52c3a308eb.tar.gz
statistics: add a skeleton StatsManager class
In analogy to "QMLManager", add a "StatsManager" class, which manages the statistics module on mobile. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'mobile-widgets/statsmanager.h')
-rw-r--r--mobile-widgets/statsmanager.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/mobile-widgets/statsmanager.h b/mobile-widgets/statsmanager.h
new file mode 100644
index 000000000..3cae244c0
--- /dev/null
+++ b/mobile-widgets/statsmanager.h
@@ -0,0 +1,20 @@
+// SPDX-License-Identifier: GPL-2.0
+#ifndef STATSMANAGER_H
+#define STATSMANAGER_H
+
+#include "stats/statsview.h"
+#include "stats/statsstate.h"
+
+class StatsManager : public QObject {
+ Q_OBJECT
+public:
+ StatsManager();
+ ~StatsManager();
+ Q_INVOKABLE void init(StatsView *v);
+ Q_INVOKABLE void doit();
+private:
+ StatsView *view;
+ StatsState state;
+};
+
+#endif