NetworkManager::VpnPlugin Class

class NetworkManager::VpnPlugin
Header: #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

ConstantValue
NetworkManager::VpnPlugin::LoginFailed0
NetworkManager::VpnPlugin::ConnectFailed1
NetworkManager::VpnPlugin::BadIpConfig2

Member Function Documentation

[explicit] VpnPlugin::VpnPlugin(const QString &path, QObject *parent = nullptr)

[signal] void VpnPlugin::configChanged(const QVariantMap &configuration)

[protected slot] void VpnPlugin::connect(const NMVariantMapMap &connection)

[protected slot] void VpnPlugin::disconnect()

[signal] void VpnPlugin::failureChanged(uint reason)

[signal] void VpnPlugin::ip4ConfigChanged(const QVariantMap &ip4config)

[signal] void VpnPlugin::ip6ConfigChanged(const QVariantMap &ip6config)

[signal] void VpnPlugin::loginBannerChanged(const QString &banner)

[protected slot] QString VpnPlugin::needSecrets(const NMVariantMapMap &connection)

[protected slot] void VpnPlugin::onStateChanged(uint state)

[protected slot] void VpnPlugin::setConfig(const QVariantMap &config)

[protected slot] void VpnPlugin::setFailure(const QString &reason)

[protected slot] void VpnPlugin::setIp4Config(const QVariantMap &config)

[protected slot] void VpnPlugin::setIp6Config(const QVariantMap &config)

[signal] void VpnPlugin::stateChanged(NetworkManager::VpnConnection::State state)