Changeset View
Changeset View
Standalone View
Standalone View
libs/configuration.h
Show All 24 Lines | |||||
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) | 32 | Q_PROPERTY(bool airplaneModeEnabled READ airplaneModeEnabled WRITE setAirplaneModeEnabled) | ||
33 | Q_PROPERTY(QString hotspotName READ hotspotName WRITE setHotspotName) | ||||
34 | Q_PROPERTY(QString hotspotPassword READ hotspotPassword WRITE setHotspotPassword) | ||||
35 | Q_PROPERTY(QString hotspotConnectionPath READ hotspotConnectionPath WRITE setHotspotConnectionPath) | ||||
33 | 36 | | |||
34 | //Readonly constant property, as this value should only be set by the platform | 37 | //Readonly constant property, as this value should only be set by the platform | ||
35 | Q_PROPERTY(bool showPasswordDialog READ showPasswordDialog CONSTANT) | 38 | Q_PROPERTY(bool showPasswordDialog READ showPasswordDialog CONSTANT) | ||
36 | Q_OBJECT | 39 | Q_OBJECT | ||
37 | public: | 40 | public: | ||
38 | static bool unlockModemOnDetection(); | 41 | static bool unlockModemOnDetection(); | ||
39 | static void setUnlockModemOnDetection(bool unlock); | 42 | static void setUnlockModemOnDetection(bool unlock); | ||
40 | 43 | | |||
41 | static bool manageVirtualConnections(); | 44 | static bool manageVirtualConnections(); | ||
42 | static void setManageVirtualConnections(bool manage); | 45 | static void setManageVirtualConnections(bool manage); | ||
43 | 46 | | |||
44 | static bool airplaneModeEnabled(); | 47 | static bool airplaneModeEnabled(); | ||
45 | static void setAirplaneModeEnabled(bool enabled); | 48 | static void setAirplaneModeEnabled(bool enabled); | ||
46 | 49 | | |||
50 | static QString hotspotName(); | ||||
51 | static void setHotspotName(const QString &name); | ||||
52 | | ||||
53 | static QString hotspotPassword(); | ||||
54 | static void setHotspotPassword(const QString &password); | ||||
55 | | ||||
56 | static bool hotspotCreated(); | ||||
57 | | ||||
58 | static QString hotspotConnectionPath(); | ||||
59 | static void setHotspotConnectionPath(const QString &path); | ||||
60 | | ||||
47 | static bool showPasswordDialog(); | 61 | static bool showPasswordDialog(); | ||
48 | }; | 62 | }; | ||
49 | 63 | | |||
50 | #endif // PLAMA_NM_CONFIGURATION_H | 64 | #endif // PLAMA_NM_CONFIGURATION_H | ||
51 | 65 | |