Changeset View
Changeset View
Standalone View
Standalone View
kded/portalmonitor.h
Show All 18 Lines | |||||
19 | * | 19 | * | ||
20 | */ | 20 | */ | ||
21 | 21 | | |||
22 | #ifndef PLASMA_NM_PORTAL_MONITOR_H | 22 | #ifndef PLASMA_NM_PORTAL_MONITOR_H | ||
23 | #define PLASMA_NM_PORTAL_MONITOR_H | 23 | #define PLASMA_NM_PORTAL_MONITOR_H | ||
24 | 24 | | |||
25 | #include <NetworkManagerQt/Manager> | 25 | #include <NetworkManagerQt/Manager> | ||
26 | 26 | | |||
27 | #include <KNotification> | ||||
27 | #include <QObject> | 28 | #include <QObject> | ||
29 | #include <QPointer> | ||||
28 | 30 | | |||
29 | class PortalMonitor : public QObject | 31 | class PortalMonitor : public QObject | ||
30 | { | 32 | { | ||
31 | Q_OBJECT | 33 | Q_OBJECT | ||
32 | public: | 34 | public: | ||
33 | explicit PortalMonitor(QObject *parent); | 35 | explicit PortalMonitor(QObject *parent); | ||
34 | ~PortalMonitor() override; | 36 | ~PortalMonitor() override; | ||
35 | 37 | | |||
36 | private Q_SLOTS: | 38 | private Q_SLOTS: | ||
37 | void connectivityChanged(NetworkManager::Connectivity connectivity); | 39 | void connectivityChanged(NetworkManager::Connectivity connectivity); | ||
38 | void checkConnectivity(); | 40 | void checkConnectivity(); | ||
41 | | ||||
42 | private: | ||||
43 | QPointer<KNotification> m_notification; | ||||
39 | }; | 44 | }; | ||
40 | 45 | | |||
41 | #endif // PLASMA_NM_PORTAL_MONITOR_H | 46 | #endif // PLASMA_NM_PORTAL_MONITOR_H |