|
DtkNetworkManager
NetworkManager DBus interface binding for Qt
|
对于活动vpn连接属性的封装 更多...
#include <dactivevpnconnection.h>


信号 | |
| void | VpnStateChanged (const NMVpnConnectionState state, const NMActiveConnectionStateReason reason) |
| 信号, 当vpn状态改变时被触发 | |
| void | bannerChanged (const QString &banner) |
| 信号, 当banner改变时被触发 | |
信号 继承自 Dtk::NetworkManager::DActiveConnection | |
| void | devicesChanged (const QList< quint64 > &devices) |
| 信号, 当属性devices改变时被触发 | |
| void | vpnChanged (const bool vpn) |
| 信号, 当属性vpn改变时被触发 | |
| void | connectionChanged (const quint64 &connection) |
| 信号, 当属性connection改变时被触发 | |
| void | DHCP4ConfigChanged (const quint64 &config) |
| 信号, 当属性DHCP4Config改变时被触发 | |
| void | DHCP6ConfigChanged (const quint64 &config) |
| 信号, 当属性DHCP6Config改变时被触发 | |
| void | IP4ConfigChanged (const quint64 &config) |
| 信号, 当属性IP4Config改变时被触发 | |
| void | IP6ConfigChanged (const quint64 &config) |
| 信号, 当属性IP6Config改变时被触发 | |
| void | specificObjectChanged (const quint64 &specObj) |
| 信号, 当属性specificObject改变时被触发 | |
| void | connectionIdChanged (const QString &id) |
| void | connectionTypeChanged (const DNMSetting::SettingType type) |
| 信号, 当属性connectionType改变时被触发 | |
| void | UUIDChanged (const QUuid &UUID) |
| 信号, 当属性UUID改变时被触发 更多... | |
| void | connectionStateChanged (const NMActiveConnectionState state, const NMActiveConnectionStateReason reason) |
| 信号, 连接状态改变时触发此信号, 可以获得状态和原因 | |
Public 成员函数 | |
| DActiveVpnConnection (const quint64 activeConnId, QObject *parent=nullptr) | |
| NMVpnConnectionState | vpnState () const |
| 获取vpn连接状态 更多... | |
| QString | banner () const |
| 获取vpn的banner信息, 如果有 更多... | |
Public 成员函数 继承自 Dtk::NetworkManager::DActiveConnection | |
| DActiveConnection (const quint64 activeConnId, QObject *parent=nullptr) | |
| DActiveConnection (DActiveConnectionPrivate &other, QObject *parent=nullptr) | |
| QList< quint64 > | devices () const |
| 获取设备id列表 更多... | |
| bool | vpn () const |
| 获取该连接是否是vpn连接 更多... | |
| quint64 | connection () const |
| 获取该连接对应的连接配置对象的id 更多... | |
| quint64 | DHCP4Config () const |
| 获取该连接对应的DHCP4配置对象的id 更多... | |
| quint64 | DHCP6Config () const |
| 获取该连接对应的DHCP6配置对象的id 更多... | |
| quint64 | IP4Config () const |
| 获取该连接对应的IPv4配置对象的id 更多... | |
| quint64 | IP6Config () const |
| 获取该连接对应的IPv6配置对象的id 更多... | |
| quint64 | specificObject () const |
| 获取该连接对应的连接关联的特殊对象的id 更多... | |
| QString | connectionId () const |
| DNMSetting::SettingType | connectionType () const |
| 获取该连接对应的连接的类型 更多... | |
| QUuid | UUID () const |
| 获取该连接对应的连接配置对象的UUID 更多... | |
| NMActiveConnectionState | connectionState () const |
| 获取该连接对应的连接的状态 更多... | |
属性 | |
| NMVpnConnectionState | vpnState |
| QString | banner |
属性 继承自 Dtk::NetworkManager::DActiveConnection | |
| QList< quint64 > | devices |
| bool | vpn |
| quint64 | connection |
| quint64 | DHCP4Config |
| quint64 | DHCP6Config |
| quint64 | IP4Config |
| quint64 | IP6Config |
| quint64 | specificObject |
| QString | connectionId |
| DNMSetting::SettingType | connectionType |
| QUuid | UUID |
| NMActiveConnectionState | connectionState |
额外继承的成员函数 | |
Protected 属性 继承自 Dtk::NetworkManager::DActiveConnection | |
| QScopedPointer< DActiveConnectionPrivate > | d_ptr |
对于活动vpn连接属性的封装
| QString DActiveVpnConnection::banner | ( | ) | const |
获取vpn的banner信息, 如果有
| NMVpnConnectionState DActiveVpnConnection::vpnState | ( | ) | const |
获取vpn连接状态