QWlanManager
Loading...
Searching...
No Matches
qwm::Permissions Class Reference

Use to manage all permissions related operations. More...

Inheritance diagram for qwm::Permissions:
Collaboration diagram for qwm::Permissions:

Signals

void sPermissionsChanged (qwm::WlanPerm idPerm)
 Emitted when permissions status changes.
 

Public Member Functions

 Permissions (QObject *parent=nullptr)
 Construct a wlan permission object.
 
WlanPerm retrieveWlanPermissions ()
 Allow to retrieve current wlan permissions status.
 
WlanError askWlanPermissions ()
 Allow to ask for needed permissions.
 

Detailed Description

Use to manage all permissions related operations.

See also
qwm::Manager

Constructor & Destructor Documentation

◆ Permissions()

qwm::Permissions::Permissions ( QObject * parent = nullptr)
explicit

Construct a wlan permission object.

Allow to perform needed backend initialization

Parameters
[out]parentThe parent argument is passed to QObject's constructor

Member Function Documentation

◆ retrieveWlanPermissions()

WlanPerm qwm::Permissions::retrieveWlanPermissions ( )

Allow to retrieve current wlan permissions status.

Returns
Returns permissions status.
See also
askWlanPermissions()

◆ askWlanPermissions()

WlanError qwm::Permissions::askWlanPermissions ( )

Allow to ask for needed permissions.

Permissions cannot be set via native API, it's the user responsibility to give your application required permissions.
So this method will ease the process by opening the related parameter window.

Returns
Returns WlanError::WERR_NO_ERROR if succeed, otherwise see WlanError for more details.
See also
retrieveWlanPermissions()
sPermissionsChanged()

◆ sPermissionsChanged

void qwm::Permissions::sPermissionsChanged ( qwm::WlanPerm idPerm)
signal

Emitted when permissions status changes.

Parameters
[in]idPermNew permission status.
See also
retrieveWlanPermissions(), askWlanPermissions()

The documentation for this class was generated from the following files: