Changeset View
Changeset View
Standalone View
Standalone View
src/solid-networkstatus/kded/networkmanagerstatus.h
Show All 28 Lines | |||||
29 | #include <QtDBus/QDBusInterface> | 29 | #include <QtDBus/QDBusInterface> | ||
30 | 30 | | |||
31 | class NetworkManagerStatus : public SystemStatusInterface | 31 | class NetworkManagerStatus : public SystemStatusInterface | ||
32 | { | 32 | { | ||
33 | Q_OBJECT | 33 | Q_OBJECT | ||
34 | public: | 34 | public: | ||
35 | NetworkManagerStatus( QObject *parent = 0 ); | 35 | NetworkManagerStatus( QObject *parent = 0 ); | ||
36 | 36 | | |||
37 | /* reimp */ Solid::Networking::Status status() const; | 37 | Solid::Networking::Status status() const override; | ||
38 | /* reimp */ bool isSupported() const; | 38 | bool isSupported() const override; | ||
39 | /* reimp */ QString serviceName() const; | 39 | QString serviceName() const override; | ||
40 | 40 | | |||
41 | private slots: | 41 | private Q_SLOTS: | ||
42 | void nmStateChanged( uint nmState ); | 42 | void nmStateChanged( uint nmState ); | ||
43 | 43 | | |||
44 | private: | 44 | private: | ||
45 | static Solid::Networking::Status convertNmState( uint nmState ); | 45 | static Solid::Networking::Status convertNmState( uint nmState ); | ||
46 | 46 | | |||
47 | Solid::Networking::Status m_status; | 47 | Solid::Networking::Status m_status; | ||
48 | mutable QDBusInterface m_manager; | 48 | mutable QDBusInterface m_manager; | ||
49 | }; | 49 | }; | ||
50 | 50 | | |||
51 | #endif | 51 | #endif | ||
52 | 52 | |