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 SETTINGSINTERFACE_H |
12 | #define SETTINGSINTERFACE_H |
13 | |
14 | #include "generictypes.h" |
15 | |
16 | #include <QDBusAbstractInterface> |
17 | #include <QDBusObjectPath> |
18 | #include <QDBusPendingReply> |
19 | #include <QList> |
20 | #include <QObject> |
21 | #include <QString> |
22 | #include <QStringList> |
23 | #include <QVariant> |
24 | |
25 | /* |
26 | * Proxy class for interface org.freedesktop.NetworkManager.Settings |
27 | */ |
28 | class OrgFreedesktopNetworkManagerSettingsInterface : public QDBusAbstractInterface |
29 | { |
30 | Q_OBJECT |
31 | public: |
32 | static inline const char *staticInterfaceName() |
33 | #ifdef NMQT_STATIC |
34 | { |
35 | return "org.kde.fakenetwork.Settings" ; |
36 | } |
37 | #else |
38 | { |
39 | return "org.freedesktop.NetworkManager.Settings" ; |
40 | } |
41 | #endif |
42 | |
43 | public: |
44 | OrgFreedesktopNetworkManagerSettingsInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = nullptr); |
45 | |
46 | ~OrgFreedesktopNetworkManagerSettingsInterface() override; |
47 | |
48 | Q_PROPERTY(bool CanModify READ canModify) |
49 | inline bool canModify() const |
50 | { |
51 | return qvariant_cast<bool>(v: property(name: "CanModify" )); |
52 | } |
53 | |
54 | Q_PROPERTY(QList<QDBusObjectPath> Connections READ connections) |
55 | inline QList<QDBusObjectPath> connections() const |
56 | { |
57 | return qvariant_cast<QList<QDBusObjectPath>>(v: property(name: "Connections" )); |
58 | } |
59 | |
60 | Q_PROPERTY(QString Hostname READ hostname) |
61 | inline QString hostname() const |
62 | { |
63 | return qvariant_cast<QString>(v: property(name: "Hostname" )); |
64 | } |
65 | |
66 | public Q_SLOTS: // METHODS |
67 | inline QDBusPendingReply<QDBusObjectPath> AddConnection(NMVariantMapMap connection) |
68 | { |
69 | QList<QVariant> argumentList; |
70 | argumentList << QVariant::fromValue(value: connection); |
71 | return asyncCallWithArgumentList(QStringLiteral("AddConnection" ), args: argumentList); |
72 | } |
73 | |
74 | inline QDBusPendingReply<QDBusObjectPath> AddConnectionUnsaved(NMVariantMapMap connection) |
75 | { |
76 | QList<QVariant> argumentList; |
77 | argumentList << QVariant::fromValue(value: connection); |
78 | return asyncCallWithArgumentList(QStringLiteral("AddConnectionUnsaved" ), args: argumentList); |
79 | } |
80 | |
81 | inline QDBusPendingReply<QDBusObjectPath> GetConnectionByUuid(const QString &uuid) |
82 | { |
83 | QList<QVariant> argumentList; |
84 | argumentList << QVariant::fromValue(value: uuid); |
85 | return asyncCallWithArgumentList(QStringLiteral("GetConnectionByUuid" ), args: argumentList); |
86 | } |
87 | |
88 | inline QDBusPendingReply<QList<QDBusObjectPath>> ListConnections() |
89 | { |
90 | QList<QVariant> argumentList; |
91 | return asyncCallWithArgumentList(QStringLiteral("ListConnections" ), args: argumentList); |
92 | } |
93 | |
94 | inline QDBusPendingReply<bool, QStringList> LoadConnections(const QStringList &filenames) |
95 | { |
96 | QList<QVariant> argumentList; |
97 | argumentList << QVariant::fromValue(value: filenames); |
98 | return asyncCallWithArgumentList(QStringLiteral("LoadConnections" ), args: argumentList); |
99 | } |
100 | |
101 | inline QDBusPendingReply<bool> ReloadConnections() |
102 | { |
103 | QList<QVariant> argumentList; |
104 | return asyncCallWithArgumentList(QStringLiteral("ReloadConnections" ), args: argumentList); |
105 | } |
106 | |
107 | inline QDBusPendingReply<> SaveHostname(const QString &hostname) |
108 | { |
109 | QList<QVariant> argumentList; |
110 | argumentList << QVariant::fromValue(value: hostname); |
111 | return asyncCallWithArgumentList(QStringLiteral("SaveHostname" ), args: argumentList); |
112 | } |
113 | |
114 | Q_SIGNALS: // SIGNALS |
115 | void ConnectionRemoved(const QDBusObjectPath &connection); |
116 | void NewConnection(const QDBusObjectPath &connection); |
117 | void PropertiesChanged(const QVariantMap &properties); |
118 | }; |
119 | |
120 | #endif |
121 | |