File indexing completed on 2024-03-24 04:02:46
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 SETTINGSINTERFACE_H 0012 #define SETTINGSINTERFACE_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 <QStringList> 0023 #include <QVariant> 0024 0025 /* 0026 * Proxy class for interface org.freedesktop.NetworkManager.Settings 0027 */ 0028 class OrgFreedesktopNetworkManagerSettingsInterface : public QDBusAbstractInterface 0029 { 0030 Q_OBJECT 0031 public: 0032 static inline const char *staticInterfaceName() 0033 #ifdef NMQT_STATIC 0034 { 0035 return "org.kde.fakenetwork.Settings"; 0036 } 0037 #else 0038 { 0039 return "org.freedesktop.NetworkManager.Settings"; 0040 } 0041 #endif 0042 0043 public: 0044 OrgFreedesktopNetworkManagerSettingsInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = nullptr); 0045 0046 ~OrgFreedesktopNetworkManagerSettingsInterface() override; 0047 0048 Q_PROPERTY(bool CanModify READ canModify) 0049 inline bool canModify() const 0050 { 0051 return qvariant_cast<bool>(property("CanModify")); 0052 } 0053 0054 Q_PROPERTY(QList<QDBusObjectPath> Connections READ connections) 0055 inline QList<QDBusObjectPath> connections() const 0056 { 0057 return qvariant_cast<QList<QDBusObjectPath>>(property("Connections")); 0058 } 0059 0060 Q_PROPERTY(QString Hostname READ hostname) 0061 inline QString hostname() const 0062 { 0063 return qvariant_cast<QString>(property("Hostname")); 0064 } 0065 0066 public Q_SLOTS: // METHODS 0067 inline QDBusPendingReply<QDBusObjectPath> AddConnection(NMVariantMapMap connection) 0068 { 0069 QList<QVariant> argumentList; 0070 argumentList << QVariant::fromValue(connection); 0071 return asyncCallWithArgumentList(QStringLiteral("AddConnection"), argumentList); 0072 } 0073 0074 inline QDBusPendingReply<QDBusObjectPath> AddConnectionUnsaved(NMVariantMapMap connection) 0075 { 0076 QList<QVariant> argumentList; 0077 argumentList << QVariant::fromValue(connection); 0078 return asyncCallWithArgumentList(QStringLiteral("AddConnectionUnsaved"), argumentList); 0079 } 0080 0081 inline QDBusPendingReply<QDBusObjectPath> GetConnectionByUuid(const QString &uuid) 0082 { 0083 QList<QVariant> argumentList; 0084 argumentList << QVariant::fromValue(uuid); 0085 return asyncCallWithArgumentList(QStringLiteral("GetConnectionByUuid"), argumentList); 0086 } 0087 0088 inline QDBusPendingReply<QList<QDBusObjectPath>> ListConnections() 0089 { 0090 QList<QVariant> argumentList; 0091 return asyncCallWithArgumentList(QStringLiteral("ListConnections"), argumentList); 0092 } 0093 0094 inline QDBusPendingReply<bool, QStringList> LoadConnections(const QStringList &filenames) 0095 { 0096 QList<QVariant> argumentList; 0097 argumentList << QVariant::fromValue(filenames); 0098 return asyncCallWithArgumentList(QStringLiteral("LoadConnections"), argumentList); 0099 } 0100 0101 inline QDBusPendingReply<bool> ReloadConnections() 0102 { 0103 QList<QVariant> argumentList; 0104 return asyncCallWithArgumentList(QStringLiteral("ReloadConnections"), argumentList); 0105 } 0106 0107 inline QDBusPendingReply<> SaveHostname(const QString &hostname) 0108 { 0109 QList<QVariant> argumentList; 0110 argumentList << QVariant::fromValue(hostname); 0111 return asyncCallWithArgumentList(QStringLiteral("SaveHostname"), argumentList); 0112 } 0113 0114 Q_SIGNALS: // SIGNALS 0115 void ConnectionRemoved(const QDBusObjectPath &connection); 0116 void NewConnection(const QDBusObjectPath &connection); 0117 void PropertiesChanged(const QVariantMap &properties); 0118 }; 0119 0120 #endif