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 VPNPLUGININTERFACE_H |
12 | #define VPNPLUGININTERFACE_H |
13 | |
14 | #include "generictypes.h" |
15 | |
16 | #include <QDBusAbstractInterface> |
17 | #include <QDBusPendingReply> |
18 | #include <QList> |
19 | #include <QObject> |
20 | #include <QString> |
21 | #include <QStringList> |
22 | #include <QVariant> |
23 | |
24 | /* |
25 | * Proxy class for interface org.freedesktop.NetworkManager.VPN.Plugin |
26 | */ |
27 | class OrgFreedesktopNetworkManagerVPNPluginInterface : public QDBusAbstractInterface |
28 | { |
29 | Q_OBJECT |
30 | public: |
31 | static inline const char *staticInterfaceName() |
32 | #ifdef NMQT_STATIC |
33 | { |
34 | return "org.kde.fakenetwork.Settings.VPN.Plugin" ; |
35 | } |
36 | #else |
37 | { |
38 | return "org.freedesktop.NetworkManager.VPN.Plugin" ; |
39 | } |
40 | #endif |
41 | |
42 | public: |
43 | OrgFreedesktopNetworkManagerVPNPluginInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = nullptr); |
44 | |
45 | ~OrgFreedesktopNetworkManagerVPNPluginInterface() override; |
46 | |
47 | Q_PROPERTY(uint State READ state) |
48 | inline uint state() const |
49 | { |
50 | return qvariant_cast<uint>(v: property(name: "State" )); |
51 | } |
52 | |
53 | public Q_SLOTS: // METHODS |
54 | inline QDBusPendingReply<> Connect(NMVariantMapMap connection) |
55 | { |
56 | QList<QVariant> argumentList; |
57 | argumentList << QVariant::fromValue(value: connection); |
58 | return asyncCallWithArgumentList(QStringLiteral("Connect" ), args: argumentList); |
59 | } |
60 | |
61 | inline QDBusPendingReply<> ConnectInteractive(NMVariantMapMap connection, QVariant details) |
62 | { |
63 | QList<QVariant> argumentList; |
64 | argumentList << QVariant::fromValue(value: connection) << QVariant::fromValue(value: details); |
65 | return asyncCallWithArgumentList(QStringLiteral("ConnectInteractive" ), args: argumentList); |
66 | } |
67 | |
68 | inline QDBusPendingReply<> Disconnect() |
69 | { |
70 | QList<QVariant> argumentList; |
71 | return asyncCallWithArgumentList(QStringLiteral("Disconnect" ), args: argumentList); |
72 | } |
73 | |
74 | inline QDBusPendingReply<QString> NeedSecrets(NMVariantMapMap settings) |
75 | { |
76 | QList<QVariant> argumentList; |
77 | argumentList << QVariant::fromValue(value: settings); |
78 | return asyncCallWithArgumentList(QStringLiteral("NeedSecrets" ), args: argumentList); |
79 | } |
80 | |
81 | inline QDBusPendingReply<> NewSecrets(NMVariantMapMap connection) |
82 | { |
83 | QList<QVariant> argumentList; |
84 | argumentList << QVariant::fromValue(value: connection); |
85 | return asyncCallWithArgumentList(QStringLiteral("NewSecrets" ), args: argumentList); |
86 | } |
87 | |
88 | inline QDBusPendingReply<> SetConfig(QVariant config) |
89 | { |
90 | QList<QVariant> argumentList; |
91 | argumentList << QVariant::fromValue(value: config); |
92 | return asyncCallWithArgumentList(QStringLiteral("SetConfig" ), args: argumentList); |
93 | } |
94 | |
95 | inline QDBusPendingReply<> SetFailure(const QString &reason) |
96 | { |
97 | QList<QVariant> argumentList; |
98 | argumentList << QVariant::fromValue(value: reason); |
99 | return asyncCallWithArgumentList(QStringLiteral("SetFailure" ), args: argumentList); |
100 | } |
101 | |
102 | inline QDBusPendingReply<> SetIp4Config(QVariant config) |
103 | { |
104 | QList<QVariant> argumentList; |
105 | argumentList << QVariant::fromValue(value: config); |
106 | return asyncCallWithArgumentList(QStringLiteral("SetIp4Config" ), args: argumentList); |
107 | } |
108 | |
109 | inline QDBusPendingReply<> SetIp6Config(QVariant config) |
110 | { |
111 | QList<QVariant> argumentList; |
112 | argumentList << QVariant::fromValue(value: config); |
113 | return asyncCallWithArgumentList(QStringLiteral("SetIp6Config" ), args: argumentList); |
114 | } |
115 | |
116 | Q_SIGNALS: // SIGNALS |
117 | void Config(QVariant config); |
118 | void Failure(uint reason); |
119 | void Ip4Config(QVariant ip4config); |
120 | void Ip6Config(QVariant ip6config); |
121 | void LoginBanner(const QString &banner); |
122 | void SecretsRequired(const QString &message, const QStringList &secrets); |
123 | void StateChanged(uint state); |
124 | }; |
125 | |
126 | #endif |
127 | |