Store QrCode WIFI data.
More...
|
| enum class | SecurityType { NO_SECURITY = 0
, WEP
, WPA
, NB_SECURITY_TYPE
} |
| |
|
| static QString | securityTypeToString (SecurityType idSecurity) |
| | Use to convert security type to string.
|
| |
Store QrCode WIFI data.
Allow to easily set wifi datas of a QrCode.
All will be taking care :
- Escaping special characters
- Encoding to UTF-8
- Manage fields of each security type
For reference, QrCode wifi data formatting is based on this format:
◆ PayloadQrWifi()
| qbar::PayloadQrWifi::PayloadQrWifi |
( |
| ) |
|
◆ getSecurityType()
| PayloadQrWifi::SecurityType qbar::PayloadQrWifi::getSecurityType |
( |
| ) |
const |
Retrieve security type.
- Returns
- Returns current security type of wifi payload.
- See also
- setSecurityType()
◆ getSsid()
| QString qbar::PayloadQrWifi::getSsid |
( |
| ) |
const |
◆ getPassword()
| QString qbar::PayloadQrWifi::getPassword |
( |
| ) |
const |
◆ isHidden()
| bool qbar::PayloadQrWifi::isHidden |
( |
| ) |
const |
Do current wifi network payload is set as an hidden network.
- Returns
- Returns \true if network payload is hidden.
- See also
- setIsHidden()
◆ setSecurityType()
| void qbar::PayloadQrWifi::setSecurityType |
( |
SecurityType | idSecurity | ) |
|
Set security type.
- Parameters
-
| [in] | idSecurity | Security ID to use. |
- See also
- getSecurityType()
◆ setSsid()
| void qbar::PayloadQrWifi::setSsid |
( |
const QString & | ssid | ) |
|
◆ setPassword()
| void qbar::PayloadQrWifi::setPassword |
( |
const QString & | passwd | ) |
|
◆ setIsHidden()
| void qbar::PayloadQrWifi::setIsHidden |
( |
bool | isHidden | ) |
|
Set network hidden status.
- Parameters
-
| [in] | isHidden | Set to true if network is hidden. |
- See also
- isHidden()
◆ securityTypeToString()
| QString qbar::PayloadQrWifi::securityTypeToString |
( |
SecurityType | idSecurity | ) |
|
|
static |
Use to convert security type to string.
- Parameters
-
| [in] | idSecurity | Security ID to convert.
If unknown, string "unknown" will be returned. |
- Returns
- Returns string equivalent.
The documentation for this class was generated from the following files: