File indexing completed on 2024-06-23 10:42:27

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 NETWORKMANAGERINTERFACE_H
0012 #define NETWORKMANAGERINTERFACE_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
0026  */
0027 class OrgFreedesktopNetworkManagerInterface : public QDBusAbstractInterface
0028 {
0029     Q_OBJECT
0030 public:
0031     static inline const char *staticInterfaceName()
0032 #ifdef NMQT_STATIC
0033     {
0034         return "org.kde.fakenetwork";
0035     }
0036 #else
0037     {
0038         return "org.freedesktop.NetworkManager";
0039     }
0040 #endif
0041 
0042 public:
0043     OrgFreedesktopNetworkManagerInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = nullptr);
0044 
0045     ~OrgFreedesktopNetworkManagerInterface() override;
0046 
0047     Q_PROPERTY(QDBusObjectPath ActivatingConnection READ activatingConnection)
0048     inline QDBusObjectPath activatingConnection() const
0049     {
0050         return qvariant_cast<QDBusObjectPath>(property("ActivatingConnection"));
0051     }
0052 
0053     Q_PROPERTY(QList<QDBusObjectPath> ActiveConnections READ activeConnections)
0054     inline QList<QDBusObjectPath> activeConnections() const
0055     {
0056         return qvariant_cast<QList<QDBusObjectPath>>(property("ActiveConnections"));
0057     }
0058 
0059     Q_PROPERTY(QList<QDBusObjectPath> AllDevices READ allDevices)
0060     inline QList<QDBusObjectPath> allDevices() const
0061     {
0062         return qvariant_cast<QList<QDBusObjectPath>>(property("AllDevices"));
0063     }
0064 
0065     Q_PROPERTY(UIntList Capabilities READ capabilities)
0066     inline UIntList capabilities() const
0067     {
0068         return qvariant_cast<UIntList>(property("Capabilities"));
0069     }
0070 
0071     Q_PROPERTY(uint Connectivity READ connectivity)
0072     inline uint connectivity() const
0073     {
0074         return qvariant_cast<uint>(property("Connectivity"));
0075     }
0076 
0077     Q_PROPERTY(QList<QDBusObjectPath> Devices READ devices)
0078     inline QList<QDBusObjectPath> devices() const
0079     {
0080         return qvariant_cast<QList<QDBusObjectPath>>(property("Devices"));
0081     }
0082 
0083     Q_PROPERTY(QVariantMap GlobalDnsConfiguration READ globalDnsConfiguration WRITE setGlobalDnsConfiguration)
0084     inline QVariantMap globalDnsConfiguration() const
0085     {
0086         return qvariant_cast<QVariantMap>(property("GlobalDnsConfiguration"));
0087     }
0088     inline void setGlobalDnsConfiguration(QVariantMap value)
0089     {
0090         setProperty("GlobalDnsConfiguration", QVariant::fromValue(value));
0091     }
0092 
0093     Q_PROPERTY(uint Metered READ metered)
0094     inline uint metered() const
0095     {
0096         return qvariant_cast<uint>(property("Metered"));
0097     }
0098 
0099     Q_PROPERTY(bool NetworkingEnabled READ networkingEnabled)
0100     inline bool networkingEnabled() const
0101     {
0102         return qvariant_cast<bool>(property("NetworkingEnabled"));
0103     }
0104 
0105     Q_PROPERTY(QDBusObjectPath PrimaryConnection READ primaryConnection)
0106     inline QDBusObjectPath primaryConnection() const
0107     {
0108         return qvariant_cast<QDBusObjectPath>(property("PrimaryConnection"));
0109     }
0110 
0111     Q_PROPERTY(QString PrimaryConnectionType READ primaryConnectionType)
0112     inline QString primaryConnectionType() const
0113     {
0114         return qvariant_cast<QString>(property("PrimaryConnectionType"));
0115     }
0116 
0117     Q_PROPERTY(bool Startup READ startup)
0118     inline bool startup() const
0119     {
0120         return qvariant_cast<bool>(property("Startup"));
0121     }
0122 
0123     Q_PROPERTY(uint State READ state)
0124     inline uint state() const
0125     {
0126         return qvariant_cast<uint>(property("State"));
0127     }
0128 
0129     Q_PROPERTY(QString Version READ version)
0130     inline QString version() const
0131     {
0132         return qvariant_cast<QString>(property("Version"));
0133     }
0134 
0135     Q_PROPERTY(bool WimaxEnabled READ wimaxEnabled WRITE setWimaxEnabled)
0136     inline bool wimaxEnabled() const
0137     {
0138         return qvariant_cast<bool>(property("WimaxEnabled"));
0139     }
0140     inline void setWimaxEnabled(bool value)
0141     {
0142         setProperty("WimaxEnabled", QVariant::fromValue(value));
0143     }
0144 
0145     Q_PROPERTY(bool WimaxHardwareEnabled READ wimaxHardwareEnabled)
0146     inline bool wimaxHardwareEnabled() const
0147     {
0148         return qvariant_cast<bool>(property("WimaxHardwareEnabled"));
0149     }
0150 
0151     Q_PROPERTY(bool WirelessEnabled READ wirelessEnabled WRITE setWirelessEnabled)
0152     inline bool wirelessEnabled() const
0153     {
0154         return qvariant_cast<bool>(property("WirelessEnabled"));
0155     }
0156     inline void setWirelessEnabled(bool value)
0157     {
0158         setProperty("WirelessEnabled", QVariant::fromValue(value));
0159     }
0160 
0161     Q_PROPERTY(bool WirelessHardwareEnabled READ wirelessHardwareEnabled)
0162     inline bool wirelessHardwareEnabled() const
0163     {
0164         return qvariant_cast<bool>(property("WirelessHardwareEnabled"));
0165     }
0166 
0167     Q_PROPERTY(bool WwanEnabled READ wwanEnabled WRITE setWwanEnabled)
0168     inline bool wwanEnabled() const
0169     {
0170         return qvariant_cast<bool>(property("WwanEnabled"));
0171     }
0172     inline void setWwanEnabled(bool value)
0173     {
0174         setProperty("WwanEnabled", QVariant::fromValue(value));
0175     }
0176 
0177     Q_PROPERTY(bool WwanHardwareEnabled READ wwanHardwareEnabled)
0178     inline bool wwanHardwareEnabled() const
0179     {
0180         return qvariant_cast<bool>(property("WwanHardwareEnabled"));
0181     }
0182 
0183 public Q_SLOTS: // METHODS
0184     inline QDBusPendingReply<QDBusObjectPath>
0185     ActivateConnection(const QDBusObjectPath &connection, const QDBusObjectPath &device, const QDBusObjectPath &specific_object)
0186     {
0187         QList<QVariant> argumentList;
0188         argumentList << QVariant::fromValue(connection) << QVariant::fromValue(device) << QVariant::fromValue(specific_object);
0189         return asyncCallWithArgumentList(QStringLiteral("ActivateConnection"), argumentList);
0190     }
0191 
0192     inline QDBusPendingReply<QDBusObjectPath, QDBusObjectPath>
0193     AddAndActivateConnection(NMVariantMapMap connection, const QDBusObjectPath &device, const QDBusObjectPath &specific_object)
0194     {
0195         QList<QVariant> argumentList;
0196         argumentList << QVariant::fromValue(connection) << QVariant::fromValue(device) << QVariant::fromValue(specific_object);
0197         return asyncCallWithArgumentList(QStringLiteral("AddAndActivateConnection"), argumentList);
0198     }
0199 
0200     inline QDBusPendingReply<QDBusObjectPath, QDBusObjectPath, QVariantMap>
0201     AddAndActivateConnection2(NMVariantMapMap connection, const QDBusObjectPath &device, const QDBusObjectPath &specific_object, const QVariantMap &options)
0202     {
0203         QList<QVariant> argumentList;
0204         argumentList << QVariant::fromValue(connection) << QVariant::fromValue(device) << QVariant::fromValue(specific_object) << QVariant::fromValue(options);
0205         return asyncCallWithArgumentList(QStringLiteral("AddAndActivateConnection2"), argumentList);
0206     }
0207 
0208     inline QDBusPendingReply<uint> CheckConnectivity()
0209     {
0210         QList<QVariant> argumentList;
0211         return asyncCallWithArgumentList(QStringLiteral("CheckConnectivity"), argumentList);
0212     }
0213 
0214     inline QDBusPendingReply<QDBusObjectPath> CheckpointCreate(const QList<QDBusObjectPath> &devices, uint rollback_timeout, uint flags)
0215     {
0216         QList<QVariant> argumentList;
0217         argumentList << QVariant::fromValue(devices) << QVariant::fromValue(rollback_timeout) << QVariant::fromValue(flags);
0218         return asyncCallWithArgumentList(QStringLiteral("CheckpointCreate"), argumentList);
0219     }
0220 
0221     inline QDBusPendingReply<> CheckpointDestroy(const QDBusObjectPath &checkpoint)
0222     {
0223         QList<QVariant> argumentList;
0224         argumentList << QVariant::fromValue(checkpoint);
0225         return asyncCallWithArgumentList(QStringLiteral("CheckpointDestroy"), argumentList);
0226     }
0227 
0228     inline QDBusPendingReply<> DeactivateConnection(const QDBusObjectPath &active_connection)
0229     {
0230         QList<QVariant> argumentList;
0231         argumentList << QVariant::fromValue(active_connection);
0232         return asyncCallWithArgumentList(QStringLiteral("DeactivateConnection"), argumentList);
0233     }
0234 
0235     inline QDBusPendingReply<> Enable(bool enable)
0236     {
0237         QList<QVariant> argumentList;
0238         argumentList << QVariant::fromValue(enable);
0239         return asyncCallWithArgumentList(QStringLiteral("Enable"), argumentList);
0240     }
0241 
0242     inline QDBusPendingReply<QList<QDBusObjectPath>> GetAllDevices()
0243     {
0244         QList<QVariant> argumentList;
0245         return asyncCallWithArgumentList(QStringLiteral("GetAllDevices"), argumentList);
0246     }
0247 
0248     inline QDBusPendingReply<QDBusObjectPath> GetDeviceByIpIface(const QString &iface)
0249     {
0250         QList<QVariant> argumentList;
0251         argumentList << QVariant::fromValue(iface);
0252         return asyncCallWithArgumentList(QStringLiteral("GetDeviceByIpIface"), argumentList);
0253     }
0254 
0255     inline QDBusPendingReply<QList<QDBusObjectPath>> GetDevices()
0256     {
0257         QList<QVariant> argumentList;
0258         return asyncCallWithArgumentList(QStringLiteral("GetDevices"), argumentList);
0259     }
0260 
0261     inline QDBusPendingReply<QString, QString> GetLogging()
0262     {
0263         QList<QVariant> argumentList;
0264         return asyncCallWithArgumentList(QStringLiteral("GetLogging"), argumentList);
0265     }
0266 
0267     inline QDBusPendingReply<NMStringMap> GetPermissions()
0268     {
0269         QList<QVariant> argumentList;
0270         return asyncCallWithArgumentList(QStringLiteral("GetPermissions"), argumentList);
0271     }
0272 
0273     inline QDBusPendingReply<> Reload(uint flags)
0274     {
0275         QList<QVariant> argumentList;
0276         argumentList << QVariant::fromValue(flags);
0277         return asyncCallWithArgumentList(QStringLiteral("Reload"), argumentList);
0278     }
0279 
0280     inline QDBusPendingReply<> SetLogging(const QString &level, const QString &domains)
0281     {
0282         QList<QVariant> argumentList;
0283         argumentList << QVariant::fromValue(level) << QVariant::fromValue(domains);
0284         return asyncCallWithArgumentList(QStringLiteral("SetLogging"), argumentList);
0285     }
0286 
0287     inline QDBusPendingReply<> Sleep(bool sleep)
0288     {
0289         QList<QVariant> argumentList;
0290         argumentList << QVariant::fromValue(sleep);
0291         return asyncCallWithArgumentList(QStringLiteral("Sleep"), argumentList);
0292     }
0293 
0294     inline QDBusPendingReply<uint> state()
0295     {
0296         QList<QVariant> argumentList;
0297         return asyncCallWithArgumentList(QStringLiteral("state"), argumentList);
0298     }
0299 
0300 Q_SIGNALS: // SIGNALS
0301     void CheckPermissions();
0302     void DeviceAdded(const QDBusObjectPath &device_path);
0303     void DeviceRemoved(const QDBusObjectPath &device_path);
0304     void PropertiesChanged(const QVariantMap &properties);
0305     void StateChanged(uint state);
0306 };
0307 
0308 #endif