NetworkManager::VpnPlugin Class
class NetworkManager::VpnPluginHeader: | #include <NetworkManagerQt/VpnPlugin> |
CMake: | find_package(KF6 REQUIRED COMPONENTS NetworkManagerQt) target_link_libraries(mytarget PRIVATE KF6::NetworkManagerQt) |
Inherits: | QObject |
Public Types
enum | FailureType { LoginFailed, ConnectFailed, BadIpConfig } |
Public Functions
VpnPlugin(const QString &path, QObject *parent = nullptr) |
Signals
void | configChanged(const QVariantMap &configuration) |
void | failureChanged(uint reason) |
void | ip4ConfigChanged(const QVariantMap &ip4config) |
void | ip6ConfigChanged(const QVariantMap &ip6config) |
void | loginBannerChanged(const QString &banner) |
void | stateChanged(NetworkManager::VpnConnection::State state) |
Protected Slots
void | connect(const NMVariantMapMap &connection) |
void | disconnect() |
QString | needSecrets(const NMVariantMapMap &connection) |
void | onStateChanged(uint state) |
void | setConfig(const QVariantMap &config) |
void | setFailure(const QString &reason) |
void | setIp4Config(const QVariantMap &config) |
void | setIp6Config(const QVariantMap &config) |
Detailed Description
Member Type Documentation
enum VpnPlugin::FailureType
Constant | Value |
---|---|
NetworkManager::VpnPlugin::LoginFailed | 0 |
NetworkManager::VpnPlugin::ConnectFailed | 1 |
NetworkManager::VpnPlugin::BadIpConfig | 2 |