ModemManager::ModemCdma

Search for usage in LXR

ModemManager::ModemCdma Class Reference

#include <modemcdma.h>

Public Types

typedef QList< PtrList
 
typedef QSharedPointer< ModemCdmaPtr
 

Signals

void activationStateChanged (MMModemCdmaActivationState state, MMCdmaActivationError error, const QVariantMap &status_changes)
 
void cdma1xRegistrationStateChanged (MMModemCdmaRegistrationState cdma1xRegistrationState)
 
void esnChanged (const QString &esn)
 
void evdoRegistrationStateChanged (MMModemCdmaRegistrationState evdoRegistrationState)
 
void meidChanged (const QString &meid)
 
void nidChanged (uint nid)
 
void sidChanged (uint sid)
 

Public Member Functions

 ModemCdma (const QString &path, QObject *parent=nullptr)
 
QDBusPendingReply< void > activate (const QString &carrierCode)
 
QDBusPendingReply< void > activateManual (const QVariantMap &properties)
 
MMModemCdmaActivationState activationState () const
 
MMModemCdmaRegistrationState cdma1xRegistrationState () const
 
QString esn () const
 
MMModemCdmaRegistrationState evdoRegistrationState () const
 
QString meid () const
 
uint nid () const
 
void setTimeout (int timeout)
 
uint sid () const
 
int timeout () const
 

Detailed Description

The ModemCdma class.

This class provides access to specific actions that may be performed in modems with CDMA capabilities.

Definition at line 32 of file modemcdma.h.

Member Typedef Documentation

◆ List

Definition at line 38 of file modemcdma.h.

◆ Ptr

Constructor & Destructor Documentation

◆ ModemCdma()

ModemCdma::ModemCdma ( const QString & path,
QObject * parent = nullptr )
explicit

Definition at line 38 of file modemcdma.cpp.

◆ ~ModemCdma()

ModemCdma::~ModemCdma ( )
override

Definition at line 65 of file modemcdma.cpp.

Member Function Documentation

◆ activate()

QDBusPendingReply< void > ModemCdma::activate ( const QString & carrierCode)

Provisions the modem for use with a given carrier using the modem's Over-The-Air (OTA) activation functionality, if any.

Some modems will reboot after this call is made.

Parameters
carrierCodename of carrier, or carrier-specific code

Definition at line 69 of file modemcdma.cpp.

◆ activateManual()

QDBusPendingReply< void > ModemCdma::activateManual ( const QVariantMap & properties)

Sets the modem provisioning data directly, without contacting the carrier over the air.

Some modems will reboot after this call is made.

Parameters
propertiesQVariantMap consisting of:

"spc": The Service Programming Code, given as a string of exactly 6 digit characters. Mandatory parameter. "sid": The System Identification Number, given as a 16-bit unsigned integer (signature "q"). Mandatory parameter. "mdn": The Mobile Directory Number, given as a string of maximum 15 characters. Mandatory parameter. "min": The Mobile Identification Number, given as a string of maximum 15 characters. Mandatory parameter. "mn-ha-key": The MN-HA key, given as a string of maximum 16 characters. "mn-aaa-key": The MN-AAA key, given as a string of maximum 16 characters. "prl": The Preferred Roaming List, given as an array of maximum 16384 bytes.

Definition at line 75 of file modemcdma.cpp.

◆ activationState()

MMModemCdmaActivationState ModemCdma::activationState ( ) const
Returns
a MMModemCdmaActivationState value specifying the state of the activation in the 3GPP2 network.

Definition at line 81 of file modemcdma.cpp.

◆ activationStateChanged

void ModemManager::ModemCdma::activationStateChanged ( MMModemCdmaActivationState state,
MMCdmaActivationError error,
const QVariantMap & status_changes )
signal

This signal is emitted when the activation info this network changes.

Parameters
statecurrent activation state, given as a MMModemCdmaActivationState.
errorcarrier-specific error code, given as a MMCdmaActivationError.
status_changesproperties that have changed as a result of this activation state change, including "mdn" and "min". The map may be empty if the changed properties are unknown.

◆ cdma1xRegistrationState()

MMModemCdmaRegistrationState ModemCdma::cdma1xRegistrationState ( ) const
Returns
a MMModemCdmaRegistrationState value specifying the CDMA 1x registration state.

Definition at line 111 of file modemcdma.cpp.

◆ esn()

QString ModemCdma::esn ( ) const
Returns
the modem's Electronic Serial Number (superseded by MEID but still used by older devices).

Definition at line 93 of file modemcdma.cpp.

◆ evdoRegistrationState()

MMModemCdmaRegistrationState ModemCdma::evdoRegistrationState ( ) const
Returns
a MMModemCdmaRegistrationState value specifying the EVDO registration state.

Definition at line 117 of file modemcdma.cpp.

◆ meid()

QString ModemCdma::meid ( ) const
Returns
the modem's Mobile Equipment Identifier.

Definition at line 87 of file modemcdma.cpp.

◆ nid()

uint ModemCdma::nid ( ) const
Returns
the Network Identifier of the serving CDMA 1x network, if known, and if the modem is registered with a CDMA 1x network.

Definition at line 105 of file modemcdma.cpp.

◆ setTimeout()

void ModemCdma::setTimeout ( int timeout)

Sets the timeout in milliseconds for all async method DBus calls.

-1 means the default DBus timeout (usually 25 seconds).

Definition at line 123 of file modemcdma.cpp.

◆ sid()

uint ModemCdma::sid ( ) const
Returns
the System Identifier of the serving CDMA 1x network, if known, and if the modem is registered with a CDMA 1x network.
See also
http://ifast.org or the mobile broadband provider database for mappings of SIDs to network providers.

Definition at line 99 of file modemcdma.cpp.

◆ timeout()

int ModemCdma::timeout ( ) const

Returns the current value of the DBus timeout in milliseconds.

-1 means the default DBus timeout (usually 25 seconds).

Definition at line 129 of file modemcdma.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
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.