7#include "dtkrfmanager_global.h"
10#include "dtksystemsettings_global.h"
13using DCORE_NAMESPACE::DExpected;
14class DRfmanagerPrivate;
15class LIBDTKSYSTEMSETTINGSSHARED_EXPORT
DRfmanager :
public QObject
18 Q_PROPERTY(
bool bluetoothBlocked READ isBluetoothBlocked WRITE blockBluetooth NOTIFY bluetoothBlockedChanged)
19 Q_PROPERTY(
bool wifiBlocked READ isWifiBlocked WRITE blockWifi NOTIFY wifiBlockedChanged)
20 Q_PROPERTY(
int count READ count NOTIFY countChanged)
21 Q_PROPERTY(
bool allBlocked READ isAllBlocked WRITE blockAll NOTIFY allBlockedChanged)
65 bool block(RfType type,
bool blocked =
true);
66 bool block(quint32
id,
bool blocked =
true);
77 DExpected<bool>
blockAll(
bool blockAll =
true);
87 QScopedPointer<DRfmanagerPrivate> d_dptr;
91#if !defined(QT_NO_DEBUG_STREAM)
无线设备管理类
Definition: drfmanager.h:16
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:25
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:54