ModemManager::Sim

Search for usage in LXR

ModemManager::Sim Class Reference

#include <sim.h>

Inheritance diagram for ModemManager::Sim:

Public Types

typedef QList< PtrList
 
typedef QSharedPointer< SimPtr
 
- Public Types inherited from QObject
typedef  QObjectList
 

Signals

void activeChanged (bool active)
 
void eidChanged (const QString &eid)
 
void emergencyNumbersChanged (const QStringList &emergencyNumbers)
 
void imsiChanged (const QString &imsi)
 
void operatorIdentifierChanged (const QString &identifier)
 
void operatorNameChanged (const QString &name)
 
void preferredNetworksChanged (const QVariantMap &preferredNetworks)
 
void simIdentifierChanged (const QString &identifier)
 

Public Member Functions

 Sim (const QString &path, QObject *parent=nullptr)
 
bool active () const
 
QDBusPendingReply changePin (const QString &oldPin, const QString &newPin)
 
QString eid () const
 
QStringList emergencyNumbers () const
 
QDBusPendingReply enablePin (const QString &pin, bool enabled)
 
QString imsi () const
 
QString operatorIdentifier () const
 
QString operatorName () const
 
QVariantMap preferredNetworks () const
 
QDBusPendingReply sendPin (const QString &pin)
 
QDBusPendingReply sendPuk (const QString &puk, const QString &pin)
 
QDBusPendingReply setPreferredNetworks (QVariantMap preferredNetworks)
 
void setTimeout (int timeout)
 
QString simIdentifier () const
 
int timeout () const
 
QString uni () const
 
- Public Member Functions inherited from QObject
 QObject (QObject *parent)
 
QBindable< QStringbindableObjectName ()
 
bool blockSignals (bool block)
 
const QObjectListchildren () const const
 
QMetaObject::Connection connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const const
 
void deleteLater ()
 
void destroyed (QObject *obj)
 
bool disconnect (const char *signal, const QObject *receiver, const char *method) const const
 
bool disconnect (const QObject *receiver, const char *method) const const
 
void dumpObjectInfo () const const
 
void dumpObjectTree () const const
 
QList< QByteArraydynamicPropertyNames () const const
 
virtual bool event (QEvent *e)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
findChild (const QString &name, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QString &name, Qt::FindChildOptions options) const const
 
QList< T > findChildren (Qt::FindChildOptions options) const const
 
bool inherits (const char *className) const const
 
void installEventFilter (QObject *filterObj)
 
bool isQuickItemType () const const
 
bool isWidgetType () const const
 
bool isWindowType () const const
 
void killTimer (int id)
 
virtual const QMetaObjectmetaObject () const const
 
void moveToThread (QThread *targetThread)
 
QString objectName () const const
 
void objectNameChanged (const QString &objectName)
 
QObjectparent () const const
 
QVariant property (const char *name) const const
 
 Q_CLASSINFO (Name, Value)
 
 Q_EMIT Q_EMIT
 
 Q_ENUM (...)
 
 Q_ENUM_NS (...)
 
 Q_ENUMS (...)
 
 Q_FLAG (...)
 
 Q_FLAG_NS (...)
 
 Q_FLAGS (...)
 
 Q_GADGET Q_GADGET
 
 Q_GADGET_EXPORT (EXPORT_MACRO)
 
 Q_INTERFACES (...)
 
 Q_INVOKABLE Q_INVOKABLE
 
 Q_MOC_INCLUDE Q_MOC_INCLUDE
 
 Q_NAMESPACE Q_NAMESPACE
 
 Q_NAMESPACE_EXPORT (EXPORT_MACRO)
 
 Q_OBJECT Q_OBJECT
 
 Q_PROPERTY (...)
 
 Q_REVISION Q_REVISION
 
 Q_SET_OBJECT_NAME (Object)
 
 Q_SIGNAL Q_SIGNAL
 
 Q_SIGNALS Q_SIGNALS
 
 Q_SLOT Q_SLOT
 
 Q_SLOTS Q_SLOTS
 
qobject_cast (const QObject *object)
 
qobject_cast (QObject *object)
 
 QT_NO_NARROWING_CONVERSIONS_IN_CONNECT QT_NO_NARROWING_CONVERSIONS_IN_CONNECT
 
void removeEventFilter (QObject *obj)
 
void setObjectName (const QString &name)
 
void setObjectName (QAnyStringView name)
 
void setParent (QObject *parent)
 
bool setProperty (const char *name, const QVariant &value)
 
bool setProperty (const char *name, QVariant &&value)
 
bool signalsBlocked () const const
 
int startTimer (int interval, Qt::TimerType timerType)
 
int startTimer (std::chrono::milliseconds interval, Qt::TimerType timerType)
 
QThreadthread () const const
 

Additional Inherited Members

- Properties inherited from QObject
 objectName
 
- Static Public Member Functions inherited from QObject
QMetaObject::Connection connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, Functor functor)
 
bool disconnect (const QMetaObject::Connection &connection)
 
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
 
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
bool disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method)
 
QString tr (const char *sourceText, const char *disambiguation, int n)
 
- Protected Member Functions inherited from QObject
virtual void childEvent (QChildEvent *event)
 
virtual void connectNotify (const QMetaMethod &signal)
 
virtual void customEvent (QEvent *event)
 
virtual void disconnectNotify (const QMetaMethod &signal)
 
bool isSignalConnected (const QMetaMethod &signal) const const
 
int receivers (const char *signal) const const
 
QObjectsender () const const
 
int senderSignalIndex () const const
 
virtual void timerEvent (QTimerEvent *event)
 

Detailed Description

The Sim class.

The SIM class handles communication with SIM, USIM, and RUIM (CDMA SIM) cards.

Definition at line 30 of file sim.h.

Member Typedef Documentation

◆ List

Definition at line 37 of file sim.h.

◆ Ptr

Definition at line 36 of file sim.h.

Constructor & Destructor Documentation

◆ Sim()

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

Definition at line 47 of file sim.cpp.

◆ ~Sim()

ModemManager::Sim::~Sim ( )
override

Definition at line 69 of file sim.cpp.

Member Function Documentation

◆ active()

bool ModemManager::Sim::active ( ) const
Returns
Boolean indicating whether the SIM is currently active.

On systems that support Multi SIM Single Standby, only one SIM may be active at any given time, which will be the one considered primary.

On systems that support Multi SIM Multi Standby, more than one SIM may be active at any given time, but only one of them is considered primary.

Definition at line 74 of file sim.cpp.

◆ changePin()

QDBusPendingReply ModemManager::Sim::changePin ( const QString & oldPin,
const QString & newPin )

Change the PIN code.

Parameters
oldPinA string containing the current PIN code.
newPinA string containing the new PIN code.

Definition at line 172 of file sim.cpp.

◆ eid()

QString ModemManager::Sim::eid ( ) const
Returns
The EID of the SIM card, if any.

Definition at line 92 of file sim.cpp.

◆ emergencyNumbers()

QStringList ModemManager::Sim::emergencyNumbers ( ) const
Returns
List of emergency numbers programmed in the SIM card.

These numbers should be treated as numbers for emergency calls in addition to 112 and 911.

Definition at line 110 of file sim.cpp.

◆ enablePin()

QDBusPendingReply ModemManager::Sim::enablePin ( const QString & pin,
bool enabled )

Enable or disable the PIN checking.

Parameters
pinA string containing the PIN code.
enabledTRUE to enable PIN checking, FALSE otherwise.

Definition at line 166 of file sim.cpp.

◆ imsi()

QString ModemManager::Sim::imsi ( ) const
Returns
The IMSI of the SIM card, if any.

Definition at line 86 of file sim.cpp.

◆ operatorIdentifier()

QString ModemManager::Sim::operatorIdentifier ( ) const
Returns
The ID of the network operator, as given by the SIM card, if known.

Definition at line 98 of file sim.cpp.

◆ operatorName()

QString ModemManager::Sim::operatorName ( ) const
Returns
The name of the network operator, as given by the SIM card, if known.

Definition at line 104 of file sim.cpp.

◆ preferredNetworks()

QVariantMap ModemManager::Sim::preferredNetworks ( ) const
Returns
Map of preferred networks with access technologies configured in the SIM card.

Each entry contains an operator id string key "MCCMNC" consisting of 5 or 6 digits, to an MMModemAccessTechnology mask value. If the SIM card does not support access technology storage, the mask will be set to MM_MODEM_ACCESS_TECHNOLOGY_UNKNOWN.

Definition at line 116 of file sim.cpp.

◆ sendPin()

QDBusPendingReply ModemManager::Sim::sendPin ( const QString & pin)

Send the PIN to unlock the SIM card.

Parameters
pinA string containing the PIN code.

Definition at line 160 of file sim.cpp.

◆ sendPuk()

QDBusPendingReply ModemManager::Sim::sendPuk ( const QString & puk,
const QString & pin )

Send the PUK and a new PIN to unlock the SIM card.

Parameters
pukA string containing the PUK code.
pinA string containing the PIN code.

Definition at line 154 of file sim.cpp.

◆ setPreferredNetworks()

QDBusPendingReply ModemManager::Sim::setPreferredNetworks ( QVariantMap preferredNetworks)
Parameters
preferred_plmnsList of preferred networks.

Stores the provided preferred network list to the SIM card. Each entry contains an operator id string ("MCCMNC") consisting of 5 or 6 digits, and an MMModemAccessTechnology mask to store to SIM card if supported.

This method removes any pre-existing entries of the preferred network list. Note that even if this operation fails, the preferred network list on the SIM card may have changed.

Definition at line 178 of file sim.cpp.

◆ setTimeout()

void ModemManager::Sim::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 190 of file sim.cpp.

◆ simIdentifier()

QString ModemManager::Sim::simIdentifier ( ) const
Returns
The ICCID of the SIM card.

This may be available before the PIN has been entered depending on the device itself.

Definition at line 80 of file sim.cpp.

◆ timeout()

int ModemManager::Sim::timeout ( ) const

Returns the current value of the DBus timeout in milliseconds.

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

Definition at line 196 of file sim.cpp.

◆ uni()

QString ModemManager::Sim::uni ( ) const

Definition at line 184 of file sim.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 Mon Nov 18 2024 12:15:10 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.