Device roles.
More...
#include <VSQDeviceRoles.h>
◆ TRolesList
◆ VSQDeviceRoles() [1/2]
VSQDeviceRoles::VSQDeviceRoles |
( |
| ) |
|
|
default |
◆ VSQDeviceRoles() [2/2]
VSQDeviceRoles::VSQDeviceRoles |
( |
uint32_t |
roles | ) |
|
Assign device roles as bits mask.
- Parameters
-
◆ description()
QString VSQDeviceRoles::description |
( |
const QString & |
divider = QString(", ") | ) |
const |
Describe device roles.
Call this function to receive text description. You can set any divider divider, for example '
' to obtain multiline description
- Parameters
-
- Returns
- Device roles text description
◆ equal()
Compare device roles.
- Parameters
-
deviceRole | Device role to be compared with the current one |
- Returns
- true if both device roles are equal
◆ hasRole()
Check device role.
This function returns true if role is present in the device roles list
- Parameters
-
- Returns
- true if role is present
◆ hasRoles()
bool VSQDeviceRoles::hasRoles |
( |
TRolesList |
roles | ) |
const |
Check device roles.
This function returns true if all roles from the roles list are present in the device roles list
- Parameters
-
roles | Device roles list to check |
- Returns
- true if all roles are present
◆ operator QString()
VSQDeviceRoles::operator QString |
( |
| ) |
const |
|
inline |
◆ operator uint32_t()
VSQDeviceRoles::operator uint32_t |
( |
| ) |
const |
◆ operator<<()
Add device role.
- Parameters
-
- Returns
- Reference to the VSQDeviceRoles instance
The documentation for this class was generated from the following file: