Changeset View
Changeset View
Standalone View
Standalone View
libs/declarative/enabledconnections.h
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Line(s) | |||||
42 | /** | 42 | /** | ||
43 | * Indicates if mobile broadband devices are currently enabled or not. | 43 | * Indicates if mobile broadband devices are currently enabled or not. | ||
44 | */ | 44 | */ | ||
45 | Q_PROPERTY(bool wwanEnabled READ isWwanEnabled NOTIFY wwanEnabled) | 45 | Q_PROPERTY(bool wwanEnabled READ isWwanEnabled NOTIFY wwanEnabled) | ||
46 | /** | 46 | /** | ||
47 | * Indicates if the mobile broadband hardware is currently enabled, i.e. the state of the RF kill switch. | 47 | * Indicates if the mobile broadband hardware is currently enabled, i.e. the state of the RF kill switch. | ||
48 | */ | 48 | */ | ||
49 | Q_PROPERTY(bool wwanHwEnabled READ isWwanHwEnabled NOTIFY wwanHwEnabled) | 49 | Q_PROPERTY(bool wwanHwEnabled READ isWwanHwEnabled NOTIFY wwanHwEnabled) | ||
50 | | ||||
50 | Q_OBJECT | 51 | Q_OBJECT | ||
51 | public: | 52 | public: | ||
52 | explicit EnabledConnections(QObject* parent = nullptr); | 53 | explicit EnabledConnections(QObject* parent = nullptr); | ||
53 | ~EnabledConnections() override; | 54 | ~EnabledConnections() override; | ||
54 | 55 | | |||
55 | bool isNetworkingEnabled() const; | 56 | bool isNetworkingEnabled() const; | ||
56 | bool isWirelessEnabled() const; | 57 | bool isWirelessEnabled() const; | ||
57 | bool isWirelessHwEnabled() const; | 58 | bool isWirelessHwEnabled() const; | ||
Show All 26 Lines |