ModemManager::Modem
#include <modem.h>
Public Types | |
typedef QFlags< MMModemAccessTechnology > | AccessTechnologies |
typedef QFlags< MMModemCapability > | Capabilities |
typedef QFlags< MMBearerIpFamily > | IpBearerFamilies |
typedef QList< Ptr > | List |
typedef QFlags< MMModemMode > | ModemModes |
typedef QSharedPointer< Modem > | Ptr |
Signals | |
void | accessTechnologiesChanged (QFlags< MMModemAccessTechnology > accessTechnologies) |
void | bearerAdded (const QString &bearer) |
void | bearerRemoved (const QString &bearer) |
void | bearersChanged () |
void | currentBandsChanged (const QList< MMModemBand > &supportedBands) |
void | currentCapabilitiesChanged (const QFlags< MMModemCapability > ¤tCapabilities) |
void | currentModesChanged (ModemManager::CurrentModesType currentModes) |
void | deviceChanged (const QString &device) |
void | deviceIdentifierChanged (const QString &deviceIdentifier) |
void | driversChanged (const QStringList &drivers) |
void | equipmentIdentifierChanged (const QString &equipmentIdentifier) |
void | manufacturerChanged (const QString &manufacturer) |
void | maxActiveBearersChanged (uint maxActiveBearers) |
void | maxBearersChanged (uint maxBearers) |
void | modelChanged (const QString &model) |
void | ownNumbersChanged (const QStringList &ownNumbers) |
void | pluginChanged (const QString &plugin) |
void | portsChanged (const ModemManager::PortList &ports) |
void | powerStateChanged (MMModemPowerState powerState) |
void | primaryPortChanged (const QString &primaryPort) |
void | revisionChanged (const QString &revision) |
void | signalQualityChanged (ModemManager::SignalQualityPair signalQuality) |
void | simPathChanged (const QString &oldPath, const QString &newPath) |
void | stateChanged (MMModemState oldState, MMModemState newState, MMModemStateChangeReason reason) |
void | stateFailedReasonChanged (MMModemStateFailedReason stateFailedReason) |
void | supportedBandsChanged (const QList< MMModemBand > &supportedBands) |
void | supportedCapabilitiesChanged (const QList< MMModemCapability > &supportedCapabilities) |
void | supportedIpFamiliesChanged (QFlags< MMBearerIpFamily > supportedIpFamilies) |
void | supportedModesChanged (ModemManager::SupportedModesType supportedModes) |
void | unlockRequiredChanged (MMModemLock unlockRequired) |
void | unlockRetriesChanged (const ModemManager::UnlockRetriesMap &unlockRetries) |
Detailed Description
Member Typedef Documentation
◆ AccessTechnologies
QFlags< MMModemAccessTechnology > ModemManager::Modem::AccessTechnologies |
◆ Capabilities
QFlags< MMModemCapability > ModemManager::Modem::Capabilities |
◆ IpBearerFamilies
QFlags< MMBearerIpFamily > ModemManager::Modem::IpBearerFamilies |
◆ List
◆ ModemModes
QFlags< MMModemMode > ModemManager::Modem::ModemModes |
◆ Ptr
Constructor & Destructor Documentation
◆ Modem()
◆ ~Modem()
Member Function Documentation
◆ accessTechnologies()
ModemManager::Modem::AccessTechnologies Modem::accessTechnologies | ( | ) | const |
- Returns
- QFlags of MMModemAccessTechnology values, specifying the current network access technologies used by the device to communicate with the network.
If the device's access technology cannot be determined, MM_MODEM_ACCESS_TECHNOLOGY_UNKNOWN will be reported.
◆ command()
QDBusPendingReply< QString > Modem::command | ( | const QString & | cmd, |
uint | timeout ) |
◆ createBearer()
QDBusPendingReply< QDBusObjectPath > Modem::createBearer | ( | const ModemManager::BearerProperties & | bearerProperties | ) |
◆ currentBands()
QList< MMModemBand > Modem::currentBands | ( | ) | const |
- Returns
- List of MMModemBand values, specifying the radio frequency and technology bands the device is currently using when connecting to a network.
It must be a subset of supportedBands()
◆ currentCapabilities()
ModemManager::Modem::Capabilities Modem::currentCapabilities | ( | ) | const |
◆ currentModes()
ModemManager::CurrentModesType Modem::currentModes | ( | ) | const |
- Returns
- A pair of MMModemMode values, where the first one is a bitmask specifying the access technologies (eg 2G/3G/4G) the device is currently allowed to use when connecting to a network, and the second one is the preferred mode of those specified as allowed.
The pair must be one of those specified in supportedModes()
◆ deleteBearer()
QDBusPendingReply< void > Modem::deleteBearer | ( | const QString & | bearer | ) |
◆ device()
QString Modem::device | ( | ) | const |
◆ deviceIdentifier()
QString Modem::deviceIdentifier | ( | ) | const |
- Returns
- A best-effort device identifier based on various device information like model name, firmware revision, USB/PCI/PCMCIA IDs, and other properties.
This ID is not guaranteed to be unique and may be shared between identical devices with the same firmware, but is intended to be "unique enough" for use as a casual device identifier for various user experience operations.
This is not the device's IMEI or ESN since those may not be available before unlocking the device via a PIN.
◆ drivers()
QStringList Modem::drivers | ( | ) | const |
◆ equipmentIdentifier()
QString Modem::equipmentIdentifier | ( | ) | const |
◆ factoryReset()
QDBusPendingReply< void > Modem::factoryReset | ( | const QString & | code | ) |
Clear the modem's configuration (including persistent configuration and state), and return the device to a factory-default state.
If not required by the modem, code
may be ignored.
This command may or may not power-cycle the device.
- Parameters
-
code Carrier-supplied code required to reset the modem.
◆ findBearer()
ModemManager::Bearer::Ptr Modem::findBearer | ( | const QString & | bearer | ) | const |
◆ isEnabled()
bool Modem::isEnabled | ( | ) | const |
- Returns
true
if the modem is fully functional,false
when in low power mode or disabled
- See also
- setEnabled()
◆ isValid()
◆ listBearers()
ModemManager::Bearer::List Modem::listBearers | ( | ) | const |
◆ manufacturer()
QString Modem::manufacturer | ( | ) | const |
◆ maxActiveBearers()
uint Modem::maxActiveBearers | ( | ) | const |
◆ maxBearers()
uint Modem::maxBearers | ( | ) | const |
- Returns
- The maximum number of defined packet data bearers the modem supports.
This is not the number of active/connected bearers the modem supports, but simply the number of bearers that may be defined at any given time. For example, POTS and CDMA2000-only devices support only one bearer, while GSM/UMTS devices typically support three or more, and any LTE-capable device (whether LTE-only, GSM/UMTS-capable, and/or CDMA2000-capable) also typically support three or more.
◆ model()
QString Modem::model | ( | ) | const |
◆ ownNumbers()
QStringList Modem::ownNumbers | ( | ) | const |
◆ plugin()
QString Modem::plugin | ( | ) | const |
◆ ports()
ModemManager::PortList Modem::ports | ( | ) | const |
◆ powerState()
MMModemPowerState Modem::powerState | ( | ) | const |
◆ primaryPort()
QString Modem::primaryPort | ( | ) | const |
◆ reset()
QDBusPendingReply< void > Modem::reset | ( | ) |
◆ revision()
QString Modem::revision | ( | ) | const |
◆ setCurrentBands()
QDBusPendingReply< void > Modem::setCurrentBands | ( | const QList< MMModemBand > & | bands | ) |
◆ setCurrentCapabilities()
QDBusPendingReply< void > Modem::setCurrentCapabilities | ( | Capabilities | caps | ) |
◆ setCurrentModes()
QDBusPendingReply< void > Modem::setCurrentModes | ( | const CurrentModesType & | mode | ) |
Set the access technologies (e.g.
2G/3G/4G preference) the device is currently allowed to use when connecting to a network.
The given combination should be supported by the modem, as specified in supportedModes()
- Parameters
-
mode
◆ setEnabled()
QDBusPendingReply< void > Modem::setEnabled | ( | bool | enable | ) |
Enable or disable the modem.
When enabled, the modem's radio is powered on and data sessions, voice calls, location services, and Short Message Service may be available.
When disabled, the modem enters low-power state and no network-related operations are available.
◆ setPowerState()
QDBusPendingReply< void > Modem::setPowerState | ( | MMModemPowerState | state | ) |
◆ setTimeout()
void Modem::setTimeout | ( | int | timeout | ) |
◆ signalQuality()
ModemManager::SignalQualityPair Modem::signalQuality | ( | ) | const |
◆ simPath()
QString Modem::simPath | ( | ) | const |
◆ state()
MMModemState Modem::state | ( | ) | const |
◆ stateFailedReason()
MMModemStateFailedReason Modem::stateFailedReason | ( | ) | const |
◆ supportedBands()
QList< MMModemBand > Modem::supportedBands | ( | ) | const |
◆ supportedCapabilities()
QList< MMModemCapability > Modem::supportedCapabilities | ( | ) | const |
◆ supportedIpFamilies()
ModemManager::Modem::IpBearerFamilies Modem::supportedIpFamilies | ( | ) | const |
◆ supportedModes()
ModemManager::SupportedModesType Modem::supportedModes | ( | ) | const |
- Returns
- This property exposes the supported mode combinations, given as an list of unsigned integer pairs, where: The first integer is a bitmask of MMModemMode values, specifying the allowed modes. The second integer is a single MMModemMode, which specifies the preferred access technology, among the ones defined in the allowed modes.
◆ timeout()
int Modem::timeout | ( | ) | const |
◆ uni()
◆ unlockRequired()
MMModemLock Modem::unlockRequired | ( | ) | const |
◆ unlockRetries()
ModemManager::UnlockRetriesMap Modem::unlockRetries | ( | ) | const |
- Returns
- A dictionary in which the keys are MMModemLock flags, and the values are integers giving the number of PIN tries remaining before the code becomes blocked (requiring a PUK) or permanently blocked. Dictionary entries exist only for the codes for which the modem is able to report retry counts.
The documentation for this class was generated from the following files:
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.