ModemManagerQt

modeminterface.h
1/*
2 * This file was generated by qdbusxml2cpp version 0.7
3 * Command line was: qdbusxml2cpp -N -m -i generictypes.h -p modeminterface \
4 * /home/jgrulich/development/projects/libmm-qt/dbus/introspection/org.freedesktop.ModemManager1.Modem.xml
5 *
6 * qdbusxml2cpp is Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
7 *
8 * This is an auto-generated file.
9 * Do not edit! All changes made to it will be lost.
10 */
11
12#ifndef MODEMMANAGERQT_MODEMINTERFACE_H
13#define MODEMMANAGERQT_MODEMINTERFACE_H
14
15#include "generictypes.h"
16#include "generictypes_p.h"
17#include <QDBusAbstractInterface>
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.ModemManager1.Modem
27 */
28class OrgFreedesktopModemManager1ModemInterface : public QDBusAbstractInterface
29{
31public:
32 static inline const char *staticInterfaceName()
33#ifdef MMQT_STATIC
34 {
35 return "org.kde.fakemodem.Modem";
36 }
37#else
38 {
39 return "org.freedesktop.ModemManager1.Modem";
40 }
41#endif
42public:
43 OrgFreedesktopModemManager1ModemInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = nullptr);
44
45 ~OrgFreedesktopModemManager1ModemInterface() override;
46
47 Q_PROPERTY(uint AccessTechnologies READ accessTechnologies)
48 inline uint accessTechnologies() const
49 {
50 return qvariant_cast<uint>(property("AccessTechnologies"));
51 }
52
53 Q_PROPERTY(QList<QDBusObjectPath> Bearers READ bearers)
54 inline QList<QDBusObjectPath> bearers() const
55 {
56 return qvariant_cast<QList<QDBusObjectPath>>(property("Bearers"));
57 }
58
59 Q_PROPERTY(ModemManager::UIntList CurrentBands READ currentBands)
60 inline ModemManager::UIntList currentBands() const
61 {
62 return qvariant_cast<ModemManager::UIntList>(property("CurrentBands"));
63 }
64
65 Q_PROPERTY(uint CurrentCapabilities READ currentCapabilities)
66 inline uint currentCapabilities() const
67 {
68 return qvariant_cast<uint>(property("CurrentCapabilities"));
69 }
70
71 Q_PROPERTY(ModemManager::CurrentModesType CurrentModes READ currentModes)
72 inline ModemManager::CurrentModesType currentModes() const
73 {
74 return qvariant_cast<ModemManager::CurrentModesType>(property("CurrentModes"));
75 }
76
77 Q_PROPERTY(QString Device READ device)
78 inline QString device() const
79 {
80 return qvariant_cast<QString>(property("Device"));
81 }
82
83 Q_PROPERTY(QString DeviceIdentifier READ deviceIdentifier)
84 inline QString deviceIdentifier() const
85 {
86 return qvariant_cast<QString>(property("DeviceIdentifier"));
87 }
88
89 Q_PROPERTY(QStringList Drivers READ drivers)
90 inline QStringList drivers() const
91 {
92 return qvariant_cast<QStringList>(property("Drivers"));
93 }
94
95 Q_PROPERTY(QString EquipmentIdentifier READ equipmentIdentifier)
96 inline QString equipmentIdentifier() const
97 {
98 return qvariant_cast<QString>(property("EquipmentIdentifier"));
99 }
100
101 Q_PROPERTY(QString Manufacturer READ manufacturer)
102 inline QString manufacturer() const
103 {
104 return qvariant_cast<QString>(property("Manufacturer"));
105 }
106
107 Q_PROPERTY(uint MaxActiveBearers READ maxActiveBearers)
108 inline uint maxActiveBearers() const
109 {
110 return qvariant_cast<uint>(property("MaxActiveBearers"));
111 }
112
113 Q_PROPERTY(uint MaxBearers READ maxBearers)
114 inline uint maxBearers() const
115 {
116 return qvariant_cast<uint>(property("MaxBearers"));
117 }
118
119 Q_PROPERTY(QString Model READ model)
120 inline QString model() const
121 {
122 return qvariant_cast<QString>(property("Model"));
123 }
124
125 Q_PROPERTY(QStringList OwnNumbers READ ownNumbers)
126 inline QStringList ownNumbers() const
127 {
128 return qvariant_cast<QStringList>(property("OwnNumbers"));
129 }
130
131 Q_PROPERTY(QString Plugin READ plugin)
132 inline QString plugin() const
133 {
134 return qvariant_cast<QString>(property("Plugin"));
135 }
136
137 Q_PROPERTY(ModemManager::PortList Ports READ ports)
138 inline ModemManager::PortList ports() const
139 {
140 return qvariant_cast<ModemManager::PortList>(property("Ports"));
141 }
142
143 Q_PROPERTY(uint PowerState READ powerState)
144 inline uint powerState() const
145 {
146 return qvariant_cast<uint>(property("PowerState"));
147 }
148
149 Q_PROPERTY(QString PrimaryPort READ primaryPort)
150 inline QString primaryPort() const
151 {
152 return qvariant_cast<QString>(property("PrimaryPort"));
153 }
154
155 Q_PROPERTY(QString Revision READ revision)
156 inline QString revision() const
157 {
158 return qvariant_cast<QString>(property("Revision"));
159 }
160
161 Q_PROPERTY(ModemManager::SignalQualityPair SignalQuality READ signalQuality)
162 inline ModemManager::SignalQualityPair signalQuality() const
163 {
164 return qvariant_cast<ModemManager::SignalQualityPair>(property("SignalQuality"));
165 }
166
167 Q_PROPERTY(QDBusObjectPath Sim READ sim)
168 inline QDBusObjectPath sim() const
169 {
170 return qvariant_cast<QDBusObjectPath>(property("Sim"));
171 }
172
173 Q_PROPERTY(int State READ state)
174 inline int state() const
175 {
176 return qvariant_cast<int>(property("State"));
177 }
178
179 Q_PROPERTY(uint StateFailedReason READ stateFailedReason)
180 inline uint stateFailedReason() const
181 {
182 return qvariant_cast<uint>(property("StateFailedReason"));
183 }
184
185 Q_PROPERTY(ModemManager::UIntList SupportedBands READ supportedBands)
186 inline ModemManager::UIntList supportedBands() const
187 {
188 return qvariant_cast<ModemManager::UIntList>(property("SupportedBands"));
189 }
190
191 Q_PROPERTY(ModemManager::UIntList SupportedCapabilities READ supportedCapabilities)
192 inline ModemManager::UIntList supportedCapabilities() const
193 {
194 return qvariant_cast<ModemManager::UIntList>(property("SupportedCapabilities"));
195 }
196
197 Q_PROPERTY(uint SupportedIpFamilies READ supportedIpFamilies)
198 inline uint supportedIpFamilies() const
199 {
200 return qvariant_cast<uint>(property("SupportedIpFamilies"));
201 }
202
203 Q_PROPERTY(ModemManager::SupportedModesType SupportedModes READ supportedModes)
204 inline ModemManager::SupportedModesType supportedModes() const
205 {
206 return qvariant_cast<ModemManager::SupportedModesType>(property("SupportedModes"));
207 }
208
209 Q_PROPERTY(uint UnlockRequired READ unlockRequired)
210 inline uint unlockRequired() const
211 {
212 return qvariant_cast<uint>(property("UnlockRequired"));
213 }
214
215 Q_PROPERTY(ModemManager::UnlockRetriesMap UnlockRetries READ unlockRetries)
216 inline ModemManager::UnlockRetriesMap unlockRetries() const
217 {
218 return qvariant_cast<ModemManager::UnlockRetriesMap>(property("UnlockRetries"));
219 }
220
221public Q_SLOTS: // METHODS
222 inline QDBusPendingReply<QString> Command(const QString &cmd, uint timeout)
223 {
224 QList<QVariant> argumentList;
225 argumentList << QVariant::fromValue(cmd) << QVariant::fromValue(timeout);
226 return asyncCallWithArgumentList(QLatin1String("Command"), argumentList);
227 }
228
229 inline QDBusPendingReply<QDBusObjectPath> CreateBearer(const QVariantMap &properties)
230 {
231 QList<QVariant> argumentList;
232 argumentList << QVariant::fromValue(properties);
233 return asyncCallWithArgumentList(QLatin1String("CreateBearer"), argumentList);
234 }
235
236 inline QDBusPendingReply<> DeleteBearer(const QDBusObjectPath &bearer)
237 {
238 QList<QVariant> argumentList;
239 argumentList << QVariant::fromValue(bearer);
240 return asyncCallWithArgumentList(QLatin1String("DeleteBearer"), argumentList);
241 }
242
243 inline QDBusPendingReply<> Enable(bool enable)
244 {
245 QList<QVariant> argumentList;
246 argumentList << QVariant::fromValue(enable);
247 return asyncCallWithArgumentList(QLatin1String("Enable"), argumentList);
248 }
249
250 inline QDBusPendingReply<> FactoryReset(const QString &code)
251 {
252 QList<QVariant> argumentList;
253 argumentList << QVariant::fromValue(code);
254 return asyncCallWithArgumentList(QLatin1String("FactoryReset"), argumentList);
255 }
256
257 inline QDBusPendingReply<QList<QDBusObjectPath>> ListBearers()
258 {
259 QList<QVariant> argumentList;
260 return asyncCallWithArgumentList(QLatin1String("ListBearers"), argumentList);
261 }
262
263 inline QDBusPendingReply<> Reset()
264 {
265 QList<QVariant> argumentList;
266 return asyncCallWithArgumentList(QLatin1String("Reset"), argumentList);
267 }
268
269 inline QDBusPendingReply<> SetCurrentBands(const QList<uint> &bands)
270 {
271 QList<QVariant> argumentList;
272 argumentList << QVariant::fromValue(bands);
273 return asyncCallWithArgumentList(QLatin1String("SetCurrentBands"), argumentList);
274 }
275
276 inline QDBusPendingReply<> SetCurrentCapabilities(uint capabilities)
277 {
278 QList<QVariant> argumentList;
279 argumentList << QVariant::fromValue(capabilities);
280 return asyncCallWithArgumentList(QLatin1String("SetCurrentCapabilities"), argumentList);
281 }
282
283 inline QDBusPendingReply<> SetCurrentModes(ModemManager::CurrentModesType modes)
284 {
285 QList<QVariant> argumentList;
286 argumentList << QVariant::fromValue(modes);
287 return asyncCallWithArgumentList(QLatin1String("SetCurrentModes"), argumentList);
288 }
289
290 inline QDBusPendingReply<> SetPowerState(uint state)
291 {
292 QList<QVariant> argumentList;
293 argumentList << QVariant::fromValue(state);
294 return asyncCallWithArgumentList(QLatin1String("SetPowerState"), argumentList);
295 }
296
297Q_SIGNALS: // SIGNALS
298 void StateChanged(int oldState, int newState, uint reason);
299};
300
301#endif
QDBusPendingCall asyncCallWithArgumentList(const QString &method, const QList< QVariant > &args)
QDBusConnection connection() const const
QString path() const const
QString service() const const
int timeout() 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:59:51 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.