C
QWifiConfiguration Class
Used to define a network configuration. More...
| Header: | #include <QWifiConfiguration> |
| Inherits: | QObject |
Properties
- passphrase : QString
- protocol : QString
- ssid : QString
- ssidHidden : bool
- 1 property inherited from QObject
Public Functions
| QWifiConfiguration(QObject *parent = 0) | |
| virtual | ~QWifiConfiguration() |
| bool | isSsidHidden() const |
| QString | passphrase() const |
| QString | protocol() const |
| void | setPassphrase(const QString &passphrase) |
| void | setProtocol(const QString &protocol) |
| void | setSsid(const QString &ssid) |
| void | setSsidHidden(bool hidden) |
| QString | ssid() const |
- 31 public functions inherited from QObject
Additional Inherited Members
- 1 public slot inherited from QObject
- 2 signals inherited from QObject
- 1 public variable inherited from QObject
- 10 static public members inherited from QObject
- 9 protected functions inherited from QObject
- 2 protected variables inherited from QObject
Detailed Description
Used to define a network configuration.
QWifiConfiguration object represents a single network configuration. Use it to configure properties of your network. For example, passphrase, security protocol to use, and so on. QWifiManager::connect() function uses this information to find a network that matches the provided configuration, before establishing a connection.
Property Documentation
passphrase : QString
This property holds a passphrase to use for authenticating access to a network.
Access functions:
| QString | passphrase() const |
| void | setPassphrase(const QString &passphrase) |
protocol : QString
This property holds a security protocol to use for Wifi connection.
WPA is used by default if protocol is not explicitly set. Supported values are: WPA, WPA2, WEP, WPS.
Access functions:
| QString | protocol() const |
| void | setProtocol(const QString &protocol) |
ssid : QString
This property holds a human-readable name of a Wifi network.
Access functions:
| QString | ssid() const |
| void | setSsid(const QString &ssid) |
ssidHidden : bool
This property holds whether a Wifi access point broadcasts its SSID.
If a Wifi access point does not broadcast its SSID, setting this property to true ensures that the Wifi backend can detect the specified network.
By default this property is set to false.
Access functions:
| bool | isSsidHidden() const |
| void | setSsidHidden(bool hidden) |
Member Function Documentation
QWifiConfiguration::QWifiConfiguration(QObject *parent = 0)
Constructs a configuration object with parent parent.
[virtual] QWifiConfiguration::~QWifiConfiguration()
Destroys the configuration object.
Available under certain Qt licenses.
Find out more.