NetworkManagerQt

settingsinterface.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 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 */
28class OrgFreedesktopNetworkManagerSettingsInterface : public QDBusAbstractInterface
29{
31public:
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
43public:
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>(property("CanModify"));
52 }
53
54 Q_PROPERTY(QList<QDBusObjectPath> Connections READ connections)
55 inline QList<QDBusObjectPath> connections() const
56 {
57 return qvariant_cast<QList<QDBusObjectPath>>(property("Connections"));
58 }
59
60 Q_PROPERTY(QString Hostname READ hostname)
61 inline QString hostname() const
62 {
63 return qvariant_cast<QString>(property("Hostname"));
64 }
65
66public Q_SLOTS: // METHODS
68 {
69 QList<QVariant> argumentList;
70 argumentList << QVariant::fromValue(connection);
71 return asyncCallWithArgumentList(QStringLiteral("AddConnection"), argumentList);
72 }
73
75 {
76 QList<QVariant> argumentList;
77 argumentList << QVariant::fromValue(connection);
78 return asyncCallWithArgumentList(QStringLiteral("AddConnectionUnsaved"), argumentList);
79 }
80
81 inline QDBusPendingReply<QDBusObjectPath> GetConnectionByUuid(const QString &uuid)
82 {
83 QList<QVariant> argumentList;
84 argumentList << QVariant::fromValue(uuid);
85 return asyncCallWithArgumentList(QStringLiteral("GetConnectionByUuid"), argumentList);
86 }
87
88 inline QDBusPendingReply<QList<QDBusObjectPath>> ListConnections()
89 {
90 QList<QVariant> argumentList;
91 return asyncCallWithArgumentList(QStringLiteral("ListConnections"), argumentList);
92 }
93
94 inline QDBusPendingReply<bool, QStringList> LoadConnections(const QStringList &filenames)
95 {
96 QList<QVariant> argumentList;
97 argumentList << QVariant::fromValue(filenames);
98 return asyncCallWithArgumentList(QStringLiteral("LoadConnections"), argumentList);
99 }
100
101 inline QDBusPendingReply<bool> ReloadConnections()
102 {
103 QList<QVariant> argumentList;
104 return asyncCallWithArgumentList(QStringLiteral("ReloadConnections"), argumentList);
105 }
106
107 inline QDBusPendingReply<> SaveHostname(const QString &hostname)
108 {
109 QList<QVariant> argumentList;
110 argumentList << QVariant::fromValue(hostname);
111 return asyncCallWithArgumentList(QStringLiteral("SaveHostname"), argumentList);
112 }
113
114Q_SIGNALS: // SIGNALS
115 void ConnectionRemoved(const QDBusObjectPath &connection);
116 void NewConnection(const QDBusObjectPath &connection);
117 void PropertiesChanged(const QVariantMap &properties);
118};
119
120#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 Sat Dec 21 2024 16:56:21 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.