ModemManager.Location3gpp

g GObject.Object GObject.Object ModemManager.Location3gpp ModemManager.Location3gpp GObject.Object->ModemManager.Location3gpp

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_cell_id ()

get_location_area_code ()

get_mobile_country_code ()

get_mobile_network_code ()

get_operator_code ()

get_tracking_area_code ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

GObject.Object

r

Class Details

class ModemManager.Location3gpp(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

ModemManager.Location3gppClass

The ModemManager.Location3gpp structure contains private data and should only be accessed using the provided API.

get_cell_id()
Returns:

the cell ID, or 0 if unknown.

Return type:

int

Gets the cell ID of the 3GPP network.

New in version 1.0.

get_location_area_code()
Returns:

the location area code, or 0 if unknown.

Return type:

int

Gets the location area code of the 3GPP network.

New in version 1.0.

get_mobile_country_code()
Returns:

the MCC, or 0 if unknown.

Return type:

int

Gets the Mobile Country Code of the 3GPP network.

New in version 1.0.

get_mobile_network_code()
Returns:

the MNC, or 0 if unknown.

Return type:

int

Gets the Mobile Network Code of the 3GPP network.

Note that 0 may actually be a valid MNC. In general, the MNC should be considered valid just if the reported MCC is valid, as MCC should never be 0.

New in version 1.0.

Deprecated since version 1.18.0.: This function can not separate between two-digit MNCs and three-digit MNCs with a leading zero. Use ModemManager.Location3gpp.get_operator_code() instead.

get_operator_code()
Returns:

The operator code, or None if none available.

Return type:

str

Gets the 3GPP network Mobile Country Code and Mobile Network Code.

Returned in the format "MCCMNC", where MCC is the three-digit ITU E.212 Mobile Country Code and MNC is the two- or three-digit GSM Mobile Network Code. e.g. e``”31026”`` or "310260".

New in version 1.18.

get_tracking_area_code()
Returns:

the location area code, or 0 if unknown.

Return type:

int

Gets the location area code of the 3GPP network.

New in version 1.10.