forked from lxqt/lxqt-connman-applet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontroller.h
41 lines (35 loc) · 1.13 KB
/
controller.h
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
35
36
37
38
39
40
41
#ifndef CONTROLLER_H
#define CONTROLLER_H
#include <QApplication>
#include <QSystemTrayIcon>
#include <QStandardItemModel>
#include <QSharedPointer>
#include "connmanobject.h"
#include "serviceswindow.h"
#include "itemcontroller.h"
#include "agent.h"
class Controller : public QObject
{
Q_OBJECT
public:
Controller();
private:
QStandardItemModel model;
QStandardItem* technologyItemsParent;
QStandardItem* serviceItemsParent;
QMap<QString, TechnologyItemController*> technologyItemControllers;
QMap<QString, ServiceItemController*> serviceItemControllers;
ConnmanManager manager;
Agent agent;
ServicesWindow servicesWindow;
QSystemTrayIcon trayIcon;
private slots:
void onTechnologyAdded(const QDBusObjectPath& path, const QVariantMap& properties);
void onTechnologyRemoved(const QDBusObjectPath& path);
void onServicesUpdated(ObjectPropertiesList services, const QList<QDBusObjectPath>& remove);
void onItemActivated(const QModelIndex& index);
void onTrayIconActivated(QSystemTrayIcon::ActivationReason reason);
void updateTrayIcon();
void about();
};
#endif // CONTROLLER_H