NetworkManager::WireGuardDevice Class
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
List of all members, including inherited members
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 : uint
Access functions:
uintfwMark() const
Notifier signal:
voidfwMarkChanged(uintfwMark)
[read-only] listenPort : uint
Access functions:
uintlistenPort() const
Notifier signal:
voidlistenPortChanged(uintlistenPort)
[read-only] publicKey : QByteArray
Access functions:
QByteArraypublicKey() const
Notifier signal:
voidpublicKeyChanged(constQByteArray&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.