File indexing completed on 2024-06-09 07:45:16

0001 /*
0002  * This file was generated by qdbusxml2cpp version 0.8
0003  * Command line was:
0004  *
0005  * qdbusxml2cpp is Copyright (C) 2016 The Qt Company Ltd.
0006  *
0007  * This is an auto-generated file.
0008  * Do not edit! All changes made to it will be lost.
0009  */
0010 
0011 #ifndef DEVICEINTERFACE_H
0012 #define DEVICEINTERFACE_H
0013 
0014 #include "generictypes.h"
0015 
0016 #include <QDBusAbstractInterface>
0017 #include <QDBusObjectPath>
0018 #include <QDBusPendingReply>
0019 #include <QList>
0020 #include <QObject>
0021 #include <QString>
0022 #include <QVariant>
0023 
0024 /*
0025  * Proxy class for interface org.freedesktop.NetworkManager.Device
0026  */
0027 class OrgFreedesktopNetworkManagerDeviceInterface : public QDBusAbstractInterface
0028 {
0029     Q_OBJECT
0030 public:
0031     static inline const char *staticInterfaceName()
0032 #ifdef NMQT_STATIC
0033     {
0034         return "org.kde.fakenetwork.Device";
0035     }
0036 #else
0037     {
0038         return "org.freedesktop.NetworkManager.Device";
0039     }
0040 #endif
0041 
0042 public:
0043     OrgFreedesktopNetworkManagerDeviceInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = nullptr);
0044 
0045     ~OrgFreedesktopNetworkManagerDeviceInterface() override;
0046 
0047     Q_PROPERTY(QDBusObjectPath ActiveConnection READ activeConnection)
0048     inline QDBusObjectPath activeConnection() const
0049     {
0050         return qvariant_cast<QDBusObjectPath>(property("ActiveConnection"));
0051     }
0052 
0053     Q_PROPERTY(bool Autoconnect READ autoconnect WRITE setAutoconnect)
0054     inline bool autoconnect() const
0055     {
0056         return qvariant_cast<bool>(property("Autoconnect"));
0057     }
0058     inline void setAutoconnect(bool value)
0059     {
0060         setProperty("Autoconnect", QVariant::fromValue(value));
0061     }
0062 
0063     Q_PROPERTY(QList<QDBusObjectPath> AvailableConnections READ availableConnections)
0064     inline QList<QDBusObjectPath> availableConnections() const
0065     {
0066         return qvariant_cast<QList<QDBusObjectPath>>(property("AvailableConnections"));
0067     }
0068 
0069     Q_PROPERTY(uint Capabilities READ capabilities)
0070     inline uint capabilities() const
0071     {
0072         return qvariant_cast<uint>(property("Capabilities"));
0073     }
0074 
0075     Q_PROPERTY(uint DeviceType READ deviceType)
0076     inline uint deviceType() const
0077     {
0078         return qvariant_cast<uint>(property("DeviceType"));
0079     }
0080 
0081     Q_PROPERTY(QDBusObjectPath Dhcp4Config READ dhcp4Config)
0082     inline QDBusObjectPath dhcp4Config() const
0083     {
0084         return qvariant_cast<QDBusObjectPath>(property("Dhcp4Config"));
0085     }
0086 
0087     Q_PROPERTY(QDBusObjectPath Dhcp6Config READ dhcp6Config)
0088     inline QDBusObjectPath dhcp6Config() const
0089     {
0090         return qvariant_cast<QDBusObjectPath>(property("Dhcp6Config"));
0091     }
0092 
0093     Q_PROPERTY(QString Driver READ driver)
0094     inline QString driver() const
0095     {
0096         return qvariant_cast<QString>(property("Driver"));
0097     }
0098 
0099     Q_PROPERTY(QString DriverVersion READ driverVersion)
0100     inline QString driverVersion() const
0101     {
0102         return qvariant_cast<QString>(property("DriverVersion"));
0103     }
0104 
0105     Q_PROPERTY(bool FirmwareMissing READ firmwareMissing)
0106     inline bool firmwareMissing() const
0107     {
0108         return qvariant_cast<bool>(property("FirmwareMissing"));
0109     }
0110 
0111     Q_PROPERTY(QString FirmwareVersion READ firmwareVersion)
0112     inline QString firmwareVersion() const
0113     {
0114         return qvariant_cast<QString>(property("FirmwareVersion"));
0115     }
0116 
0117     Q_PROPERTY(QString Interface READ interface)
0118     inline QString interface() const
0119     {
0120         return qvariant_cast<QString>(property("Interface"));
0121     }
0122 
0123     Q_PROPERTY(uint Ip4Address READ ip4Address)
0124     inline uint ip4Address() const
0125     {
0126         return qvariant_cast<uint>(property("Ip4Address"));
0127     }
0128 
0129     Q_PROPERTY(QDBusObjectPath Ip4Config READ ip4Config)
0130     inline QDBusObjectPath ip4Config() const
0131     {
0132         return qvariant_cast<QDBusObjectPath>(property("Ip4Config"));
0133     }
0134 
0135     Q_PROPERTY(QDBusObjectPath Ip6Config READ ip6Config)
0136     inline QDBusObjectPath ip6Config() const
0137     {
0138         return qvariant_cast<QDBusObjectPath>(property("Ip6Config"));
0139     }
0140 
0141     Q_PROPERTY(QString IpInterface READ ipInterface)
0142     inline QString ipInterface() const
0143     {
0144         return qvariant_cast<QString>(property("IpInterface"));
0145     }
0146 
0147     Q_PROPERTY(uint InterfaceFlags READ interfaceFlags)
0148     inline uint interfaceFlags() const
0149     {
0150         return qvariant_cast<uint>(property("InterfaceFlags"));
0151     }
0152 
0153     Q_PROPERTY(NMVariantMapList LldpNeighbors READ lldpNeighbors)
0154     inline NMVariantMapList lldpNeighbors() const
0155     {
0156         return qvariant_cast<NMVariantMapList>(property("LldpNeighbors"));
0157     }
0158 
0159     Q_PROPERTY(bool Managed READ managed WRITE setManaged)
0160     inline bool managed() const
0161     {
0162         return qvariant_cast<bool>(property("Managed"));
0163     }
0164     inline void setManaged(bool value)
0165     {
0166         setProperty("Managed", QVariant::fromValue(value));
0167     }
0168 
0169     Q_PROPERTY(uint Metered READ metered)
0170     inline uint metered() const
0171     {
0172         return qvariant_cast<uint>(property("Metered"));
0173     }
0174 
0175     Q_PROPERTY(uint Mtu READ mtu)
0176     inline uint mtu() const
0177     {
0178         return qvariant_cast<uint>(property("Mtu"));
0179     }
0180 
0181     Q_PROPERTY(bool NmPluginMissing READ nmPluginMissing)
0182     inline bool nmPluginMissing() const
0183     {
0184         return qvariant_cast<bool>(property("NmPluginMissing"));
0185     }
0186 
0187     Q_PROPERTY(QString PhysicalPortId READ physicalPortId)
0188     inline QString physicalPortId() const
0189     {
0190         return qvariant_cast<QString>(property("PhysicalPortId"));
0191     }
0192 
0193     Q_PROPERTY(bool Real READ real)
0194     inline bool real() const
0195     {
0196         return qvariant_cast<bool>(property("Real"));
0197     }
0198 
0199     Q_PROPERTY(uint State READ state)
0200     inline uint state() const
0201     {
0202         return qvariant_cast<uint>(property("State"));
0203     }
0204 
0205     Q_PROPERTY(DeviceDBusStateReason StateReason READ stateReason)
0206     inline DeviceDBusStateReason stateReason() const
0207     {
0208         return qvariant_cast<DeviceDBusStateReason>(property("StateReason"));
0209     }
0210 
0211     Q_PROPERTY(QString Udi READ udi)
0212     inline QString udi() const
0213     {
0214         return qvariant_cast<QString>(property("Udi"));
0215     }
0216 
0217 public Q_SLOTS: // METHODS
0218     inline QDBusPendingReply<> Delete()
0219     {
0220         QList<QVariant> argumentList;
0221         return asyncCallWithArgumentList(QStringLiteral("Delete"), argumentList);
0222     }
0223 
0224     inline QDBusPendingReply<> Disconnect()
0225     {
0226         QList<QVariant> argumentList;
0227         return asyncCallWithArgumentList(QStringLiteral("Disconnect"), argumentList);
0228     }
0229 
0230     inline QDBusPendingReply<NMVariantMapMap, qulonglong> GetAppliedConnection(uint flags)
0231     {
0232         QList<QVariant> argumentList;
0233         argumentList << QVariant::fromValue(flags);
0234         return asyncCallWithArgumentList(QStringLiteral("GetAppliedConnection"), argumentList);
0235     }
0236 
0237     inline QDBusPendingReply<> Reapply(NMVariantMapMap connection, qulonglong version_id, uint flags)
0238     {
0239         QList<QVariant> argumentList;
0240         argumentList << QVariant::fromValue(connection) << QVariant::fromValue(version_id) << QVariant::fromValue(flags);
0241         return asyncCallWithArgumentList(QStringLiteral("Reapply"), argumentList);
0242     }
0243 
0244 Q_SIGNALS: // SIGNALS
0245     void StateChanged(uint new_state, uint old_state, uint reason);
0246 };
0247 
0248 #endif