Pages
API Documentation
On this page

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

Signals

Detailed Description

Member Type Documentation

WireGuardDevice::List

WireGuardDevice::Ptr

Property Documentation

[read-only] fwMark : uint

Access functions:

Notifier signal:

[read-only] listenPort : uint

Access functions:

Notifier signal:

[read-only] publicKey : QByteArray

Access functions:

Notifier signal:

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.

We use cookies to personalize content and to analyze our traffic. Please decide if you are willing to accept cookies from our website.