NetworkManager::IpTunnelDevice

Search for usage in LXR

NetworkManager::IpTunnelDevice Class Reference

#include <iptunneldevice.h>

Inheritance diagram for NetworkManager::IpTunnelDevice:

Public Types

typedef QList< PtrList
 
typedef QSharedPointer< IpTunnelDevicePtr
 
- Public Types inherited from NetworkManager::Device
typedef QFlags< CapabilityCapabilities
 
enum  Capability { IsManageable = 0x1 , SupportsCarrierDetect = 0x2 }
 
enum  Interfaceflag { None = NM_DEVICE_INTERFACE_FLAG_NONE , Up = NM_DEVICE_INTERFACE_FLAG_UP , LowerUp = NM_DEVICE_INTERFACE_FLAG_LOWER_UP , Carrier = NM_DEVICE_INTERFACE_FLAG_CARRIER }
 
typedef QFlags< InterfaceflagInterfaceflags
 
typedef QList< PtrList
 
enum  MeteredStatus {
  UnknownStatus = 0 , Yes = 1 , No = 2 , GuessYes = 3 ,
  GuessNo = 4
}
 
typedef QSharedPointer< DevicePtr
 
enum  State {
  UnknownState = 0 , Unmanaged = 10 , Unavailable = 20 , Disconnected = 30 ,
  Preparing = 40 , ConfiguringHardware = 50 , NeedAuth = 60 , ConfiguringIp = 70 ,
  CheckingIp = 80 , WaitingForSecondaries = 90 , Activated = 100 , Deactivating = 110 ,
  Failed = 120
}
 
enum  StateChangeReason {
  UnknownReason = 0 , NoReason = 1 , NowManagedReason = 2 , NowUnmanagedReason = 3 ,
  ConfigFailedReason = 4 , ConfigUnavailableReason = 5 , ConfigExpiredReason = 6 , NoSecretsReason = 7 ,
  AuthSupplicantDisconnectReason = 8 , AuthSupplicantConfigFailedReason = 9 , AuthSupplicantFailedReason = 10 , AuthSupplicantTimeoutReason = 11 ,
  PppStartFailedReason = 12 , PppDisconnectReason = 13 , PppFailedReason = 14 , DhcpStartFailedReason = 15 ,
  DhcpErrorReason = 16 , DhcpFailedReason = 17 , SharedStartFailedReason = 18 , SharedFailedReason = 19 ,
  AutoIpStartFailedReason = 20 , AutoIpErrorReason = 21 , AutoIpFailedReason = 22 , ModemBusyReason = 23 ,
  ModemNoDialToneReason = 24 , ModemNoCarrierReason = 25 , ModemDialTimeoutReason = 26 , ModemDialFailedReason = 27 ,
  ModemInitFailedReason = 28 , GsmApnSelectFailedReason = 29 , GsmNotSearchingReason = 30 , GsmRegistrationDeniedReason = 31 ,
  GsmRegistrationTimeoutReason = 32 , GsmRegistrationFailedReason = 33 , GsmPinCheckFailedReason = 34 , FirmwareMissingReason = 35 ,
  DeviceRemovedReason = 36 , SleepingReason = 37 , ConnectionRemovedReason = 38 , UserRequestedReason = 39 ,
  CarrierReason = 40 , ConnectionAssumedReason = 41 , SupplicantAvailableReason = 42 , ModemNotFoundReason = 43 ,
  BluetoothFailedReason = 44 , GsmSimNotInserted = 45 , GsmSimPinRequired = 46 , GsmSimPukRequired = 47 ,
  GsmSimWrong = 48 , InfiniBandMode = 49 , DependencyFailed = 50 , Br2684Failed = 51 ,
  ModemManagerUnavailable = 52 , SsidNotFound = 53 , SecondaryConnectionFailed = 54 , DcbFcoeFailed = 55 ,
  TeamdControlFailed = 56 , ModemFailed = 57 , ModemAvailable = 58 , SimPinIncorrect = 59 ,
  NewActivation = 60 , ParentChanged = 61 , ParentManagedChanged = 62 , Reserved = 65536
}
 
enum  Type {
  UnknownType = NM_DEVICE_TYPE_UNKNOWN , Ethernet = NM_DEVICE_TYPE_ETHERNET , Wifi = NM_DEVICE_TYPE_WIFI , Unused1 = NM_DEVICE_TYPE_UNUSED1 ,
  Unused2 = NM_DEVICE_TYPE_UNUSED2 , Bluetooth = NM_DEVICE_TYPE_BT , OlpcMesh = NM_DEVICE_TYPE_OLPC_MESH , Wimax = NM_DEVICE_TYPE_WIMAX ,
  Modem = NM_DEVICE_TYPE_MODEM , InfiniBand = NM_DEVICE_TYPE_INFINIBAND , Bond = NM_DEVICE_TYPE_BOND , Vlan = NM_DEVICE_TYPE_VLAN ,
  Adsl = NM_DEVICE_TYPE_ADSL , Bridge = NM_DEVICE_TYPE_BRIDGE , Generic = NM_DEVICE_TYPE_GENERIC , Team = NM_DEVICE_TYPE_TEAM ,
  Gre , MacVlan , Tun , Veth ,
  IpTunnel , VxLan , MacSec , Dummy ,
  Ppp , OvsInterface , OvsPort , OvsBridge ,
  Wpan , Lowpan , WireGuard , WifiP2P ,
  VRF , Loopback
}
 
typedef QFlags< TypeTypes
 
- Public Types inherited from QObject
typedef  QObjectList
 

Properties

uchar encapsulationLimit
 
uint flowLabel
 
QString inputKey
 
QString local
 
uint mode
 
QString outputKey
 
NetworkManager::Device::Ptr parent
 
bool pathMtuDiscovery
 
QString remote
 
uchar tos
 
uchar ttl
 
- Properties inherited from NetworkManager::Device
bool autoconnect
 
NetworkManager::DeviceStatistics::Ptr deviceStatistics
 
QString driver
 
QString driverVersion
 
bool firmwareMissing
 
QString firmwareVersion
 
QVariant genericCapabilities
 
Interfaceflags InterfaceFlags
 
QString interfaceName
 
QString ipInterfaceName
 
QHostAddress ipV4Address
 
bool managed
 
MeteredStatus metered
 
uint mtu
 
bool nmPluginMissing
 
State state
 
DeviceStateReason stateReason
 
QString udi
 
QString uni
 
- Properties inherited from QObject
 objectName
 

Signals

void encapsulationLimitChanged (uchar limit)
 
void flowLabelChanged (uint flowLabel)
 
void inputKeyChanged (const QString &inputKey)
 
void localChanged (const QString &local)
 
void modeChanged (uint mode)
 
void outputKeyChanged (const QString &outputKey)
 
void parentChanged (const QString &parent)
 
void pathMtuDiscoveryChanged (bool pathMtuDiscovery)
 
void remoteChanged (const QString &remote)
 
void tosChanged (uchar tos)
 
void ttlChanged (uchar ttl)
 
- Signals inherited from NetworkManager::Device
void activeConnectionChanged ()
 
void autoconnectChanged ()
 
void availableConnectionAppeared (const QString &connection)
 
void availableConnectionChanged ()
 
void availableConnectionDisappeared (const QString &connection)
 
void capabilitiesChanged ()
 
void connectionStateChanged ()
 
void dhcp4ConfigChanged ()
 
void dhcp6ConfigChanged ()
 
void driverChanged ()
 
void driverVersionChanged ()
 
void firmwareMissingChanged ()
 
void firmwareVersionChanged ()
 
void interfaceFlagsChanged ()
 
void interfaceNameChanged ()
 
void ipInterfaceChanged ()
 
void ipV4AddressChanged ()
 
void ipV4ConfigChanged ()
 
void ipV6ConfigChanged ()
 
void managedChanged ()
 
void meteredChanged (MeteredStatus metered)
 
void mtuChanged ()
 
void nmPluginMissingChanged (bool nmPluginMissing)
 
void physicalPortIdChanged ()
 
void stateChanged (NetworkManager::Device::State newstate, NetworkManager::Device::State oldstate, NetworkManager::Device::StateChangeReason reason)
 
void stateReasonChanged ()
 
void udiChanged ()
 

Public Member Functions

 IpTunnelDevice (const QString &path, QObject *parent=nullptr)
 
uchar encapsulationLimit () const
 
uint flowLabel () const
 
QString inputKey () const
 
QString local () const
 
uint mode () const
 
QString outputKey () const
 
NetworkManager::Device::Ptr parent () const
 
bool pathMtuDiscovery () const
 
QString remote () const
 
uchar tos () const
 
uchar ttl () const
 
Type type () const override
 
- Public Member Functions inherited from NetworkManager::Device
 Device (const QString &path, QObject *parent=nullptr)
 
 ~Device () override
 
NetworkManager::ActiveConnection::Ptr activeConnection () const
 
template<class DevIface >
DevIface * as ()
 
template<class DevIface >
const DevIface * as () const
 
bool autoconnect () const
 
Connection::List availableConnections ()
 
Capabilities capabilities () const
 
QVariant capabilitiesV () const
 
QDBusPendingReply deleteInterface ()
 
int designSpeed () const
 
DeviceStatistics::Ptr deviceStatistics () const
 
Dhcp4Config::Ptr dhcp4Config () const
 
Dhcp6Config::Ptr dhcp6Config () const
 
QDBusPendingReply disconnectInterface ()
 
QString driver () const
 
QString driverVersion () const
 
bool firmwareMissing () const
 
QString firmwareVersion () const
 
Interfaceflags interfaceFlags () const
 
QString interfaceName () const
 
QString ipInterfaceName () const
 
QHostAddress ipV4Address () const
 
IpConfig ipV4Config () const
 
IpConfig ipV6Config () const
 
bool isActive () const
 
bool isValid () const
 
bool managed () const
 
MeteredStatus metered () const
 
uint mtu () const
 
bool nmPluginMissing () const
 
QString physicalPortId () const
 
QDBusPendingReply reapplyConnection (const NMVariantMapMap &connection, qulonglong version_id, uint flags)
 
void setAutoconnect (bool autoconnect)
 
State state () const
 
DeviceStateReason stateReason () const
 
QString udi () const
 
QString uni () const
 
- Public Member Functions inherited from QObject
 QObject (QObject *parent)
 
QBindable< QStringbindableObjectName ()
 
bool blockSignals (bool block)
 
const QObjectListchildren () const const
 
QMetaObject::Connection connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const const
 
void deleteLater ()
 
void destroyed (QObject *obj)
 
bool disconnect (const char *signal, const QObject *receiver, const char *method) const const
 
bool disconnect (const QObject *receiver, const char *method) const const
 
void dumpObjectInfo () const const
 
void dumpObjectTree () const const
 
QList< QByteArraydynamicPropertyNames () const const
 
virtual bool event (QEvent *e)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
findChild (const QString &name, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QString &name, Qt::FindChildOptions options) const const
 
QList< T > findChildren (Qt::FindChildOptions options) const const
 
bool inherits (const char *className) const const
 
void installEventFilter (QObject *filterObj)
 
bool isQuickItemType () const const
 
bool isWidgetType () const const
 
bool isWindowType () const const
 
void killTimer (int id)
 
virtual const QMetaObjectmetaObject () const const
 
void moveToThread (QThread *targetThread)
 
QString objectName () const const
 
void objectNameChanged (const QString &objectName)
 
QObjectparent () const const
 
QVariant property (const char *name) const const
 
 Q_CLASSINFO (Name, Value)
 
 Q_EMIT Q_EMIT
 
 Q_ENUM (...)
 
 Q_ENUM_NS (...)
 
 Q_ENUMS (...)
 
 Q_FLAG (...)
 
 Q_FLAG_NS (...)
 
 Q_FLAGS (...)
 
 Q_GADGET Q_GADGET
 
 Q_GADGET_EXPORT (EXPORT_MACRO)
 
 Q_INTERFACES (...)
 
 Q_INVOKABLE Q_INVOKABLE
 
 Q_MOC_INCLUDE Q_MOC_INCLUDE
 
 Q_NAMESPACE Q_NAMESPACE
 
 Q_NAMESPACE_EXPORT (EXPORT_MACRO)
 
 Q_OBJECT Q_OBJECT
 
 Q_PROPERTY (...)
 
 Q_REVISION Q_REVISION
 
 Q_SET_OBJECT_NAME (Object)
 
 Q_SIGNAL Q_SIGNAL
 
 Q_SIGNALS Q_SIGNALS
 
 Q_SLOT Q_SLOT
 
 Q_SLOTS Q_SLOTS
 
qobject_cast (const QObject *object)
 
qobject_cast (QObject *object)
 
 QT_NO_NARROWING_CONVERSIONS_IN_CONNECT QT_NO_NARROWING_CONVERSIONS_IN_CONNECT
 
void removeEventFilter (QObject *obj)
 
void setObjectName (const QString &name)
 
void setObjectName (QAnyStringView name)
 
void setParent (QObject *parent)
 
bool setProperty (const char *name, const QVariant &value)
 
bool setProperty (const char *name, QVariant &&value)
 
bool signalsBlocked () const const
 
int startTimer (int interval, Qt::TimerType timerType)
 
int startTimer (std::chrono::milliseconds interval, Qt::TimerType timerType)
 
QThreadthread () const const
 

Additional Inherited Members

- Static Public Member Functions inherited from QObject
QMetaObject::Connection connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, Functor functor)
 
bool disconnect (const QMetaObject::Connection &connection)
 
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
 
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
bool disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method)
 
QString tr (const char *sourceText, const char *disambiguation, int n)
 
- Protected Member Functions inherited from NetworkManager::Device
NETWORKMANAGERQT_NO_EXPORT Device (DevicePrivate &dd, QObject *parent)
 
- Protected Member Functions inherited from QObject
virtual void childEvent (QChildEvent *event)
 
virtual void connectNotify (const QMetaMethod &signal)
 
virtual void customEvent (QEvent *event)
 
virtual void disconnectNotify (const QMetaMethod &signal)
 
bool isSignalConnected (const QMetaMethod &signal) const const
 
int receivers (const char *signal) const const
 
QObjectsender () const const
 
int senderSignalIndex () const const
 
virtual void timerEvent (QTimerEvent *event)
 
- Protected Attributes inherited from NetworkManager::Device
DevicePrivate *const d_ptr
 

Detailed Description

A Ip Tunnel device interface.

Definition at line 20 of file iptunneldevice.h.

Member Typedef Documentation

◆ List

◆ Ptr

Property Documentation

◆ encapsulationLimit

uchar NetworkManager::IpTunnelDevice::encapsulationLimit
read

Definition at line 23 of file iptunneldevice.h.

◆ flowLabel

uint NetworkManager::IpTunnelDevice::flowLabel
read

Definition at line 24 of file iptunneldevice.h.

◆ inputKey

QString NetworkManager::IpTunnelDevice::inputKey
read

Definition at line 25 of file iptunneldevice.h.

◆ local

QString NetworkManager::IpTunnelDevice::local
read

Definition at line 26 of file iptunneldevice.h.

◆ mode

uint NetworkManager::IpTunnelDevice::mode
read

Definition at line 27 of file iptunneldevice.h.

◆ outputKey

QString NetworkManager::IpTunnelDevice::outputKey
read

Definition at line 28 of file iptunneldevice.h.

◆ parent

NetworkManager::Device::Ptr NetworkManager::IpTunnelDevice::parent
read

Definition at line 29 of file iptunneldevice.h.

◆ pathMtuDiscovery

bool NetworkManager::IpTunnelDevice::pathMtuDiscovery
read

Definition at line 30 of file iptunneldevice.h.

◆ remote

QString NetworkManager::IpTunnelDevice::remote
read

Definition at line 31 of file iptunneldevice.h.

◆ tos

uchar NetworkManager::IpTunnelDevice::tos
read

Definition at line 32 of file iptunneldevice.h.

◆ ttl

uchar NetworkManager::IpTunnelDevice::ttl
read

Definition at line 33 of file iptunneldevice.h.

Constructor & Destructor Documentation

◆ IpTunnelDevice()

NetworkManager::IpTunnelDevice::IpTunnelDevice ( const QString & path,
QObject * parent = nullptr )
explicit

Definition at line 25 of file iptunneldevice.cpp.

◆ ~IpTunnelDevice()

NetworkManager::IpTunnelDevice::~IpTunnelDevice ( )
override

Definition at line 37 of file iptunneldevice.cpp.

Member Function Documentation

◆ encapsulationLimit()

uchar NetworkManager::IpTunnelDevice::encapsulationLimit ( ) const

How many additional levels of encapsulation are permitted to be prepended to packets.

This property applies only to IPv6 tunnels.

Definition at line 46 of file iptunneldevice.cpp.

◆ encapsulationLimitChanged

void NetworkManager::IpTunnelDevice::encapsulationLimitChanged ( uchar limit)
signal

Emitted when the encapsulation limit has changed.

◆ flowLabel()

uint NetworkManager::IpTunnelDevice::flowLabel ( ) const

The flow label to assign to tunnel packets.

This property applies only to IPv6 tunnels.

Definition at line 52 of file iptunneldevice.cpp.

◆ flowLabelChanged

void NetworkManager::IpTunnelDevice::flowLabelChanged ( uint flowLabel)
signal

Emitted when the flow label has changed.

◆ inputKey()

QString NetworkManager::IpTunnelDevice::inputKey ( ) const

The key used for incoming packets.

Definition at line 58 of file iptunneldevice.cpp.

◆ inputKeyChanged

void NetworkManager::IpTunnelDevice::inputKeyChanged ( const QString & inputKey)
signal

Emitted when the key used for incoming packets has changed.

◆ local()

QString NetworkManager::IpTunnelDevice::local ( ) const

The local endpoint of the tunnel.

Definition at line 64 of file iptunneldevice.cpp.

◆ localChanged

void NetworkManager::IpTunnelDevice::localChanged ( const QString & local)
signal

Emitted when the local endpoint of the tunnel has changed.

◆ mode()

uint NetworkManager::IpTunnelDevice::mode ( ) const

The tunneling mode.

Definition at line 70 of file iptunneldevice.cpp.

◆ modeChanged

void NetworkManager::IpTunnelDevice::modeChanged ( uint mode)
signal

Emitted when the tunneling mode has changed.

◆ outputKey()

QString NetworkManager::IpTunnelDevice::outputKey ( ) const

The key used for outgoing packets.

Definition at line 76 of file iptunneldevice.cpp.

◆ outputKeyChanged

void NetworkManager::IpTunnelDevice::outputKeyChanged ( const QString & outputKey)
signal

Emitted when the key used for outgoing packets has changed.

◆ parent()

NetworkManager::Device::Ptr NetworkManager::IpTunnelDevice::parent ( ) const

The object path of the parent device.

Definition at line 82 of file iptunneldevice.cpp.

◆ parentChanged

void NetworkManager::IpTunnelDevice::parentChanged ( const QString & parent)
signal

Emitted when the parent of this device has changed.

◆ pathMtuDiscovery()

bool NetworkManager::IpTunnelDevice::pathMtuDiscovery ( ) const

Whether path MTU discovery is enabled on this tunnel.

Definition at line 88 of file iptunneldevice.cpp.

◆ pathMtuDiscoveryChanged

void NetworkManager::IpTunnelDevice::pathMtuDiscoveryChanged ( bool pathMtuDiscovery)
signal

Emitted when the path MTU discovery enablemened has changed.

◆ remote()

QString NetworkManager::IpTunnelDevice::remote ( ) const

The remote endpoint of the tunnel.

Definition at line 94 of file iptunneldevice.cpp.

◆ remoteChanged

void NetworkManager::IpTunnelDevice::remoteChanged ( const QString & remote)
signal

Emitted when the remote endpoint of the tunnel has changed.

◆ tos()

uchar NetworkManager::IpTunnelDevice::tos ( ) const

The type of service (IPv4) or traffic class (IPv6) assigned to tunneled packets.

Definition at line 100 of file iptunneldevice.cpp.

◆ tosChanged

void NetworkManager::IpTunnelDevice::tosChanged ( uchar tos)
signal

Emitted when the type of service or traffic class assigned to tunneled packets has changed.

◆ ttl()

uchar NetworkManager::IpTunnelDevice::ttl ( ) const

The TTL assigned to tunneled packets.

0 is a special value meaning that packets inherit the TTL value

Definition at line 106 of file iptunneldevice.cpp.

◆ ttlChanged

void NetworkManager::IpTunnelDevice::ttlChanged ( uchar ttl)
signal

Emitted when the TTL assigned to tunneled packets has changed.

◆ type()

NetworkManager::Device::Type NetworkManager::IpTunnelDevice::type ( ) const
overridevirtual

Retrieves the interface type.

This is a virtual function that will return the proper type of all sub-classes.

Returns
the NetworkManager::Device::Type that corresponds to this device.

Reimplemented from NetworkManager::Device.

Definition at line 41 of file iptunneldevice.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:13 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.