mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
e7907c494f
commit
d77f254328
5 changed files with 53 additions and 0 deletions
20
mobile-widgets/statsmanager.h
Normal file
20
mobile-widgets/statsmanager.h
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue