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 | //Readonly constant property, as this value should only be set by the platform | ||||
33 | Q_PROPERTY(bool showPasswordDialog READ showPasswordDialog CONSTANT) | ||||
32 | Q_OBJECT | 34 | Q_OBJECT | ||
33 | public: | 35 | public: | ||
34 | static bool unlockModemOnDetection(); | 36 | static bool unlockModemOnDetection(); | ||
35 | static void setUnlockModemOnDetection(bool unlock); | 37 | static void setUnlockModemOnDetection(bool unlock); | ||
36 | 38 | | |||
37 | static bool manageVirtualConnections(); | 39 | static bool manageVirtualConnections(); | ||
38 | static void setManageVirtualConnections(bool manage); | 40 | static void setManageVirtualConnections(bool manage); | ||
41 | | ||||
42 | static bool showPasswordDialog(); | ||||
39 | }; | 43 | }; | ||
40 | 44 | | |||
41 | #endif // PLAMA_NM_CONFIGURATION_H | 45 | #endif // PLAMA_NM_CONFIGURATION_H | ||
42 | 46 | |