Changeset View
Changeset View
Standalone View
Standalone View
libs/handler.h
Show All 39 Lines | |||||
40 | public: | 40 | public: | ||
41 | enum HandlerAction { | 41 | enum HandlerAction { | ||
42 | ActivateConnection, | 42 | ActivateConnection, | ||
43 | AddAndActivateConnection, | 43 | AddAndActivateConnection, | ||
44 | AddConnection, | 44 | AddConnection, | ||
45 | DeactivateConnection, | 45 | DeactivateConnection, | ||
46 | RemoveConnection, | 46 | RemoveConnection, | ||
47 | RequestScan, | 47 | RequestScan, | ||
48 | UpdateConnection | 48 | UpdateConnection, | ||
49 | CreateHotspot, | ||||
49 | }; | 50 | }; | ||
50 | 51 | | |||
51 | explicit Handler(QObject* parent = nullptr); | 52 | explicit Handler(QObject* parent = nullptr); | ||
52 | ~Handler() override; | 53 | ~Handler() override; | ||
53 | 54 | | |||
55 | Q_PROPERTY(bool hotspotSupported READ hotspotSupported); | ||||
56 | public: | ||||
57 | bool hotspotSupported() const; | ||||
58 | | ||||
54 | public Q_SLOTS: | 59 | public Q_SLOTS: | ||
55 | /** | 60 | /** | ||
56 | * Activates given connection | 61 | * Activates given connection | ||
57 | * @connection - d-bus path of the connection you want to activate | 62 | * @connection - d-bus path of the connection you want to activate | ||
58 | * @device - d-bus path of the device where the connection should be activated | 63 | * @device - d-bus path of the device where the connection should be activated | ||
59 | * @specificParameter - d-bus path of the specific object you want to use for this activation, i.e access point | 64 | * @specificParameter - d-bus path of the specific object you want to use for this activation, i.e access point | ||
60 | */ | 65 | */ | ||
61 | void activateConnection(const QString &connection, const QString &device, const QString &specificParameter); | 66 | void activateConnection(const QString &connection, const QString &device, const QString &specificParameter); | ||
▲ Show 20 Lines • Show All 49 Lines • ▼ Show 20 Line(s) | |||||
111 | /** | 116 | /** | ||
112 | * Updates given connection | 117 | * Updates given connection | ||
113 | * @connection - connection which should be updated | 118 | * @connection - connection which should be updated | ||
114 | * @map - NMVariantMapMap with new connection settings | 119 | * @map - NMVariantMapMap with new connection settings | ||
115 | */ | 120 | */ | ||
116 | void updateConnection(const NetworkManager::Connection::Ptr &connection, const NMVariantMapMap &map); | 121 | void updateConnection(const NetworkManager::Connection::Ptr &connection, const NMVariantMapMap &map); | ||
117 | void requestScan(const QString &interface = QString()); | 122 | void requestScan(const QString &interface = QString()); | ||
118 | 123 | | |||
124 | void createHotspot(); | ||||
125 | void stopHotspot(); | ||||
126 | | ||||
119 | private Q_SLOTS: | 127 | private Q_SLOTS: | ||
120 | void initKdedModule(); | 128 | void initKdedModule(); | ||
121 | void secretAgentError(const QString &connectionPath, const QString &message); | 129 | void secretAgentError(const QString &connectionPath, const QString &message); | ||
122 | void replyFinished(QDBusPendingCallWatcher *watcher); | 130 | void replyFinished(QDBusPendingCallWatcher *watcher); | ||
131 | void hotspotCreated(QDBusPendingCallWatcher *watcher); | ||||
123 | #if WITH_MODEMMANAGER_SUPPORT | 132 | #if WITH_MODEMMANAGER_SUPPORT | ||
124 | void unlockRequiredChanged(MMModemLock modemLock); | 133 | void unlockRequiredChanged(MMModemLock modemLock); | ||
125 | #endif | 134 | #endif | ||
126 | 135 | | |||
127 | Q_SIGNALS: | 136 | Q_SIGNALS: | ||
128 | void connectionActivationFailed(const QString &connectionPath, const QString &message); | 137 | void connectionActivationFailed(const QString &connectionPath, const QString &message); | ||
129 | private: | 138 | private: | ||
130 | bool m_tmpWirelessEnabled; | 139 | bool m_tmpWirelessEnabled; | ||
Show All 17 Lines |