forked from chozabu/FriendMap
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFriendMapController.h
More file actions
34 lines (28 loc) · 843 Bytes
/
FriendMapController.h
File metadata and controls
34 lines (28 loc) · 843 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef FRIENDMAPMANAGER_H
#define FRIENDMAPMANAGER_H
#include <retroshare-gui/mainpage.h>
#include <retroshare/rsplugin.h>
#include <QObject>
#include <QPointer>
#include "FriendMapConfigPage.h"
#include "FriendMapPage.h"
#include "FriendMapSettings.h"
class FriendMapController : public QObject {
Q_OBJECT
public:
explicit FriendMapController(QObject* parent = 0);
~FriendMapController();
MainPage* qt_page() const;
ConfigPage* qt_config_page() const;
FriendMapSettings* getSettings();
private:
bool detached; //cache settings value to do not allow to change it at runtime
FriendMapSettings* settings;
mutable MainPage* mainPage;
mutable QPointer<FriendMapPage> friendMapPage;
signals:
public slots:
void configChanged();
void openWindow();
};
#endif // FRIENDMAPMANAGER_H