API Documentation
Documentation for developing SailfishOS applicationsSimState Class
(Sailfish::Mdm::SimInfo::SimState)Contains detailed information about a particular SIM card. More...
| Header: | #include <mdm-siminfo.h> | 
Public Functions
| SimState() | |
| operator const QString() const | |
| bool | operator!=(const SimState &simState) const | 
| bool | operator<(const SimState &simState) const | 
| bool | operator<=(const SimState &simState) const | 
| bool | operator==(const SimState &simState) const | 
| bool | operator>(const SimState &simState) const | 
| bool | operator>=(const SimState &simState) const | 
Public Variables
| QString | cardIdentifier | 
| bool | dataSim | 
| bool | enabled | 
| QString | imsi | 
| QString | modemPath | 
| NetworkRegistrationStatus | networkRegistrationStatus | 
| PinRequired | pinRequired | 
| bool | present | 
| QString | serviceProviderName | 
| QStringList | subscriberNumbers | 
| bool | voiceSim | 
Detailed Description
Contains detailed information about a particular SIM card.
Member Function Documentation
SimState::SimState()
Creates an invalid SimState.
SimState::operator const QString() const
Returns a string description of this SIM state.
bool SimState::operator!=(const SimState &simState) const
Returns true if any parameters of this SIM state are not the same as those of simState.
bool SimState::operator<(const SimState &simState) const
Returns true if a string comparison determines this SIM state's modem path to be less than that of simState.
bool SimState::operator<=(const SimState &simState) const
Returns true if a string comparison determines this SIM state's modem path to be less than or equal to that of simState.
bool SimState::operator==(const SimState &simState) const
Returns true if all parameters of this state are the same as those of simState.
bool SimState::operator>(const SimState &simState) const
Returns true if a string comparison determines this SIM state's modem path to be greater than that of simState.
bool SimState::operator>=(const SimState &simState) const
Returns true if a string comparison determines this SIM state's modem path to be greater than or equal to that of simState.
Member Variable Documentation
QString SimState::cardIdentifier
The ICCID of the SIM.
bool SimState::dataSim
True if this is the default SIM for mobile data usage.
bool SimState::enabled
True if this SIM is enabled for use.
QString SimState::imsi
The IMSI of the SIM.
QString SimState::modemPath
The modem path that identifies the modem to which the SIM is attached.
NetworkRegistrationStatus SimState::networkRegistrationStatus
The current network registration status of the SIM.
PinRequired SimState::pinRequired
The current PIN/PUK state of the SIM.
bool SimState::present
True if SIM information is available.
QString SimState::serviceProviderName
The name of the service provider that provides the cellular service on which the SIM is registered.
QStringList SimState::subscriberNumbers
The phone number(s) of the SIM, if available.
bool SimState::voiceSim
True if this is the default SIM for voice calls.