12#ifndef MODEMMANAGERQT_MODEMINTERFACE_H
13#define MODEMMANAGERQT_MODEMINTERFACE_H
15#include "generictypes.h"
16#include "generictypes_p.h"
17#include <QDBusAbstractInterface>
18#include <QDBusPendingReply>
32 static inline const char *staticInterfaceName()
35 return "org.kde.fakemodem.Modem";
39 return "org.freedesktop.ModemManager1.Modem";
45 ~OrgFreedesktopModemManager1ModemInterface()
override;
47 Q_PROPERTY(uint AccessTechnologies READ accessTechnologies)
48 inline uint accessTechnologies()
const
50 return qvariant_cast<uint>(
property(
"AccessTechnologies"));
53 Q_PROPERTY(QList<QDBusObjectPath> Bearers READ bearers)
54 inline QList<QDBusObjectPath> bearers()
const
56 return qvariant_cast<QList<QDBusObjectPath>>(
property(
"Bearers"));
59 Q_PROPERTY(ModemManager::UIntList CurrentBands READ currentBands)
60 inline ModemManager::UIntList currentBands()
const
62 return qvariant_cast<ModemManager::UIntList>(
property(
"CurrentBands"));
65 Q_PROPERTY(uint CurrentCapabilities READ currentCapabilities)
66 inline uint currentCapabilities()
const
68 return qvariant_cast<uint>(
property(
"CurrentCapabilities"));
71 Q_PROPERTY(ModemManager::CurrentModesType CurrentModes READ currentModes)
72 inline ModemManager::CurrentModesType currentModes()
const
74 return qvariant_cast<ModemManager::CurrentModesType>(
property(
"CurrentModes"));
78 inline QString device()
const
80 return qvariant_cast<QString>(
property(
"Device"));
83 Q_PROPERTY(QString DeviceIdentifier READ deviceIdentifier)
84 inline QString deviceIdentifier()
const
86 return qvariant_cast<QString>(
property(
"DeviceIdentifier"));
90 inline QStringList drivers()
const
92 return qvariant_cast<QStringList>(
property(
"Drivers"));
95 Q_PROPERTY(QString EquipmentIdentifier READ equipmentIdentifier)
96 inline QString equipmentIdentifier()
const
98 return qvariant_cast<QString>(
property(
"EquipmentIdentifier"));
101 Q_PROPERTY(QString Manufacturer READ manufacturer)
102 inline QString manufacturer()
const
104 return qvariant_cast<QString>(
property(
"Manufacturer"));
107 Q_PROPERTY(uint MaxActiveBearers READ maxActiveBearers)
108 inline uint maxActiveBearers()
const
110 return qvariant_cast<uint>(
property(
"MaxActiveBearers"));
114 inline uint maxBearers()
const
116 return qvariant_cast<uint>(
property(
"MaxBearers"));
120 inline QString model()
const
122 return qvariant_cast<QString>(
property(
"Model"));
125 Q_PROPERTY(QStringList OwnNumbers READ ownNumbers)
126 inline QStringList ownNumbers()
const
128 return qvariant_cast<QStringList>(
property(
"OwnNumbers"));
132 inline QString plugin()
const
134 return qvariant_cast<QString>(
property(
"Plugin"));
137 Q_PROPERTY(ModemManager::PortList Ports READ ports)
138 inline ModemManager::PortList ports()
const
140 return qvariant_cast<ModemManager::PortList>(
property(
"Ports"));
144 inline uint powerState()
const
146 return qvariant_cast<uint>(
property(
"PowerState"));
149 Q_PROPERTY(QString PrimaryPort READ primaryPort)
150 inline QString primaryPort()
const
152 return qvariant_cast<QString>(
property(
"PrimaryPort"));
156 inline QString revision()
const
158 return qvariant_cast<QString>(
property(
"Revision"));
161 Q_PROPERTY(ModemManager::SignalQualityPair SignalQuality READ signalQuality)
162 inline ModemManager::SignalQualityPair signalQuality()
const
164 return qvariant_cast<ModemManager::SignalQualityPair>(
property(
"SignalQuality"));
168 inline QDBusObjectPath sim()
const
170 return qvariant_cast<QDBusObjectPath>(
property(
"Sim"));
174 inline int state()
const
176 return qvariant_cast<int>(
property(
"State"));
179 Q_PROPERTY(uint StateFailedReason READ stateFailedReason)
180 inline uint stateFailedReason()
const
182 return qvariant_cast<uint>(
property(
"StateFailedReason"));
185 Q_PROPERTY(ModemManager::UIntList SupportedBands READ supportedBands)
186 inline ModemManager::UIntList supportedBands()
const
188 return qvariant_cast<ModemManager::UIntList>(
property(
"SupportedBands"));
191 Q_PROPERTY(ModemManager::UIntList SupportedCapabilities READ supportedCapabilities)
192 inline ModemManager::UIntList supportedCapabilities()
const
194 return qvariant_cast<ModemManager::UIntList>(
property(
"SupportedCapabilities"));
197 Q_PROPERTY(uint SupportedIpFamilies READ supportedIpFamilies)
198 inline uint supportedIpFamilies()
const
200 return qvariant_cast<uint>(
property(
"SupportedIpFamilies"));
203 Q_PROPERTY(ModemManager::SupportedModesType SupportedModes READ supportedModes)
204 inline ModemManager::SupportedModesType supportedModes()
const
206 return qvariant_cast<ModemManager::SupportedModesType>(
property(
"SupportedModes"));
209 Q_PROPERTY(uint UnlockRequired READ unlockRequired)
210 inline uint unlockRequired()
const
212 return qvariant_cast<uint>(
property(
"UnlockRequired"));
215 Q_PROPERTY(ModemManager::UnlockRetriesMap UnlockRetries READ unlockRetries)
216 inline ModemManager::UnlockRetriesMap unlockRetries()
const
218 return qvariant_cast<ModemManager::UnlockRetriesMap>(
property(
"UnlockRetries"));
222 inline QDBusPendingReply<QString> Command(
const QString &cmd, uint
timeout)
224 QList<QVariant> argumentList;
229 inline QDBusPendingReply<QDBusObjectPath> CreateBearer(
const QVariantMap &properties)
231 QList<QVariant> argumentList;
236 inline QDBusPendingReply<> DeleteBearer(
const QDBusObjectPath &bearer)
238 QList<QVariant> argumentList;
243 inline QDBusPendingReply<> Enable(
bool enable)
245 QList<QVariant> argumentList;
250 inline QDBusPendingReply<> FactoryReset(
const QString &code)
252 QList<QVariant> argumentList;
257 inline QDBusPendingReply<QList<QDBusObjectPath>> ListBearers()
259 QList<QVariant> argumentList;
263 inline QDBusPendingReply<> Reset()
265 QList<QVariant> argumentList;
269 inline QDBusPendingReply<> SetCurrentBands(
const QList<uint> &bands)
271 QList<QVariant> argumentList;
276 inline QDBusPendingReply<> SetCurrentCapabilities(uint capabilities)
278 QList<QVariant> argumentList;
283 inline QDBusPendingReply<> SetCurrentModes(ModemManager::CurrentModesType modes)
285 QList<QVariant> argumentList;
290 inline QDBusPendingReply<> SetPowerState(uint state)
292 QList<QVariant> argumentList;
298 void StateChanged(
int oldState,
int newState, uint reason);
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
QObject * parent() const const
QVariant property(const char *name) const const
QVariant fromValue(T &&value)