Changeset View
Changeset View
Standalone View
Standalone View
libs/configuration.h
Show All 23 Lines | |||||
24 | #include <QObject> | 24 | #include <QObject> | ||
25 | 25 | | |||
26 | #include <NetworkManagerQt/Manager> | 26 | #include <NetworkManagerQt/Manager> | ||
27 | 27 | | |||
28 | class Q_DECL_EXPORT Configuration : public QObject | 28 | class Q_DECL_EXPORT Configuration : public QObject | ||
29 | { | 29 | { | ||
30 | Q_PROPERTY(bool unlockModemOnDetection READ unlockModemOnDetection WRITE setUnlockModemOnDetection) | 30 | Q_PROPERTY(bool unlockModemOnDetection READ unlockModemOnDetection WRITE setUnlockModemOnDetection) | ||
31 | Q_PROPERTY(bool manageVirtualConnections READ manageVirtualConnections WRITE setManageVirtualConnections) | 31 | Q_PROPERTY(bool manageVirtualConnections READ manageVirtualConnections WRITE setManageVirtualConnections) | ||
32 | Q_PROPERTY(bool airplaneModeEnabled READ airplaneModeEnabled WRITE setAirplaneModeEnabled) | ||||
33 | | ||||
32 | //Readonly constant property, as this value should only be set by the platform | 34 | //Readonly constant property, as this value should only be set by the platform | ||
33 | Q_PROPERTY(bool showPasswordDialog READ showPasswordDialog CONSTANT) | 35 | Q_PROPERTY(bool showPasswordDialog READ showPasswordDialog CONSTANT) | ||
34 | Q_OBJECT | 36 | Q_OBJECT | ||
35 | public: | 37 | public: | ||
36 | static bool unlockModemOnDetection(); | 38 | static bool unlockModemOnDetection(); | ||
37 | static void setUnlockModemOnDetection(bool unlock); | 39 | static void setUnlockModemOnDetection(bool unlock); | ||
38 | 40 | | |||
39 | static bool manageVirtualConnections(); | 41 | static bool manageVirtualConnections(); | ||
40 | static void setManageVirtualConnections(bool manage); | 42 | static void setManageVirtualConnections(bool manage); | ||
41 | 43 | | |||
44 | static bool airplaneModeEnabled(); | ||||
45 | static void setAirplaneModeEnabled(bool enabled); | ||||
46 | | ||||
42 | static bool showPasswordDialog(); | 47 | static bool showPasswordDialog(); | ||
43 | }; | 48 | }; | ||
44 | 49 | | |||
45 | #endif // PLAMA_NM_CONFIGURATION_H | 50 | #endif // PLAMA_NM_CONFIGURATION_H | ||
46 | 51 | |