NetworkManagerQt

deviceinterface.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 DEVICEINTERFACE_H
12#define DEVICEINTERFACE_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 <QVariant>
23
24/*
25 * Proxy class for interface org.freedesktop.NetworkManager.Device
26 */
27class OrgFreedesktopNetworkManagerDeviceInterface : public QDBusAbstractInterface
28{
30public:
31 static inline const char *staticInterfaceName()
32#ifdef NMQT_STATIC
33 {
34 return "org.kde.fakenetwork.Device";
35 }
36#else
37 {
38 return "org.freedesktop.NetworkManager.Device";
39 }
40#endif
41
42public:
43 OrgFreedesktopNetworkManagerDeviceInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = nullptr);
44
45 ~OrgFreedesktopNetworkManagerDeviceInterface() override;
46
47 Q_PROPERTY(QDBusObjectPath ActiveConnection READ activeConnection)
48 inline QDBusObjectPath activeConnection() const
49 {
50 return qvariant_cast<QDBusObjectPath>(property("ActiveConnection"));
51 }
52
53 Q_PROPERTY(bool Autoconnect READ autoconnect WRITE setAutoconnect)
54 inline bool autoconnect() const
55 {
56 return qvariant_cast<bool>(property("Autoconnect"));
57 }
58 inline void setAutoconnect(bool value)
59 {
60 setProperty("Autoconnect", QVariant::fromValue(value));
61 }
62
63 Q_PROPERTY(QList<QDBusObjectPath> AvailableConnections READ availableConnections)
64 inline QList<QDBusObjectPath> availableConnections() const
65 {
66 return qvariant_cast<QList<QDBusObjectPath>>(property("AvailableConnections"));
67 }
68
69 Q_PROPERTY(uint Capabilities READ capabilities)
70 inline uint capabilities() const
71 {
72 return qvariant_cast<uint>(property("Capabilities"));
73 }
74
75 Q_PROPERTY(uint DeviceType READ deviceType)
76 inline uint deviceType() const
77 {
78 return qvariant_cast<uint>(property("DeviceType"));
79 }
80
81 Q_PROPERTY(QDBusObjectPath Dhcp4Config READ dhcp4Config)
82 inline QDBusObjectPath dhcp4Config() const
83 {
84 return qvariant_cast<QDBusObjectPath>(property("Dhcp4Config"));
85 }
86
87 Q_PROPERTY(QDBusObjectPath Dhcp6Config READ dhcp6Config)
88 inline QDBusObjectPath dhcp6Config() const
89 {
90 return qvariant_cast<QDBusObjectPath>(property("Dhcp6Config"));
91 }
92
93 Q_PROPERTY(QString Driver READ driver)
94 inline QString driver() const
95 {
96 return qvariant_cast<QString>(property("Driver"));
97 }
98
99 Q_PROPERTY(QString DriverVersion READ driverVersion)
100 inline QString driverVersion() const
101 {
102 return qvariant_cast<QString>(property("DriverVersion"));
103 }
104
105 Q_PROPERTY(bool FirmwareMissing READ firmwareMissing)
106 inline bool firmwareMissing() const
107 {
108 return qvariant_cast<bool>(property("FirmwareMissing"));
109 }
110
111 Q_PROPERTY(QString FirmwareVersion READ firmwareVersion)
112 inline QString firmwareVersion() const
113 {
114 return qvariant_cast<QString>(property("FirmwareVersion"));
115 }
116
117 Q_PROPERTY(QString Interface READ interface)
118 inline QString interface() const
119 {
120 return qvariant_cast<QString>(property("Interface"));
121 }
122
123 Q_PROPERTY(uint Ip4Address READ ip4Address)
124 inline uint ip4Address() const
125 {
126 return qvariant_cast<uint>(property("Ip4Address"));
127 }
128
129 Q_PROPERTY(QDBusObjectPath Ip4Config READ ip4Config)
130 inline QDBusObjectPath ip4Config() const
131 {
132 return qvariant_cast<QDBusObjectPath>(property("Ip4Config"));
133 }
134
135 Q_PROPERTY(QDBusObjectPath Ip6Config READ ip6Config)
136 inline QDBusObjectPath ip6Config() const
137 {
138 return qvariant_cast<QDBusObjectPath>(property("Ip6Config"));
139 }
140
141 Q_PROPERTY(QString IpInterface READ ipInterface)
142 inline QString ipInterface() const
143 {
144 return qvariant_cast<QString>(property("IpInterface"));
145 }
146
147 Q_PROPERTY(uint InterfaceFlags READ interfaceFlags)
148 inline uint interfaceFlags() const
149 {
150 return qvariant_cast<uint>(property("InterfaceFlags"));
151 }
152
153 Q_PROPERTY(NMVariantMapList LldpNeighbors READ lldpNeighbors)
154 inline NMVariantMapList lldpNeighbors() const
155 {
156 return qvariant_cast<NMVariantMapList>(property("LldpNeighbors"));
157 }
158
159 Q_PROPERTY(bool Managed READ managed WRITE setManaged)
160 inline bool managed() const
161 {
162 return qvariant_cast<bool>(property("Managed"));
163 }
164 inline void setManaged(bool value)
165 {
166 setProperty("Managed", QVariant::fromValue(value));
167 }
168
169 Q_PROPERTY(uint Metered READ metered)
170 inline uint metered() const
171 {
172 return qvariant_cast<uint>(property("Metered"));
173 }
174
175 Q_PROPERTY(uint Mtu READ mtu)
176 inline uint mtu() const
177 {
178 return qvariant_cast<uint>(property("Mtu"));
179 }
180
181 Q_PROPERTY(bool NmPluginMissing READ nmPluginMissing)
182 inline bool nmPluginMissing() const
183 {
184 return qvariant_cast<bool>(property("NmPluginMissing"));
185 }
186
187 Q_PROPERTY(QString PhysicalPortId READ physicalPortId)
188 inline QString physicalPortId() const
189 {
190 return qvariant_cast<QString>(property("PhysicalPortId"));
191 }
192
193 Q_PROPERTY(bool Real READ real)
194 inline bool real() const
195 {
196 return qvariant_cast<bool>(property("Real"));
197 }
198
199 Q_PROPERTY(uint State READ state)
200 inline uint state() const
201 {
202 return qvariant_cast<uint>(property("State"));
203 }
204
205 Q_PROPERTY(DeviceDBusStateReason StateReason READ stateReason)
206 inline DeviceDBusStateReason stateReason() const
207 {
208 return qvariant_cast<DeviceDBusStateReason>(property("StateReason"));
209 }
210
211 Q_PROPERTY(QString Udi READ udi)
212 inline QString udi() const
213 {
214 return qvariant_cast<QString>(property("Udi"));
215 }
216
217public Q_SLOTS: // METHODS
218 inline QDBusPendingReply<> Delete()
219 {
220 QList<QVariant> argumentList;
221 return asyncCallWithArgumentList(QStringLiteral("Delete"), argumentList);
222 }
223
224 inline QDBusPendingReply<> Disconnect()
225 {
226 QList<QVariant> argumentList;
227 return asyncCallWithArgumentList(QStringLiteral("Disconnect"), argumentList);
228 }
229
230 inline QDBusPendingReply<NMVariantMapMap, qulonglong> GetAppliedConnection(uint flags)
231 {
232 QList<QVariant> argumentList;
233 argumentList << QVariant::fromValue(flags);
234 return asyncCallWithArgumentList(QStringLiteral("GetAppliedConnection"), argumentList);
235 }
236
237 inline QDBusPendingReply<> Reapply(NMVariantMapMap connection, qulonglong version_id, uint flags)
238 {
239 QList<QVariant> argumentList;
240 argumentList << QVariant::fromValue(connection) << QVariant::fromValue(version_id) << QVariant::fromValue(flags);
241 return asyncCallWithArgumentList(QStringLiteral("Reapply"), argumentList);
242 }
243
244Q_SIGNALS: // SIGNALS
245 void StateChanged(uint new_state, uint old_state, uint reason);
246};
247
248#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
bool setProperty(const char *name, QVariant &&value)
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.