NetworkManager::WireGuardDevice Class

class NetworkManager::WireGuardDevice

A WireGuard device interface. More...

Header: #include <NetworkManagerQt/WireGuardDevice>
CMake: find_package(KF6 REQUIRED COMPONENTS NetworkManagerQt)
target_link_libraries(mytarget PRIVATE KF6::NetworkManagerQt)
Inherits: NetworkManager::Device

Public Types

Properties

Public Functions

WireGuardDevice(const QString &path, QObject *parent = nullptr)
uint fwMark() const
uint listenPort() const
QByteArray publicKey() const

Signals

void fwMarkChanged(uint fwMark)
void listenPortChanged(uint listenPort)
void publicKeyChanged(const QByteArray &publicKey)

Detailed Description

Member Type Documentation

WireGuardDevice::List

WireGuardDevice::Ptr

Property Documentation

[read-only] fwMark : const uint

Access functions:

uint fwMark() const

Notifier signal:

void fwMarkChanged(uint fwMark)

[read-only] listenPort : const uint

Access functions:

uint listenPort() const

Notifier signal:

void listenPortChanged(uint listenPort)

[read-only] publicKey : const QByteArray

Access functions:

QByteArray publicKey() const

Notifier signal:

void publicKeyChanged(const QByteArray &publicKey)

Member Function Documentation

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

uint WireGuardDevice::fwMark() const

Optional 32-bit mark used to set routing policy for outgoing encrypted packets. See: ip-rule(8)

Note: Getter function for property fwMark.

[signal] void WireGuardDevice::fwMarkChanged(uint fwMark)

Emitted when the fwmark of this device have changed

Note: Notifier signal for property fwMark.

uint WireGuardDevice::listenPort() const

Local UDP listening port.

Note: Getter function for property listenPort.

[signal] void WireGuardDevice::listenPortChanged(uint listenPort)

Emitted when the listen port of this device has changed

Note: Notifier signal for property listenPort.

QByteArray WireGuardDevice::publicKey() const

32-byte public WireGuard key.

Note: Getter function for property publicKey.

[signal] void WireGuardDevice::publicKeyChanged(const QByteArray &publicKey)

Emitted when the public key of this device has changed

Note: Notifier signal for property publicKey.