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 CONNECTIONINTERFACE_H |
12 | #define CONNECTIONINTERFACE_H |
13 | |
14 | #include "generictypes.h" |
15 | |
16 | #include <QDBusAbstractInterface> |
17 | #include <QDBusPendingReply> |
18 | #include <QList> |
19 | #include <QObject> |
20 | #include <QString> |
21 | #include <QVariant> |
22 | |
23 | /* |
24 | * Proxy class for interface org.freedesktop.NetworkManager.Settings.Connection |
25 | */ |
26 | class OrgFreedesktopNetworkManagerSettingsConnectionInterface : public QDBusAbstractInterface |
27 | { |
28 | Q_OBJECT |
29 | public: |
30 | static inline const char *staticInterfaceName() |
31 | #ifdef NMQT_STATIC |
32 | { |
33 | return "org.kde.fakenetwork.Settings.Connection" ; |
34 | } |
35 | #else |
36 | { |
37 | return "org.freedesktop.NetworkManager.Settings.Connection" ; |
38 | } |
39 | #endif |
40 | |
41 | public: |
42 | OrgFreedesktopNetworkManagerSettingsConnectionInterface(const QString &service, |
43 | const QString &path, |
44 | const QDBusConnection &connection, |
45 | QObject *parent = nullptr); |
46 | |
47 | ~OrgFreedesktopNetworkManagerSettingsConnectionInterface() override; |
48 | |
49 | Q_PROPERTY(bool Unsaved READ unsaved) |
50 | inline bool unsaved() const |
51 | { |
52 | return qvariant_cast<bool>(v: property(name: "Unsaved" )); |
53 | } |
54 | |
55 | public Q_SLOTS: // METHODS |
56 | inline QDBusPendingReply<> ClearSecrets() |
57 | { |
58 | QList<QVariant> argumentList; |
59 | return asyncCallWithArgumentList(QStringLiteral("ClearSecrets" ), args: argumentList); |
60 | } |
61 | |
62 | inline QDBusPendingReply<> Delete() |
63 | { |
64 | QList<QVariant> argumentList; |
65 | return asyncCallWithArgumentList(QStringLiteral("Delete" ), args: argumentList); |
66 | } |
67 | |
68 | inline QDBusPendingReply<NMVariantMapMap> GetSecrets(const QString &setting_name) |
69 | { |
70 | QList<QVariant> argumentList; |
71 | argumentList << QVariant::fromValue(value: setting_name); |
72 | return asyncCallWithArgumentList(QStringLiteral("GetSecrets" ), args: argumentList); |
73 | } |
74 | |
75 | inline QDBusPendingReply<NMVariantMapMap> GetSettings() |
76 | { |
77 | QList<QVariant> argumentList; |
78 | return asyncCallWithArgumentList(QStringLiteral("GetSettings" ), args: argumentList); |
79 | } |
80 | |
81 | inline QDBusPendingReply<> Save() |
82 | { |
83 | QList<QVariant> argumentList; |
84 | return asyncCallWithArgumentList(QStringLiteral("Save" ), args: argumentList); |
85 | } |
86 | |
87 | inline QDBusPendingReply<> Update(NMVariantMapMap properties) |
88 | { |
89 | QList<QVariant> argumentList; |
90 | argumentList << QVariant::fromValue(value: properties); |
91 | return asyncCallWithArgumentList(QStringLiteral("Update" ), args: argumentList); |
92 | } |
93 | |
94 | inline QDBusPendingReply<> UpdateUnsaved(NMVariantMapMap properties) |
95 | { |
96 | QList<QVariant> argumentList; |
97 | argumentList << QVariant::fromValue(value: properties); |
98 | return asyncCallWithArgumentList(QStringLiteral("UpdateUnsaved" ), args: argumentList); |
99 | } |
100 | |
101 | Q_SIGNALS: // SIGNALS |
102 | void PropertiesChanged(const QVariantMap &properties); |
103 | void Removed(); |
104 | void Updated(); |
105 | }; |
106 | |
107 | #endif |
108 | |