NetworkManagerQt

vpnplugininterface.h
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 */
27class OrgFreedesktopNetworkManagerVPNPluginInterface : public QDBusAbstractInterface
28{
30public:
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
42public:
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>(property("State"));
51 }
52
53public Q_SLOTS: // METHODS
55 {
56 QList<QVariant> argumentList;
57 argumentList << QVariant::fromValue(connection);
58 return asyncCallWithArgumentList(QStringLiteral("Connect"), argumentList);
59 }
60
61 inline QDBusPendingReply<> ConnectInteractive(NMVariantMapMap connection, QVariant details)
62 {
63 QList<QVariant> argumentList;
64 argumentList << QVariant::fromValue(connection) << QVariant::fromValue(details);
65 return asyncCallWithArgumentList(QStringLiteral("ConnectInteractive"), argumentList);
66 }
67
68 inline QDBusPendingReply<> Disconnect()
69 {
70 QList<QVariant> argumentList;
71 return asyncCallWithArgumentList(QStringLiteral("Disconnect"), argumentList);
72 }
73
74 inline QDBusPendingReply<QString> NeedSecrets(NMVariantMapMap settings)
75 {
76 QList<QVariant> argumentList;
77 argumentList << QVariant::fromValue(settings);
78 return asyncCallWithArgumentList(QStringLiteral("NeedSecrets"), argumentList);
79 }
80
82 {
83 QList<QVariant> argumentList;
84 argumentList << QVariant::fromValue(connection);
85 return asyncCallWithArgumentList(QStringLiteral("NewSecrets"), argumentList);
86 }
87
88 inline QDBusPendingReply<> SetConfig(QVariant config)
89 {
90 QList<QVariant> argumentList;
91 argumentList << QVariant::fromValue(config);
92 return asyncCallWithArgumentList(QStringLiteral("SetConfig"), argumentList);
93 }
94
95 inline QDBusPendingReply<> SetFailure(const QString &reason)
96 {
97 QList<QVariant> argumentList;
98 argumentList << QVariant::fromValue(reason);
99 return asyncCallWithArgumentList(QStringLiteral("SetFailure"), argumentList);
100 }
101
102 inline QDBusPendingReply<> SetIp4Config(QVariant config)
103 {
104 QList<QVariant> argumentList;
105 argumentList << QVariant::fromValue(config);
106 return asyncCallWithArgumentList(QStringLiteral("SetIp4Config"), argumentList);
107 }
108
109 inline QDBusPendingReply<> SetIp6Config(QVariant config)
110 {
111 QList<QVariant> argumentList;
112 argumentList << QVariant::fromValue(config);
113 return asyncCallWithArgumentList(QStringLiteral("SetIp6Config"), argumentList);
114 }
115
116Q_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
QDBusPendingCall asyncCallWithArgumentList(const QString &method, const QList< QVariant > &args)
QDBusConnection connection() const const
QString path() const const
QString service() const const
Q_OBJECTQ_OBJECT
Q_PROPERTY(...)
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
QObject * parent() const const
QVariant property(const char *name) const const
QVariant fromValue(T &&value)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 27 2024 11:55:20 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.