NetworkManagerQt

connectioninterface.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 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 */
26class OrgFreedesktopNetworkManagerSettingsConnectionInterface : public QDBusAbstractInterface
27{
29public:
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
41public:
42 OrgFreedesktopNetworkManagerSettingsConnectionInterface(const QString &service,
43 const QString &path,
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>(property("Unsaved"));
53 }
54
55public Q_SLOTS: // METHODS
56 inline QDBusPendingReply<> ClearSecrets()
57 {
58 QList<QVariant> argumentList;
59 return asyncCallWithArgumentList(QStringLiteral("ClearSecrets"), argumentList);
60 }
61
62 inline QDBusPendingReply<> Delete()
63 {
64 QList<QVariant> argumentList;
65 return asyncCallWithArgumentList(QStringLiteral("Delete"), argumentList);
66 }
67
68 inline QDBusPendingReply<NMVariantMapMap> GetSecrets(const QString &setting_name)
69 {
70 QList<QVariant> argumentList;
71 argumentList << QVariant::fromValue(setting_name);
72 return asyncCallWithArgumentList(QStringLiteral("GetSecrets"), argumentList);
73 }
74
75 inline QDBusPendingReply<NMVariantMapMap> GetSettings()
76 {
77 QList<QVariant> argumentList;
78 return asyncCallWithArgumentList(QStringLiteral("GetSettings"), argumentList);
79 }
80
81 inline QDBusPendingReply<> Save()
82 {
83 QList<QVariant> argumentList;
84 return asyncCallWithArgumentList(QStringLiteral("Save"), argumentList);
85 }
86
87 inline QDBusPendingReply<> Update(NMVariantMapMap properties)
88 {
89 QList<QVariant> argumentList;
90 argumentList << QVariant::fromValue(properties);
91 return asyncCallWithArgumentList(QStringLiteral("Update"), argumentList);
92 }
93
94 inline QDBusPendingReply<> UpdateUnsaved(NMVariantMapMap properties)
95 {
96 QList<QVariant> argumentList;
97 argumentList << QVariant::fromValue(properties);
98 return asyncCallWithArgumentList(QStringLiteral("UpdateUnsaved"), argumentList);
99 }
100
101Q_SIGNALS: // SIGNALS
102 void PropertiesChanged(const QVariantMap &properties);
103 void Removed();
104 void Updated();
105};
106
107#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 Nov 29 2024 11:46:15 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.