ModemManager.CdmaManualActivationProperties

g GObject.Object GObject.Object ModemManager.CdmaManualActivationProperties ModemManager.CdmaManualActivationProperties GObject.Object->ModemManager.CdmaManualActivationProperties

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

get_mdn ()

get_min ()

get_mn_aaa_key ()

get_mn_ha_key ()

get_prl ()

get_prl_bytearray ()

get_sid ()

get_spc ()

peek_prl_bytearray ()

set_mdn (mdn)

set_min (min)

set_mn_aaa_key (mn_aaa_key)

set_mn_ha_key (mn_ha_key)

set_prl (prl, prl_length)

set_prl_bytearray (prl)

set_sid (sid)

set_spc (spc)

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.CdmaManualActivationProperties(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

ModemManager.CdmaManualActivationPropertiesClass

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

classmethod new()
Returns:

A ModemManager.CdmaManualActivationProperties. The returned value should be freed with GObject.Object.unref().

Return type:

ModemManager.CdmaManualActivationProperties

Creates a new ModemManager.CdmaManualActivationProperties object.

New in version 1.2.

get_mdn()
Returns:

The MDN. Do not free the returned value, it is owned by self.

Return type:

str

Gets the Mobile Directory Number.

New in version 1.2.

get_min()
Returns:

The MIN. Do not free the returned value, it is owned by self.

Return type:

str

Gets the Mobile Indentification Number.

New in version 1.2.

get_mn_aaa_key()
Returns:

The MN-AAA key. Do not free the returned value, it is owned by self.

Return type:

str

Gets the MN-AAA key.

New in version 1.2.

get_mn_ha_key()
Returns:

The MN-HA key. Do not free the returned value, it is owned by self.

Return type:

str

Gets the MN-HA key.

New in version 1.2.

get_prl()
Returns:

The PRL. Do not free the returned value, it is owned by self.

prl_len:

Size of the returned PRL.

Return type:

(int, prl_len: int)

Gets the Preferred Roaming List.

New in version 1.2.

get_prl_bytearray()
Returns:

A GLib.ByteArray with the PRL, or None if it doesn’t contain any. The returned value should be freed with GLib.ByteArray.unref().

Return type:

bytes

Gets the Preferred Roaming List.

New in version 1.2.

get_sid()
Returns:

The SID.

Return type:

int

Gets the System Identification Number.

New in version 1.2.

get_spc()
Returns:

The SPC. Do not free the returned value, it is owned by self.

Return type:

str

Gets the Service Programming Code.

New in version 1.2.

peek_prl_bytearray()
Returns:

A GLib.ByteArray with the PRL, or None if it doesn’t contain any. Do not free the returned value, it is owned by self.

Return type:

bytes

Gets the Preferred Roaming List.

New in version 1.2.

set_mdn(mdn)
Parameters:

mdn (str) – The MDN string, maximum 15 characters.

Raises:

GLib.Error

Returns:

True if the MDN was successfully set, or False if error is set.

Return type:

bool

Sets the Mobile Directory Number.

New in version 1.2.

set_min(min)
Parameters:

min (str) – The MIN string, maximum 15 characters.

Raises:

GLib.Error

Returns:

True if the MIN was successfully set, or False if error is set.

Return type:

bool

Sets the Mobile Identification Number.

New in version 1.2.

set_mn_aaa_key(mn_aaa_key)
Parameters:

mn_aaa_key (str) – The MN-AAA key string, maximum 16 characters.

Raises:

GLib.Error

Returns:

True if the MN-AAA key was successfully set, or False if error is set.

Return type:

bool

Sets the Mobile Identification Number.

New in version 1.2.

set_mn_ha_key(mn_ha_key)
Parameters:

mn_ha_key (str) – The MN-HA key string, maximum 16 characters.

Raises:

GLib.Error

Returns:

True if the MN-HA key was successfully set, or False if error is set.

Return type:

bool

Sets the Mobile Identification Number.

New in version 1.2.

set_prl(prl, prl_length)
Parameters:
  • prl (int) – The PRL.

  • prl_length (int) – Length of prl.

Raises:

GLib.Error

Returns:

True if the PRL was successfully set, or False if error is set.

Return type:

bool

Sets the Preferred Roaming List.

New in version 1.2.

set_prl_bytearray(prl)
Parameters:

prl (bytes) – A GLib.ByteArray with the PRL to set. This method takes a new reference of prl.

Raises:

GLib.Error

Returns:

True if the PRL was successfully set, or False if error is set.

Return type:

bool

Sets the Preferred Roaming List.

New in version 1.2.

set_sid(sid)
Parameters:

sid (int) – The SID.

Sets the Service Identification Number.

New in version 1.2.

set_spc(spc)
Parameters:

spc (str) – The SPC string, exactly 6 digits.

Raises:

GLib.Error

Returns:

True if the SPC was successfully set, or False if error is set.

Return type:

bool

Sets the Service Programming Code.

New in version 1.2.