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)
27 Q_PROPERTY(uint CurrentCapabilities READ currentCapabilities)
34 Q_PROPERTY(uint MaxActiveBearers READ maxActiveBearers)
46 Q_PROPERTY(uint StateFailedReason READ stateFailedReason)
49 Q_PROPERTY(uint SupportedIpFamilies READ supportedIpFamilies)
51 Q_PROPERTY(uint UnlockRequired READ unlockRequired)
54 uint accessTechnologies() const;
57 uint currentCapabilities() const;
60 QString deviceIdentifier() const;
62 QString equipmentIdentifier() const;
64 uint maxActiveBearers() const;
65 uint maxBearers() const;
70 uint powerState() const;
76 uint stateFailedReason() const;
79 uint supportedIpFamilies() const;
81 uint unlockRequired() const;
88 void setEnableNotifications(
bool enable);
89 void setAccessTechnologies(uint technologies);
90 void setDevice(const
QString &device);
91 void setDeviceIdentifier(const
QString &deviceIdentifier);
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);
100 void setPlugin(const
QString &plugin);
102 void setPrimaryPort(const
QString &port);
103 void setRevision(const
QString &revision);
104 void setSignalQuality(const
ModemManager::SignalQualityPair &signalQuality);
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;
119 Q_SCRIPTABLE
QDBusObjectPath CreateBearer(const QVariantMap &properties);
121 Q_SCRIPTABLE
void Enable(
bool enable);
122 Q_SCRIPTABLE
void FactoryReset(const
QString &code);
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;
137 uint m_currentCapabilities;
142 bool m_enabledNotifications;
145 uint m_maxActiveBearers;
158 uint m_stateFailedReason;
161 uint m_supportedIpFamilies;
163 uint m_unlockRequired;
This namespace allows to query the underlying system to discover the available modem interfaces respo...
QObject * parent() const const