QWlanManager
|
Class containing interface properties. More...
Public Member Functions | |
Interface (const Interface &other) | |
Interface (Interface &&other) | |
bool | isValid () const |
Allow to know if an interface instance is valid. | |
bool | isBusy () const |
Allow to know if an interface is busy. | |
IfaceState | getState () const |
Retrieve current interface state. | |
IfaceOptions | getOptions () const |
Retrieve current interface options. | |
const QUuid & | getUid () const |
Retrieve interface Universally Unique Identifier (UUID) | |
const QString & | getHwAddress () const |
Retrieve hardware address of the interface. | |
const QString & | getName () const |
Retrieve interface name. | |
const QString & | getDescription () const |
Retrieve interface description. | |
const CachePolicy & | getCachePolicy () const |
Retrieve interface cache policy. | |
const MapNetworks & | getMapNetworks () const |
Retrieve all networks that interface has detected. | |
ListNetworks | getListNetworks () const |
Retrieve all networks that interface has detected. | |
Network | getNetwork (const QString &ssid) const |
Allow to retrieve a network via SSID. | |
Network | getNetworkConnected () const |
Allow to retrieve interface current network. | |
void | setCachePolicy (const CachePolicy &cachePolicy) |
Allow to set the cache policy of an interface. | |
void | setOptions (IfaceOptions opts) |
Allow to set options of an interface. | |
Interface & | operator= (const Interface &other) |
Interface & | operator= (Interface &&other) noexcept |
bool | operator== (const Interface &other) const |
Use to compare interface instances. | |
bool | operator!= (const Interface &other) const |
Properties | |
QUuid | uid |
QString | hwAddress |
QString | name |
QString | description |
CachePolicy | cachePolicy |
IfaceOptions | options |
Friends | |
class | InterfaceMutator |
Class containing interface properties.
This class contains all related interface properties (status, name, list of networks, etc...).
This class use implicit sharing memory (via shared pointer), this allow to:
qwm::Manager
bool qwm::Interface::isValid | ( | ) | const |
Allow to know if an interface instance is valid.
true
if interface is valid bool qwm::Interface::isBusy | ( | ) | const |
Allow to know if an interface is busy.
true
if interface is currently performing a request. IfaceState qwm::Interface::getState | ( | ) | const |
Retrieve current interface state.
IfaceOptions qwm::Interface::getOptions | ( | ) | const |
const QUuid & qwm::Interface::getUid | ( | ) | const |
Retrieve interface Universally Unique Identifier (UUID)
const QString & qwm::Interface::getHwAddress | ( | ) | const |
Retrieve hardware address of the interface.
AA:11
:BB:22:CC:33 const QString & qwm::Interface::getName | ( | ) | const |
Retrieve interface name.
const QString & qwm::Interface::getDescription | ( | ) | const |
Retrieve interface description.
const CachePolicy & qwm::Interface::getCachePolicy | ( | ) | const |
Retrieve interface cache policy.
const MapNetworks & qwm::Interface::getMapNetworks | ( | ) | const |
Retrieve all networks that interface has detected.
ListNetworks qwm::Interface::getListNetworks | ( | ) | const |
Retrieve all networks that interface has detected.
Network qwm::Interface::getNetwork | ( | const QString & | ssid | ) | const |
Allow to retrieve a network via SSID.
[in] | ssid | Network SSID to use. If SSID is unknown/unavailable, returned network will be invalid. |
Network qwm::Interface::getNetworkConnected | ( | ) | const |
Allow to retrieve interface current network.
void qwm::Interface::setCachePolicy | ( | const CachePolicy & | cachePolicy | ) |
Allow to set the cache policy of an interface.
[in] | cachePolicy | Cache policy to use. |
void qwm::Interface::setOptions | ( | IfaceOptions | opts | ) |
Allow to set options of an interface.
[in] | opts | Options to use. |
bool qwm::Interface::operator== | ( | const Interface & | other | ) | const |