File indexing completed on 2024-07-14 07:32:05

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 CONNECTIONINTERFACE_H
0012 #define CONNECTIONINTERFACE_H
0013 
0014 #include "generictypes.h"
0015 
0016 #include <QDBusAbstractInterface>
0017 #include <QDBusPendingReply>
0018 #include <QList>
0019 #include <QObject>
0020 #include <QString>
0021 #include <QVariant>
0022 
0023 /*
0024  * Proxy class for interface org.freedesktop.NetworkManager.Settings.Connection
0025  */
0026 class OrgFreedesktopNetworkManagerSettingsConnectionInterface : public QDBusAbstractInterface
0027 {
0028     Q_OBJECT
0029 public:
0030     static inline const char *staticInterfaceName()
0031 #ifdef NMQT_STATIC
0032     {
0033         return "org.kde.fakenetwork.Settings.Connection";
0034     }
0035 #else
0036     {
0037         return "org.freedesktop.NetworkManager.Settings.Connection";
0038     }
0039 #endif
0040 
0041 public:
0042     OrgFreedesktopNetworkManagerSettingsConnectionInterface(const QString &service,
0043                                                             const QString &path,
0044                                                             const QDBusConnection &connection,
0045                                                             QObject *parent = nullptr);
0046 
0047     ~OrgFreedesktopNetworkManagerSettingsConnectionInterface() override;
0048 
0049     Q_PROPERTY(bool Unsaved READ unsaved)
0050     inline bool unsaved() const
0051     {
0052         return qvariant_cast<bool>(property("Unsaved"));
0053     }
0054 
0055 public Q_SLOTS: // METHODS
0056     inline QDBusPendingReply<> ClearSecrets()
0057     {
0058         QList<QVariant> argumentList;
0059         return asyncCallWithArgumentList(QStringLiteral("ClearSecrets"), argumentList);
0060     }
0061 
0062     inline QDBusPendingReply<> Delete()
0063     {
0064         QList<QVariant> argumentList;
0065         return asyncCallWithArgumentList(QStringLiteral("Delete"), argumentList);
0066     }
0067 
0068     inline QDBusPendingReply<NMVariantMapMap> GetSecrets(const QString &setting_name)
0069     {
0070         QList<QVariant> argumentList;
0071         argumentList << QVariant::fromValue(setting_name);
0072         return asyncCallWithArgumentList(QStringLiteral("GetSecrets"), argumentList);
0073     }
0074 
0075     inline QDBusPendingReply<NMVariantMapMap> GetSettings()
0076     {
0077         QList<QVariant> argumentList;
0078         return asyncCallWithArgumentList(QStringLiteral("GetSettings"), argumentList);
0079     }
0080 
0081     inline QDBusPendingReply<> Save()
0082     {
0083         QList<QVariant> argumentList;
0084         return asyncCallWithArgumentList(QStringLiteral("Save"), argumentList);
0085     }
0086 
0087     inline QDBusPendingReply<> Update(NMVariantMapMap properties)
0088     {
0089         QList<QVariant> argumentList;
0090         argumentList << QVariant::fromValue(properties);
0091         return asyncCallWithArgumentList(QStringLiteral("Update"), argumentList);
0092     }
0093 
0094     inline QDBusPendingReply<> UpdateUnsaved(NMVariantMapMap properties)
0095     {
0096         QList<QVariant> argumentList;
0097         argumentList << QVariant::fromValue(properties);
0098         return asyncCallWithArgumentList(QStringLiteral("UpdateUnsaved"), argumentList);
0099     }
0100 
0101 Q_SIGNALS: // SIGNALS
0102     void PropertiesChanged(const QVariantMap &properties);
0103     void Removed();
0104     void Updated();
0105 };
0106 
0107 #endif