• NetworkDevice
  • NetworkDevice Class

    (nymeaserver::NetworkDevice)

    Represents a generic network device the NetworkManager. More...

    Header: #include <NetworkDevice>
    Inherits:
    Inherited By:

    nymeaserver::WiredNetworkDevice and nymeaserver::WirelessNetworkDevice

    Public Types

    enum NetworkDeviceState { NetworkDeviceStateUnknown, NetworkDeviceStateUnmanaged, NetworkDeviceStateUnavailable, NetworkDeviceStateDisconnected, ..., NetworkDeviceStateFailed }
    enum NetworkDeviceStateReason { NetworkDeviceStateReasonNone, NetworkDeviceStateReasonUnknown, NetworkDeviceStateReasonNowManaged, NetworkDeviceStateReasonNowUnmanaged, ..., NetworkDeviceStateReasonParentManagedChanged }
    enum NetworkDeviceType { NetworkDeviceTypeUnknown, NetworkDeviceTypeEthernet, NetworkDeviceTypeWifi, NetworkDeviceTypeBluetooth, ..., NetworkDeviceTypeVEth }

    Public Functions

    NetworkDevice(const QDBusObjectPath & objectPath, QObject * parent = 0)
    QDBusObjectPath activeConnection() const
    bool autoconnect() const
    QList<QDBusObjectPath> availableConnections() const
    NetworkDeviceState deviceState() const
    NetworkDeviceStateReason deviceStateReason() const
    QString deviceStateString() const
    NetworkDeviceType deviceType() const
    void disconnectDevice()
    QString driver() const
    QString driverVersion() const
    QString firmwareVersion() const
    QString interface() const
    QDBusObjectPath ip4Config() const
    QString ipInterface() const
    uint metered() const
    uint mtu() const
    QDBusObjectPath objectPath() const
    QString physicalPortId() const
    QString udi() const

    Signals

    void deviceChanged()

    Static Public Members

    QString deviceStateReasonToString(const NetworkDeviceStateReason & deviceStateReason)
    QString deviceStateToString(const NetworkDeviceState & deviceState)
    QString deviceTypeToString(const NetworkDeviceType & deviceType)

    Detailed Description

    Represents a generic network device the NetworkManager.

    See also WiredNetworkDevice and WirelessNetworkDevice.

    Member Type Documentation

    enum NetworkDevice::NetworkDeviceState

    ConstantValue
    nymeaserver::NetworkDevice::NetworkDeviceStateUnknown0
    nymeaserver::NetworkDevice::NetworkDeviceStateUnmanaged10
    nymeaserver::NetworkDevice::NetworkDeviceStateUnavailable20
    nymeaserver::NetworkDevice::NetworkDeviceStateDisconnected30
    nymeaserver::NetworkDevice::NetworkDeviceStatePrepare40
    nymeaserver::NetworkDevice::NetworkDeviceStateConfig50
    nymeaserver::NetworkDevice::NetworkDeviceStateNeedAuth60
    nymeaserver::NetworkDevice::NetworkDeviceStateIpConfig70
    nymeaserver::NetworkDevice::NetworkDeviceStateIpCheck80
    nymeaserver::NetworkDevice::NetworkDeviceStateSecondaries90
    nymeaserver::NetworkDevice::NetworkDeviceStateActivated100
    nymeaserver::NetworkDevice::NetworkDeviceStateDeactivating110
    nymeaserver::NetworkDevice::NetworkDeviceStateFailed120

    enum NetworkDevice::NetworkDeviceStateReason

    ConstantValue
    nymeaserver::NetworkDevice::NetworkDeviceStateReasonNone0
    nymeaserver::NetworkDevice::NetworkDeviceStateReasonUnknown1
    nymeaserver::NetworkDevice::NetworkDeviceStateReasonNowManaged2
    nymeaserver::NetworkDevice::NetworkDeviceStateReasonNowUnmanaged3
    nymeaserver::NetworkDevice::NetworkDeviceStateReasonConfigFailed4
    nymeaserver::NetworkDevice::NetworkDeviceStateReasonIpConfigUnavailable5
    nymeaserver::NetworkDevice::NetworkDeviceStateReasonIpConfigExpired6
    nymeaserver::NetworkDevice::NetworkDeviceStateReasonNoSecrets7
    nymeaserver::NetworkDevice::NetworkDeviceStateReasonSupplicantDisconnected8
    nymeaserver::NetworkDevice::NetworkDeviceStateReasonSupplicantConfigFailed9
    nymeaserver::NetworkDevice::NetworkDeviceStateReasonSupplicantFailed10
    nymeaserver::NetworkDevice::NetworkDeviceStateReasonSupplicantTimeout11
    nymeaserver::NetworkDevice::NetworkDeviceStateReasonPppStartFailed12
    nymeaserver::NetworkDevice::NetworkDeviceStateReasonPppDisconnected13
    nymeaserver::NetworkDevice::NetworkDeviceStateReasonPppFailed14
    nymeaserver::NetworkDevice::NetworkDeviceStateReasonDhcpStartFailed15
    nymeaserver::NetworkDevice::NetworkDeviceStateReasonDhcpError16
    nymeaserver::NetworkDevice::NetworkDeviceStateReasonDhcpFailed17
    nymeaserver::NetworkDevice::NetworkDeviceStateReasonSharedStartFailed18
    nymeaserver::NetworkDevice::NetworkDeviceStateReasonSharedFailed19
    nymeaserver::NetworkDevice::NetworkDeviceStateReasonAutoIpStartFailed20
    nymeaserver::NetworkDevice::NetworkDeviceStateReasonAutoIpError21
    nymeaserver::NetworkDevice::NetworkDeviceStateReasonAutoIpFailed22
    nymeaserver::NetworkDevice::NetworkDeviceStateReasonModemBusy23
    nymeaserver::NetworkDevice::NetworkDeviceStateReasonModemNoDialTone24
    nymeaserver::NetworkDevice::NetworkDeviceStateReasonModemNoCarrier25
    nymeaserver::NetworkDevice::NetworkDeviceStateReasonModemDialTimeout26
    nymeaserver::NetworkDevice::NetworkDeviceStateReasonModemDialFailed27
    nymeaserver::NetworkDevice::NetworkDeviceStateReasonModemInitFailed28
    nymeaserver::NetworkDevice::NetworkDeviceStateReasonGsmApnFailed29
    nymeaserver::NetworkDevice::NetworkDeviceStateReasonGsmRegistrationNotSearching30
    nymeaserver::NetworkDevice::NetworkDeviceStateReasonGsmRegistrationDenied31
    nymeaserver::NetworkDevice::NetworkDeviceStateReasonGsmRegistrationTimeout32
    nymeaserver::NetworkDevice::NetworkDeviceStateReasonGsmRegistrationFailed33
    nymeaserver::NetworkDevice::NetworkDeviceStateReasonGsmPinCheckFailed34
    nymeaserver::NetworkDevice::NetworkDeviceStateReasonFirmwareMissing35
    nymeaserver::NetworkDevice::NetworkDeviceStateReasonRemoved36
    nymeaserver::NetworkDevice::NetworkDeviceStateReasonSleeping37
    nymeaserver::NetworkDevice::NetworkDeviceStateReasonConnectionRemoved38
    nymeaserver::NetworkDevice::NetworkDeviceStateReasonUserRequest39
    nymeaserver::NetworkDevice::NetworkDeviceStateReasonCarrier40
    nymeaserver::NetworkDevice::NetworkDeviceStateReasonConnectionAssumed41
    nymeaserver::NetworkDevice::NetworkDeviceStateReasonSupplicantAvailable42
    nymeaserver::NetworkDevice::NetworkDeviceStateReasonModemNotFound43
    nymeaserver::NetworkDevice::NetworkDeviceStateReasonBtFailed44
    nymeaserver::NetworkDevice::NetworkDeviceStateReasonGsmSimNotInserted45
    nymeaserver::NetworkDevice::NetworkDeviceStateReasonGsmSimPinRequired46
    nymeaserver::NetworkDevice::NetworkDeviceStateReasonGsmSimPukRequired47
    nymeaserver::NetworkDevice::NetworkDeviceStateReasonGsmSimWrong48
    nymeaserver::NetworkDevice::NetworkDeviceStateReasonInfinibandMode49
    nymeaserver::NetworkDevice::NetworkDeviceStateReasonDependencyFailed50
    nymeaserver::NetworkDevice::NetworkDeviceStateReasonBR2684Failed51
    nymeaserver::NetworkDevice::NetworkDeviceStateReasonModemManagerUnavailable52
    nymeaserver::NetworkDevice::NetworkDeviceStateReasonSsidNotFound53
    nymeaserver::NetworkDevice::NetworkDeviceStateReasonSecondaryConnectionFailed54
    nymeaserver::NetworkDevice::NetworkDeviceStateReasonDcbFoecFailed55
    nymeaserver::NetworkDevice::NetworkDeviceStateReasonTeamdControlFailed56
    nymeaserver::NetworkDevice::NetworkDeviceStateReasonModemFailed57
    nymeaserver::NetworkDevice::NetworkDeviceStateReasonModemAvailable58
    nymeaserver::NetworkDevice::NetworkDeviceStateReasonSimPinIncorrect59
    nymeaserver::NetworkDevice::NetworkDeviceStateReasonNewActivision60
    nymeaserver::NetworkDevice::NetworkDeviceStateReasonParentChanged61
    nymeaserver::NetworkDevice::NetworkDeviceStateReasonParentManagedChanged62

    enum NetworkDevice::NetworkDeviceType

    ConstantValue
    nymeaserver::NetworkDevice::NetworkDeviceTypeUnknown0
    nymeaserver::NetworkDevice::NetworkDeviceTypeEthernet1
    nymeaserver::NetworkDevice::NetworkDeviceTypeWifi2
    nymeaserver::NetworkDevice::NetworkDeviceTypeBluetooth5
    nymeaserver::NetworkDevice::NetworkDeviceTypeOlpcMesh6
    nymeaserver::NetworkDevice::NetworkDeviceTypeWiMax7
    nymeaserver::NetworkDevice::NetworkDeviceTypeModem8
    nymeaserver::NetworkDevice::NetworkDeviceTypeInfiniBand9
    nymeaserver::NetworkDevice::NetworkDeviceTypeBond10
    nymeaserver::NetworkDevice::NetworkDeviceTypeVLan11
    nymeaserver::NetworkDevice::NetworkDeviceTypeAdsl12
    nymeaserver::NetworkDevice::NetworkDeviceTypeBridge13
    nymeaserver::NetworkDevice::NetworkDeviceTypeGeneric14
    nymeaserver::NetworkDevice::NetworkDeviceTypeTeam15
    nymeaserver::NetworkDevice::NetworkDeviceTypeTun16
    nymeaserver::NetworkDevice::NetworkDeviceTypeIpTunnel17
    nymeaserver::NetworkDevice::NetworkDeviceTypeMacVLan18
    nymeaserver::NetworkDevice::NetworkDeviceTypeVXLan19
    nymeaserver::NetworkDevice::NetworkDeviceTypeVEth20

    Member Function Documentation

    NetworkDevice::NetworkDevice(const QDBusObjectPath & objectPath, QObject * parent = 0)

    Constructs a new NetworkDevice with the given dbus objectPath and parent.

    QDBusObjectPath NetworkDevice::activeConnection() const

    Returns the dbus object path of the currently active connection of this NetworkDevice.

    bool NetworkDevice::autoconnect() const

    Returns true if autoconnect is enabled for this NetworkDevice.

    QList<QDBusObjectPath> NetworkDevice::availableConnections() const

    Returns the list of dbus object paths for the currently available connection of this NetworkDevice.

    [signal] void NetworkDevice::deviceChanged()

    This signal will be emitted when the properties of this NetworkDevice have changed.

    NetworkDeviceState NetworkDevice::deviceState() const

    Returns the device state of this NetworkDevice.

    See also NetworkDeviceState.

    NetworkDeviceStateReason NetworkDevice::deviceStateReason() const

    Returns the reason for the current state of this NetworkDevice.

    See also NetworkDeviceStateReason.

    [static] QString NetworkDevice::deviceStateReasonToString(const NetworkDeviceStateReason & deviceStateReason)

    QString NetworkDevice::deviceStateString() const

    Returns the human readable device state of this NetworkDevice.

    See also NetworkDeviceState.

    [static] QString NetworkDevice::deviceStateToString(const NetworkDeviceState & deviceState)

    NetworkDeviceType NetworkDevice::deviceType() const

    Returns the device type of this NetworkDevice.

    See also NetworkDeviceType.

    [static] QString NetworkDevice::deviceTypeToString(const NetworkDeviceType & deviceType)

    void NetworkDevice::disconnectDevice()

    Disconnect the current connection from this NetworkDevice.

    QString NetworkDevice::driver() const

    Returns the used driver name for this NetworkDevice.

    QString NetworkDevice::driverVersion() const

    Returns the version of the used driver for this NetworkDevice.

    QString NetworkDevice::firmwareVersion() const

    Returns the firmware version of this NetworkDevice.

    QString NetworkDevice::interface() const

    Returns the interface name of this NetworkDevice.

    QDBusObjectPath NetworkDevice::ip4Config() const

    Returns the dbus object path from the IPv4 configuration of this NetworkDevice.

    QString NetworkDevice::ipInterface() const

    Returns the ip interface of this NetworkDevice.

    uint NetworkDevice::metered() const

    Returns the metered property of this NetworkDevice.

    uint NetworkDevice::mtu() const

    Returns the mtu of this NetworkDevice.

    QDBusObjectPath NetworkDevice::objectPath() const

    Returns the dbus object path of this NetworkDevice.

    QString NetworkDevice::physicalPortId() const

    Returns the physical port id of this NetworkDevice.

    QString NetworkDevice::udi() const

    Returns the udi of this NetworkDevice.