7#ifndef MODEMMANAGERQT_FAKE_MODEM_MODEM_H
8#define MODEMMANAGERQT_FAKE_MODEM_MODEM_H
10#include "generictypes.h"
14#include <QDBusObjectPath>
19 Q_CLASSINFO(
"D-Bus Interface",
"org.kde.fakemodem.Modem")
24 Q_PROPERTY(uint AccessTechnologies READ accessTechnologies)
25 Q_PROPERTY(QList<QDBusObjectPath> Bearers READ bearers)
26 Q_PROPERTY(ModemManager::UIntList CurrentBands READ currentBands)
27 Q_PROPERTY(uint CurrentCapabilities READ currentCapabilities)
28 Q_PROPERTY(ModemManager::CurrentModesType CurrentModes READ currentModes)
30 Q_PROPERTY(QString DeviceIdentifier READ deviceIdentifier)
32 Q_PROPERTY(QString EquipmentIdentifier READ equipmentIdentifier)
33 Q_PROPERTY(QString Manufacturer READ manufacturer)
34 Q_PROPERTY(uint MaxActiveBearers READ maxActiveBearers)
37 Q_PROPERTY(QStringList OwnNumbers READ ownNumbers)
39 Q_PROPERTY(ModemManager::PortList Ports READ ports)
41 Q_PROPERTY(QString PrimaryPort READ primaryPort)
43 Q_PROPERTY(ModemManager::SignalQualityPair SignalQuality READ signalQuality)
46 Q_PROPERTY(uint StateFailedReason READ stateFailedReason)
47 Q_PROPERTY(ModemManager::UIntList SupportedBands READ supportedBands)
48 Q_PROPERTY(ModemManager::UIntList SupportedCapabilities READ supportedCapabilities)
49 Q_PROPERTY(uint SupportedIpFamilies READ supportedIpFamilies)
50 Q_PROPERTY(ModemManager::SupportedModesType SupportedModes READ supportedModes)
51 Q_PROPERTY(uint UnlockRequired READ unlockRequired)
52 Q_PROPERTY(ModemManager::UnlockRetriesMap UnlockRetries READ unlockRetries)
54 uint accessTechnologies() const;
55 QList<QDBusObjectPath> bearers() const;
56 ModemManager::UIntList currentBands() const;
57 uint currentCapabilities() const;
58 ModemManager::CurrentModesType currentModes() const;
59 QString device() const;
60 QString deviceIdentifier() const;
61 QStringList drivers() const;
62 QString equipmentIdentifier() const;
63 QString manufacturer() const;
64 uint maxActiveBearers() const;
65 uint maxBearers() const;
66 QString model() const;
67 QStringList ownNumbers() const;
68 QString plugin() const;
69 ModemManager::PortList ports() const;
70 uint powerState() const;
71 QString primaryPort() const;
72 QString revision() const;
73 ModemManager::SignalQualityPair signalQuality() const;
74 QDBusObjectPath sim() const;
76 uint stateFailedReason() const;
77 ModemManager::UIntList supportedBands() const;
78 ModemManager::UIntList supportedCapabilities() const;
79 uint supportedIpFamilies() const;
80 ModemManager::SupportedModesType supportedModes() const;
81 uint unlockRequired() const;
82 ModemManager::UnlockRetriesMap unlockRetries() const;
85 void addBearer(const QDBusObjectPath &bearer);
86 void removeBearer(const QDBusObjectPath &bearer);
87 QString modemPath() const;
88 void setEnableNotifications(
bool enable);
89 void setAccessTechnologies(uint technologies);
90 void setDevice(const QString &device);
91 void setDeviceIdentifier(const QString &deviceIdentifier);
92 void setDrivers(const QStringList &drivers);
93 void setEquipmentIdentifier(const QString &identifier);
94 void setManufacturer(const QString &manufacturer);
95 void setMaxActiveBearers(uint bearers);
96 void setMaxBearers(uint bearers);
97 void setModemPath(const QString &path);
98 void setModel(const QString &model);
99 void setOwnNumbers(const QStringList &numbers);
100 void setPlugin(const QString &plugin);
101 void setPorts(const ModemManager::PortList &ports);
102 void setPrimaryPort(const QString &port);
103 void setRevision(const QString &revision);
104 void setSignalQuality(const ModemManager::SignalQualityPair &signalQuality);
105 void setSim(const QDBusObjectPath &sim);
106 void setState(
int state);
107 void setStateFailedReason(uint reason);
108 void setSupportedBands(const ModemManager::UIntList &bands);
109 void setSupportedCapabilities(const ModemManager::UIntList &capabilities);
110 void setSupportedIpFamilies(uint families);
111 void setSupportedModes(const ModemManager::SupportedModesType &modes);
112 void setUnlockRequired(uint unlockRequired);
113 void setUnlockRetries(const ModemManager::UnlockRetriesMap &unlockRetries);
115 QVariantMap toMap() const;
118 Q_SCRIPTABLE QString Command(const QString &cmd, uint timeout);
119 Q_SCRIPTABLE QDBusObjectPath CreateBearer(const QVariantMap &properties);
120 Q_SCRIPTABLE
void DeleteBearer(const QDBusObjectPath &bearer);
121 Q_SCRIPTABLE
void Enable(
bool enable);
122 Q_SCRIPTABLE
void FactoryReset(const QString &code);
123 Q_SCRIPTABLE QList<QDBusObjectPath> ListBearers();
124 Q_SCRIPTABLE
void Reset();
125 Q_SCRIPTABLE
void SetCurrentBands(const QList<uint> &bands);
126 Q_SCRIPTABLE
void SetCurrentCapabilities(uint capabilities);
127 Q_SCRIPTABLE
void SetCurrentModes(ModemManager::CurrentModesType modes);
128 Q_SCRIPTABLE
void SetPowerState(uint state);
131 Q_SCRIPTABLE
void StateChanged(
int oldState,
int newState, uint reason);
134 uint m_accessTechnologies;
135 QList<QDBusObjectPath> m_bearers;
136 ModemManager::UIntList m_currentBands;
137 uint m_currentCapabilities;
138 ModemManager::CurrentModesType m_currentModes;
140 QString m_deviceIdentifier;
141 QStringList m_drivers;
142 bool m_enabledNotifications;
143 QString m_equipmentIdentifier;
144 QString m_manufacturer;
145 uint m_maxActiveBearers;
149 QStringList m_ownNumbers;
151 ModemManager::PortList m_ports;
153 QString m_primaryPort;
155 ModemManager::SignalQualityPair m_signalQuality;
156 QDBusObjectPath m_sim;
158 uint m_stateFailedReason;
159 ModemManager::UIntList m_supportedBands;
160 ModemManager::UIntList m_supportedCapabilities;
161 uint m_supportedIpFamilies;
162 ModemManager::SupportedModesType m_supportedModes;
163 uint m_unlockRequired;
164 ModemManager::UnlockRetriesMap m_unlockRetries;
QObject * parent() const const