| 1 | /* |
| 2 | * This file was generated by qdbusxml2cpp version 0.8 |
| 3 | * Command line was: |
| 4 | * |
| 5 | * qdbusxml2cpp is Copyright (C) 2016 The Qt Company Ltd. |
| 6 | * |
| 7 | * This is an auto-generated file. |
| 8 | * Do not edit! All changes made to it will be lost. |
| 9 | */ |
| 10 | |
| 11 | #ifndef DEVICEINTERFACE_H |
| 12 | #define DEVICEINTERFACE_H |
| 13 | |
| 14 | #include "generictypes.h" |
| 15 | |
| 16 | #include <QDBusAbstractInterface> |
| 17 | #include <QDBusObjectPath> |
| 18 | #include <QDBusPendingReply> |
| 19 | #include <QList> |
| 20 | #include <QObject> |
| 21 | #include <QString> |
| 22 | #include <QVariant> |
| 23 | |
| 24 | /* |
| 25 | * Proxy class for interface org.freedesktop.NetworkManager.Device |
| 26 | */ |
| 27 | class OrgFreedesktopNetworkManagerDeviceInterface : public QDBusAbstractInterface |
| 28 | { |
| 29 | Q_OBJECT |
| 30 | public: |
| 31 | static inline const char *staticInterfaceName() |
| 32 | #ifdef NMQT_STATIC |
| 33 | { |
| 34 | return "org.kde.fakenetwork.Device" ; |
| 35 | } |
| 36 | #else |
| 37 | { |
| 38 | return "org.freedesktop.NetworkManager.Device" ; |
| 39 | } |
| 40 | #endif |
| 41 | |
| 42 | public: |
| 43 | OrgFreedesktopNetworkManagerDeviceInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = nullptr); |
| 44 | |
| 45 | ~OrgFreedesktopNetworkManagerDeviceInterface() override; |
| 46 | |
| 47 | Q_PROPERTY(QDBusObjectPath ActiveConnection READ activeConnection) |
| 48 | inline QDBusObjectPath activeConnection() const |
| 49 | { |
| 50 | return qvariant_cast<QDBusObjectPath>(v: property(name: "ActiveConnection" )); |
| 51 | } |
| 52 | |
| 53 | Q_PROPERTY(bool Autoconnect READ autoconnect WRITE setAutoconnect) |
| 54 | inline bool autoconnect() const |
| 55 | { |
| 56 | return qvariant_cast<bool>(v: property(name: "Autoconnect" )); |
| 57 | } |
| 58 | inline void setAutoconnect(bool value) |
| 59 | { |
| 60 | setProperty(name: "Autoconnect" , value: QVariant::fromValue(value)); |
| 61 | } |
| 62 | |
| 63 | Q_PROPERTY(QList<QDBusObjectPath> AvailableConnections READ availableConnections) |
| 64 | inline QList<QDBusObjectPath> availableConnections() const |
| 65 | { |
| 66 | return qvariant_cast<QList<QDBusObjectPath>>(v: property(name: "AvailableConnections" )); |
| 67 | } |
| 68 | |
| 69 | Q_PROPERTY(uint Capabilities READ capabilities) |
| 70 | inline uint capabilities() const |
| 71 | { |
| 72 | return qvariant_cast<uint>(v: property(name: "Capabilities" )); |
| 73 | } |
| 74 | |
| 75 | Q_PROPERTY(uint DeviceType READ deviceType) |
| 76 | inline uint deviceType() const |
| 77 | { |
| 78 | return qvariant_cast<uint>(v: property(name: "DeviceType" )); |
| 79 | } |
| 80 | |
| 81 | Q_PROPERTY(QDBusObjectPath Dhcp4Config READ dhcp4Config) |
| 82 | inline QDBusObjectPath dhcp4Config() const |
| 83 | { |
| 84 | return qvariant_cast<QDBusObjectPath>(v: property(name: "Dhcp4Config" )); |
| 85 | } |
| 86 | |
| 87 | Q_PROPERTY(QDBusObjectPath Dhcp6Config READ dhcp6Config) |
| 88 | inline QDBusObjectPath dhcp6Config() const |
| 89 | { |
| 90 | return qvariant_cast<QDBusObjectPath>(v: property(name: "Dhcp6Config" )); |
| 91 | } |
| 92 | |
| 93 | Q_PROPERTY(QString Driver READ driver) |
| 94 | inline QString driver() const |
| 95 | { |
| 96 | return qvariant_cast<QString>(v: property(name: "Driver" )); |
| 97 | } |
| 98 | |
| 99 | Q_PROPERTY(QString DriverVersion READ driverVersion) |
| 100 | inline QString driverVersion() const |
| 101 | { |
| 102 | return qvariant_cast<QString>(v: property(name: "DriverVersion" )); |
| 103 | } |
| 104 | |
| 105 | Q_PROPERTY(bool FirmwareMissing READ firmwareMissing) |
| 106 | inline bool firmwareMissing() const |
| 107 | { |
| 108 | return qvariant_cast<bool>(v: property(name: "FirmwareMissing" )); |
| 109 | } |
| 110 | |
| 111 | Q_PROPERTY(QString FirmwareVersion READ firmwareVersion) |
| 112 | inline QString firmwareVersion() const |
| 113 | { |
| 114 | return qvariant_cast<QString>(v: property(name: "FirmwareVersion" )); |
| 115 | } |
| 116 | |
| 117 | Q_PROPERTY(QString Interface READ interface) |
| 118 | inline QString interface() const |
| 119 | { |
| 120 | return qvariant_cast<QString>(v: property(name: "Interface" )); |
| 121 | } |
| 122 | |
| 123 | Q_PROPERTY(uint Ip4Address READ ip4Address) |
| 124 | inline uint ip4Address() const |
| 125 | { |
| 126 | return qvariant_cast<uint>(v: property(name: "Ip4Address" )); |
| 127 | } |
| 128 | |
| 129 | Q_PROPERTY(QDBusObjectPath Ip4Config READ ip4Config) |
| 130 | inline QDBusObjectPath ip4Config() const |
| 131 | { |
| 132 | return qvariant_cast<QDBusObjectPath>(v: property(name: "Ip4Config" )); |
| 133 | } |
| 134 | |
| 135 | Q_PROPERTY(QDBusObjectPath Ip6Config READ ip6Config) |
| 136 | inline QDBusObjectPath ip6Config() const |
| 137 | { |
| 138 | return qvariant_cast<QDBusObjectPath>(v: property(name: "Ip6Config" )); |
| 139 | } |
| 140 | |
| 141 | Q_PROPERTY(QString IpInterface READ ipInterface) |
| 142 | inline QString ipInterface() const |
| 143 | { |
| 144 | return qvariant_cast<QString>(v: property(name: "IpInterface" )); |
| 145 | } |
| 146 | |
| 147 | Q_PROPERTY(uint InterfaceFlags READ interfaceFlags) |
| 148 | inline uint interfaceFlags() const |
| 149 | { |
| 150 | return qvariant_cast<uint>(v: property(name: "InterfaceFlags" )); |
| 151 | } |
| 152 | |
| 153 | Q_PROPERTY(NMVariantMapList LldpNeighbors READ lldpNeighbors) |
| 154 | inline NMVariantMapList lldpNeighbors() const |
| 155 | { |
| 156 | return qvariant_cast<NMVariantMapList>(v: property(name: "LldpNeighbors" )); |
| 157 | } |
| 158 | |
| 159 | Q_PROPERTY(bool Managed READ managed WRITE setManaged) |
| 160 | inline bool managed() const |
| 161 | { |
| 162 | return qvariant_cast<bool>(v: property(name: "Managed" )); |
| 163 | } |
| 164 | inline void setManaged(bool value) |
| 165 | { |
| 166 | setProperty(name: "Managed" , value: QVariant::fromValue(value)); |
| 167 | } |
| 168 | |
| 169 | Q_PROPERTY(uint Metered READ metered) |
| 170 | inline uint metered() const |
| 171 | { |
| 172 | return qvariant_cast<uint>(v: property(name: "Metered" )); |
| 173 | } |
| 174 | |
| 175 | Q_PROPERTY(uint Mtu READ mtu) |
| 176 | inline uint mtu() const |
| 177 | { |
| 178 | return qvariant_cast<uint>(v: property(name: "Mtu" )); |
| 179 | } |
| 180 | |
| 181 | Q_PROPERTY(bool NmPluginMissing READ nmPluginMissing) |
| 182 | inline bool nmPluginMissing() const |
| 183 | { |
| 184 | return qvariant_cast<bool>(v: property(name: "NmPluginMissing" )); |
| 185 | } |
| 186 | |
| 187 | Q_PROPERTY(QString PhysicalPortId READ physicalPortId) |
| 188 | inline QString physicalPortId() const |
| 189 | { |
| 190 | return qvariant_cast<QString>(v: property(name: "PhysicalPortId" )); |
| 191 | } |
| 192 | |
| 193 | Q_PROPERTY(bool Real READ real) |
| 194 | inline bool real() const |
| 195 | { |
| 196 | return qvariant_cast<bool>(v: property(name: "Real" )); |
| 197 | } |
| 198 | |
| 199 | Q_PROPERTY(uint State READ state) |
| 200 | inline uint state() const |
| 201 | { |
| 202 | return qvariant_cast<uint>(v: property(name: "State" )); |
| 203 | } |
| 204 | |
| 205 | Q_PROPERTY(DeviceDBusStateReason StateReason READ stateReason) |
| 206 | inline DeviceDBusStateReason stateReason() const |
| 207 | { |
| 208 | return qvariant_cast<DeviceDBusStateReason>(v: property(name: "StateReason" )); |
| 209 | } |
| 210 | |
| 211 | Q_PROPERTY(QString Udi READ udi) |
| 212 | inline QString udi() const |
| 213 | { |
| 214 | return qvariant_cast<QString>(v: property(name: "Udi" )); |
| 215 | } |
| 216 | |
| 217 | public Q_SLOTS: // METHODS |
| 218 | inline QDBusPendingReply<> Delete() |
| 219 | { |
| 220 | QList<QVariant> argumentList; |
| 221 | return asyncCallWithArgumentList(QStringLiteral("Delete" ), args: argumentList); |
| 222 | } |
| 223 | |
| 224 | inline QDBusPendingReply<> Disconnect() |
| 225 | { |
| 226 | QList<QVariant> argumentList; |
| 227 | return asyncCallWithArgumentList(QStringLiteral("Disconnect" ), args: argumentList); |
| 228 | } |
| 229 | |
| 230 | inline QDBusPendingReply<NMVariantMapMap, qulonglong> GetAppliedConnection(uint flags) |
| 231 | { |
| 232 | QList<QVariant> argumentList; |
| 233 | argumentList << QVariant::fromValue(value: flags); |
| 234 | return asyncCallWithArgumentList(QStringLiteral("GetAppliedConnection" ), args: argumentList); |
| 235 | } |
| 236 | |
| 237 | inline QDBusPendingReply<> Reapply(NMVariantMapMap connection, qulonglong version_id, uint flags) |
| 238 | { |
| 239 | QList<QVariant> argumentList; |
| 240 | argumentList << QVariant::fromValue(value: connection) << QVariant::fromValue(value: version_id) << QVariant::fromValue(value: flags); |
| 241 | return asyncCallWithArgumentList(QStringLiteral("Reapply" ), args: argumentList); |
| 242 | } |
| 243 | |
| 244 | Q_SIGNALS: // SIGNALS |
| 245 | void StateChanged(uint new_state, uint old_state, uint reason); |
| 246 | }; |
| 247 | |
| 248 | #endif |
| 249 | |