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> | ||
28 | 29 | | |||
29 | class PortalMonitor : public QObject | 30 | class PortalMonitor : public QObject | ||
30 | { | 31 | { | ||
31 | Q_OBJECT | 32 | Q_OBJECT | ||
32 | public: | 33 | public: | ||
33 | explicit PortalMonitor(QObject *parent); | 34 | explicit PortalMonitor(QObject *parent); | ||
34 | ~PortalMonitor() override; | 35 | ~PortalMonitor() override; | ||
35 | 36 | | |||
36 | private Q_SLOTS: | 37 | private Q_SLOTS: | ||
37 | void connectivityChanged(NetworkManager::Connectivity connectivity); | 38 | void connectivityChanged(NetworkManager::Connectivity connectivity); | ||
38 | void checkConnectivity(); | 39 | void checkConnectivity(); | ||
40 | | ||||
41 | private: | ||||
42 | KNotification *m_notification = nullptr; | ||||
davidedmundson: Needs to be QPointer | |||||
39 | }; | 43 | }; | ||
40 | 44 | | |||
41 | #endif // PLASMA_NM_PORTAL_MONITOR_H | 45 | #endif // PLASMA_NM_PORTAL_MONITOR_H |
Needs to be QPointer