Changeset View
Changeset View
Standalone View
Standalone View
libs/handler.h
Show First 20 Lines • Show All 62 Lines • ▼ Show 20 Line(s) | 52 | public Q_SLOTS: | |||
---|---|---|---|---|---|
63 | * @specificParameter - d-bus path of the accesspoint you want to connect to | 63 | * @specificParameter - d-bus path of the accesspoint you want to connect to | ||
64 | * @password - pre-filled password which should be used for the new wireless connection | 64 | * @password - pre-filled password which should be used for the new wireless connection | ||
65 | * @autoConnect - boolean value whether this connection should be activated automatically when it's available | 65 | * @autoConnect - boolean value whether this connection should be activated automatically when it's available | ||
66 | * | 66 | * | ||
67 | * Works automatically for wireless connections with WEP/WPA security, for wireless connections with WPA/WPA | 67 | * Works automatically for wireless connections with WEP/WPA security, for wireless connections with WPA/WPA | ||
68 | * it will open the connection editor for advanced configuration. | 68 | * it will open the connection editor for advanced configuration. | ||
69 | * */ | 69 | * */ | ||
70 | void addAndActivateConnection(const QString &device, const QString &specificParameter, const QString &password = QString()); | 70 | void addAndActivateConnection(const QString &device, const QString &specificParameter, const QString &password = QString()); | ||
71 | | ||||
72 | /** | ||||
broulik: Docs, coding style. | |||||
73 | * Returns a code that includes the credentials to a said wifi connection | ||||
74 | * Here's some information on how this information is created, it's generally used to put in QR codes to share. | ||||
75 | * https://github.com/zxing/zxing/wiki/Barcode-Contents#wi-fi-network-config-android-ios-11 | ||||
76 | * | ||||
77 | * @param connectionPath the d-bus path to the connection we want to read | ||||
78 | * @param specificPath the path of the object we need to inspect (i.e. the access point) | ||||
79 | */ | ||||
80 | QString wifiCode(const QString &connectionPath, const QString &specificPath) const; | ||||
81 | | ||||
71 | /** | 82 | /** | ||
72 | * Adds a new connection | 83 | * Adds a new connection | ||
73 | * @map - NMVariantMapMap with connection settings | 84 | * @map - NMVariantMapMap with connection settings | ||
74 | */ | 85 | */ | ||
75 | void addConnection(const NMVariantMapMap &map); | 86 | void addConnection(const NMVariantMapMap &map); | ||
76 | /** | 87 | /** | ||
77 | * Deactivates given connection | 88 | * Deactivates given connection | ||
78 | * @connection - d-bus path of the connection you want to deactivate | 89 | * @connection - d-bus path of the connection you want to deactivate | ||
▲ Show 20 Lines • Show All 55 Lines • Show Last 20 Lines |
Docs, coding style.