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"));
56 return qvariant_cast<QList<QDBusObjectPath>>(
property(
"Bearers"));
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"));
80 return qvariant_cast<QString>(
property(
"Device"));
84 inline QString deviceIdentifier()
const
86 return qvariant_cast<QString>(
property(
"DeviceIdentifier"));
92 return qvariant_cast<QStringList>(
property(
"Drivers"));
96 inline QString equipmentIdentifier()
const
98 return qvariant_cast<QString>(
property(
"EquipmentIdentifier"));
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"));
122 return qvariant_cast<QString>(
property(
"Model"));
128 return qvariant_cast<QStringList>(
property(
"OwnNumbers"));
134 return qvariant_cast<QString>(
property(
"Plugin"));
140 return qvariant_cast<ModemManager::PortList>(
property(
"Ports"));
144 inline uint powerState()
const
146 return qvariant_cast<uint>(
property(
"PowerState"));
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"));
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"));
188 return qvariant_cast<ModemManager::UIntList>(
property(
"SupportedBands"));
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"));
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"));
218 return qvariant_cast<ModemManager::UnlockRetriesMap>(
property(
"UnlockRetries"));
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)