7#include "dtkrfmanager_global.h" 
    8#include "dtksystemsettings_global.h" 
   15using DCORE_NAMESPACE::DExpected;
 
   16class DRfmanagerPrivate;
 
   18class LIBDTKSYSTEMSETTINGSSHARED_EXPORT 
DRfmanager : 
public QObject
 
   21    Q_PROPERTY(
bool bluetoothBlocked READ isBluetoothBlocked WRITE blockBluetooth NOTIFY
 
   22                       bluetoothBlockedChanged)
 
   23    Q_PROPERTY(
bool wifiBlocked READ isWifiBlocked WRITE blockWifi NOTIFY wifiBlockedChanged)
 
   24    Q_PROPERTY(
int count READ count NOTIFY countChanged)
 
   25    Q_PROPERTY(
bool allBlocked READ isAllBlocked WRITE blockAll NOTIFY allBlockedChanged)
 
   69    bool block(RfType type, 
bool blocked = 
true);
 
   70    bool block(quint32 
id, 
bool blocked = 
true);
 
   81    DExpected<bool> 
blockAll(
bool blockAll = 
true);
 
   91    QScopedPointer<DRfmanagerPrivate> d_dptr;
 
 
   95#if !defined(QT_NO_DEBUG_STREAM) 
无线设备管理类
Definition drfmanager.h:19
bool isWifiBlocked() const
无线网络设备是否禁用
bool isAllBlocked() const
支持的设备是否都被禁用
bool isBluetoothBlocked() const
蓝牙设备是否禁用
DExpected< bool > blockBluetooth(bool bluetoothBlocked=true)
禁用或者启用蓝牙设备
bool block(RfType type, bool blocked=true)
禁用或者启用类型为 type 的无线设备
void bluetoothBlockedChanged(bool bluetoothBlocked)
蓝牙设备禁用或者启用状态发生变化信号
DExpected< bool > blockAll(bool blockAll=true)
禁用或者启用所有无线设备
QList< RfDevice > deviceList() const
获取支持的设备列表
void blockedChanged(quint32 idx)
设备禁用或者启用状态发生变化信号
RfOperation
<
Definition drfmanager.h:29
void countChanged(int count)
无线设备拔插时即设备数量变化的信号
bool block(quint32 id, bool blocked=true)
禁用或者启用设备编号为 id 的无线设备
void allBlockedChanged(bool blockAll)
支持的所有社别设备全部禁用或者非全部状态发生变化信号
DExpected< bool > blockWifi(bool wifiBlocked=true)
禁用或者启用无线网络设备
void wifiBlockedChanged(bool wifiBlocked)
无线网络设备禁用或者启用状态发生变化信号
virtual ~DRfmanager() override
析构函数
int count() const
获取支持的设备数量
DRfmanager(QObject *parent=nullptr)
构造函数
Definition drfmanager.h:58