Functions

  activation_command_get_string (val)
  activation_state_get_string (val)
  atds_provider_array_free (array)
  atds_provider_plmn_mode_get_string (val)
  atds_rat_mode_get_string (val)
  auth_protocol_get_string (val)
  cellular_class_build_string_from_mask (mask)
  cid_atds_get_string (val)
  cid_auth_get_string (val)
  cid_basic_connect_get_string (val)
  cid_can_notify (service, cid)
  cid_can_query (service, cid)
  cid_can_set (service, cid)
  cid_dss_get_string (val)
  cid_get_printable (service, cid)
  cid_intel_firmware_update_get_string (val)
  cid_ms_basic_connect_extensions_get_string (val)
  cid_ms_firmware_id_get_string (val)
  cid_ms_host_shutdown_get_string (val)
  cid_phonebook_get_string (val)
  cid_proxy_control_get_string (val)
  cid_qmi_get_string (val)
  cid_sms_get_string (val)
  cid_stk_get_string (val)
  cid_ussd_get_string (val)
  compression_get_string (val)
  context_ip_type_get_string (val)
  context_source_get_string (val)
  context_type_get_string (val)
  core_error_get_string (val)
  core_error_quark ()
  ctrl_caps_build_string_from_mask (mask)
  data_class_build_string_from_mask (mask)
  device_service_element_array_free (array)
  device_type_get_string (val)
  dss_link_state_get_string (val)
  emergency_mode_state_get_string (val)
  event_entry_array_free (array)
  ip_configuration_available_flag_build_string_from_mask (mask)
  ipv4_element_array_free (array)
  ipv6_element_array_free (array)
  lte_attach_configuration_array_free (array)
  lte_attach_context_operation_get_string (val)
  lte_attach_context_roaming_control_get_string (val)
  lte_attach_state_get_string (val)
  message_command_type_get_string (val)
  message_type_get_string (val)
  network_idle_hint_state_get_string (val)
  nw_error_get_string (val)
  packet_filter_array_free (array)
  packet_service_action_get_string (val)
  packet_service_state_get_string (val)
  pco_type_get_string (val)
  phonebook_entry_array_free (array)
  phonebook_flag_get_string (val)
  phonebook_state_get_string (val)
  phonebook_write_flag_get_string (val)
  pin_format_get_string (val)
  pin_mode_get_string (val)
  pin_operation_get_string (val)
  pin_state_get_string (val)
  pin_type_get_string (val)
  protocol_error_get_string (val)
  protocol_error_quark ()
  provider_array_free (array)
  provider_state_build_string_from_mask (mask)
  provisioned_context_element_array_free (array)
  radio_switch_state_get_string (val)
  ready_info_flag_build_string_from_mask (mask)
  register_action_get_string (val)
  register_custom_service (uuid, nickname)
  register_mode_get_string (val)
  register_state_get_string (val)
  registration_flag_build_string_from_mask (mask)
  service_get_string (val)
  service_id_is_custom (id)
  service_lookup_name (service)
  sim_class_build_string_from_mask (mask)
  sms_caps_build_string_from_mask (mask)
  sms_cdma_encoding_get_string (val)
  sms_cdma_lang_get_string (val)
  sms_cdma_read_record_array_free (array)
  sms_flag_get_string (val)
  sms_format_get_string (val)
  sms_pdu_read_record_array_free (array)
  sms_status_flag_get_string (val)
  sms_status_get_string (val)
  sms_storage_state_get_string (val)
  status_error_get_string (val)
  status_error_quark ()
  stk_pac_profile_get_string (val)
  stk_pac_type_get_string (val)
  subscriber_ready_state_get_string (val)
  unregister_custom_service (id)
  ussd_action_get_string (val)
  ussd_response_get_string (val)
  ussd_session_state_get_string (val)
  utils_get_traces_enabled ()
  utils_set_traces_enabled (enabled)
  uuid_from_context_type (context_type)
  uuid_from_printable (str, uuid)
  uuid_from_service (service)
  visible_providers_action_get_string (val)
  voice_call_state_get_string (val)
  voice_class_get_string (val)

Details

Mbim.activation_command_get_string(val)
Parameters:val (Mbim.ActivationCommand) – a Mbim.ActivationCommand.
Returns:a string with the nickname, or None if not found. Do not free the returned value.
Return type:str

Gets the nickname string for the Mbim.ActivationCommand specified at val.

New in version 1.0.

Mbim.activation_state_get_string(val)
Parameters:val (Mbim.ActivationState) – a Mbim.ActivationState.
Returns:a string with the nickname, or None if not found. Do not free the returned value.
Return type:str

Gets the nickname string for the Mbim.ActivationState specified at val.

New in version 1.0.

Mbim.atds_provider_array_free(array)
Parameters:array (Mbim.AtdsProvider) – a None terminated array of Mbim.AtdsProvider structs.

Frees the memory allocated for the array of Mbim.AtdsProviders.

New in version 1.16.

Mbim.atds_provider_plmn_mode_get_string(val)
Parameters:val (Mbim.AtdsProviderPlmnMode) – a Mbim.AtdsProviderPlmnMode.
Returns:a string with the nickname, or None if not found. Do not free the returned value.
Return type:str

Gets the nickname string for the Mbim.AtdsProviderPlmnMode specified at val.

New in version 1.16.

Mbim.atds_rat_mode_get_string(val)
Parameters:val (Mbim.AtdsRatMode) – a Mbim.AtdsRatMode.
Returns:a string with the nickname, or None if not found. Do not free the returned value.
Return type:str

Gets the nickname string for the Mbim.AtdsRatMode specified at val.

New in version 1.16.

Mbim.auth_protocol_get_string(val)
Parameters:val (Mbim.AuthProtocol) – a Mbim.AuthProtocol.
Returns:a string with the nickname, or None if not found. Do not free the returned value.
Return type:str

Gets the nickname string for the Mbim.AuthProtocol specified at val.

New in version 1.0.

Mbim.cellular_class_build_string_from_mask(mask)
Parameters:mask (Mbim.CellularClass) – bitmask of Mbim.CellularClass values.
Returns:a string with the list of nicknames, or None if none given. The returned value should be freed with GLib.free().
Return type:str

Builds a string containing a comma-separated list of nicknames for each Mbim.CellularClass in mask.

New in version 1.0.

Mbim.cid_atds_get_string(val)
Parameters:val (Mbim.CidAtds) – a Mbim.CidAtds.
Returns:a string with the nickname, or None if not found. Do not free the returned value.
Return type:str

Gets the nickname string for the Mbim.CidAtds specified at val.

New in version 1.16.

Mbim.cid_auth_get_string(val)
Parameters:val (Mbim.CidAuth) – a Mbim.CidAuth.
Returns:a string with the nickname, or None if not found. Do not free the returned value.
Return type:str

Gets the nickname string for the Mbim.CidAuth specified at val.

New in version 1.0.

Mbim.cid_basic_connect_get_string(val)
Parameters:val (Mbim.CidBasicConnect) – a Mbim.CidBasicConnect.
Returns:a string with the nickname, or None if not found. Do not free the returned value.
Return type:str

Gets the nickname string for the Mbim.CidBasicConnect specified at val.

New in version 1.0.

Mbim.cid_can_notify(service, cid)
Parameters:
Returns:

True if the command allows notifying, False otherwise.

Return type:

bool

Checks whether the given command allows notifying.

New in version 1.0.

Mbim.cid_can_query(service, cid)
Parameters:
Returns:

True if the command allows querying, False otherwise.

Return type:

bool

Checks whether the given command allows querying.

New in version 1.0.

Mbim.cid_can_set(service, cid)
Parameters:
Returns:

True if the command allows setting, False otherwise.

Return type:

bool

Checks whether the given command allows setting.

New in version 1.0.

Mbim.cid_dss_get_string(val)
Parameters:val (Mbim.CidDss) – a Mbim.CidDss.
Returns:a string with the nickname, or None if not found. Do not free the returned value.
Return type:str

Gets the nickname string for the Mbim.CidDss specified at val.

New in version 1.0.

Mbim.cid_get_printable(service, cid)
Parameters:
Returns:

a constant string.

Return type:

str

Gets a printable string for the command specified by the service and the cid.

New in version 1.0.

Mbim.cid_intel_firmware_update_get_string(val)
Parameters:val (Mbim.CidIntelFirmwareUpdate) – a Mbim.CidIntelFirmwareUpdate.
Returns:a string with the nickname, or None if not found. Do not free the returned value.
Return type:str

Gets the nickname string for the Mbim.CidIntelFirmwareUpdate specified at val.

New in version 1.16.

Mbim.cid_ms_basic_connect_extensions_get_string(val)
Parameters:val (Mbim.CidMsBasicConnectExtensions) – a Mbim.CidMsBasicConnectExtensions.
Returns:a string with the nickname, or None if not found. Do not free the returned value.
Return type:str

Gets the nickname string for the Mbim.CidMsBasicConnectExtensions specified at val.

New in version 1.18.

Mbim.cid_ms_firmware_id_get_string(val)
Parameters:val (Mbim.CidMsFirmwareId) – a Mbim.CidMsFirmwareId.
Returns:a string with the nickname, or None if not found. Do not free the returned value.
Return type:str

Gets the nickname string for the Mbim.CidMsFirmwareId specified at val.

New in version 1.0.

Mbim.cid_ms_host_shutdown_get_string(val)
Parameters:val (Mbim.CidMsHostShutdown) – a Mbim.CidMsHostShutdown.
Returns:a string with the nickname, or None if not found. Do not free the returned value.
Return type:str

Gets the nickname string for the Mbim.CidMsHostShutdown specified at val.

New in version 1.8.

Mbim.cid_phonebook_get_string(val)
Parameters:val (Mbim.CidPhonebook) – a Mbim.CidPhonebook.
Returns:a string with the nickname, or None if not found. Do not free the returned value.
Return type:str

Gets the nickname string for the Mbim.CidPhonebook specified at val.

New in version 1.0.

Mbim.cid_proxy_control_get_string(val)
Parameters:val (Mbim.CidProxyControl) – a Mbim.CidProxyControl.
Returns:a string with the nickname, or None if not found. Do not free the returned value.
Return type:str

Gets the nickname string for the Mbim.CidProxyControl specified at val.

New in version 1.10.

Mbim.cid_qmi_get_string(val)
Parameters:val (Mbim.CidQmi) – a Mbim.CidQmi.
Returns:a string with the nickname, or None if not found. Do not free the returned value.
Return type:str

Gets the nickname string for the Mbim.CidQmi specified at val.

New in version 1.14.

Mbim.cid_sms_get_string(val)
Parameters:val (Mbim.CidSms) – a Mbim.CidSms.
Returns:a string with the nickname, or None if not found. Do not free the returned value.
Return type:str

Gets the nickname string for the Mbim.CidSms specified at val.

New in version 1.0.

Mbim.cid_stk_get_string(val)
Parameters:val (Mbim.CidStk) – a Mbim.CidStk.
Returns:a string with the nickname, or None if not found. Do not free the returned value.
Return type:str

Gets the nickname string for the Mbim.CidStk specified at val.

New in version 1.0.

Mbim.cid_ussd_get_string(val)
Parameters:val (Mbim.CidUssd) – a Mbim.CidUssd.
Returns:a string with the nickname, or None if not found. Do not free the returned value.
Return type:str

Gets the nickname string for the Mbim.CidUssd specified at val.

New in version 1.0.

Mbim.compression_get_string(val)
Parameters:val (Mbim.Compression) – a Mbim.Compression.
Returns:a string with the nickname, or None if not found. Do not free the returned value.
Return type:str

Gets the nickname string for the Mbim.Compression specified at val.

New in version 1.0.

Mbim.context_ip_type_get_string(val)
Parameters:val (Mbim.ContextIpType) – a Mbim.ContextIpType.
Returns:a string with the nickname, or None if not found. Do not free the returned value.
Return type:str

Gets the nickname string for the Mbim.ContextIpType specified at val.

New in version 1.0.

Mbim.context_source_get_string(val)
Parameters:val (Mbim.ContextSource) – a Mbim.ContextSource.
Returns:a string with the nickname, or None if not found. Do not free the returned value.
Return type:str

Gets the nickname string for the Mbim.ContextSource specified at val.

New in version 1.18.

Mbim.context_type_get_string(val)
Parameters:val (Mbim.ContextType) – a Mbim.ContextType.
Returns:a string with the nickname, or None if not found. Do not free the returned value.
Return type:str

Gets the nickname string for the Mbim.ContextType specified at val.

New in version 1.0.

Mbim.core_error_get_string(val)
Parameters:val (Mbim.CoreError) – a Mbim.CoreError.
Returns:a string with the nickname, or None if not found. Do not free the returned value.
Return type:str

Gets the nickname string for the Mbim.CoreError specified at val.

Mbim.core_error_quark()
Return type:int
Mbim.ctrl_caps_build_string_from_mask(mask)
Parameters:mask (Mbim.CtrlCaps) – bitmask of Mbim.CtrlCaps values.
Returns:a string with the list of nicknames, or None if none given. The returned value should be freed with GLib.free().
Return type:str

Builds a string containing a comma-separated list of nicknames for each Mbim.CtrlCaps in mask.

New in version 1.0.

Mbim.data_class_build_string_from_mask(mask)
Parameters:mask (Mbim.DataClass) – bitmask of Mbim.DataClass values.
Returns:a string with the list of nicknames, or None if none given. The returned value should be freed with GLib.free().
Return type:str

Builds a string containing a comma-separated list of nicknames for each Mbim.DataClass in mask.

New in version 1.0.

Mbim.device_service_element_array_free(array)
Parameters:array (Mbim.DeviceServiceElement) – a None terminated array of Mbim.DeviceServiceElement structs.

Frees the memory allocated for the array of Mbim.DeviceServiceElements.

New in version 1.0.

Mbim.device_type_get_string(val)
Parameters:val (Mbim.DeviceType) – a Mbim.DeviceType.
Returns:a string with the nickname, or None if not found. Do not free the returned value.
Return type:str

Gets the nickname string for the Mbim.DeviceType specified at val.

New in version 1.0.

Parameters:val (Mbim.DssLinkState) – a Mbim.DssLinkState.
Returns:a string with the nickname, or None if not found. Do not free the returned value.
Return type:str

Gets the nickname string for the Mbim.DssLinkState specified at val.

New in version 1.4.

Mbim.emergency_mode_state_get_string(val)
Parameters:val (Mbim.EmergencyModeState) – a Mbim.EmergencyModeState.
Returns:a string with the nickname, or None if not found. Do not free the returned value.
Return type:str

Gets the nickname string for the Mbim.EmergencyModeState specified at val.

New in version 1.4.

Mbim.event_entry_array_free(array)
Parameters:array (Mbim.EventEntry) – a None terminated array of Mbim.EventEntry structs.

Frees the memory allocated for the array of Mbim.EventEntrys.

New in version 1.4.

Mbim.ip_configuration_available_flag_build_string_from_mask(mask)
Parameters:mask (Mbim.IPConfigurationAvailableFlag) – bitmask of Mbim.IPConfigurationAvailableFlag values.
Returns:a string with the list of nicknames, or None if none given. The returned value should be freed with GLib.free().
Return type:str

Builds a string containing a comma-separated list of nicknames for each Mbim.IPConfigurationAvailableFlag in mask.

New in version 1.0.

Mbim.ipv4_element_array_free(array)
Parameters:array (Mbim.IPv4Element) – a None terminated array of Mbim.IPv4Element structs.

Frees the memory allocated for the array of Mbim.IPv4Elements.

New in version 1.0.

Mbim.ipv6_element_array_free(array)
Parameters:array (Mbim.IPv6Element) – a None terminated array of Mbim.IPv6Element structs.

Frees the memory allocated for the array of Mbim.IPv6Elements.

New in version 1.0.

Mbim.lte_attach_configuration_array_free(array)
Parameters:array (Mbim.LteAttachConfiguration) – a None terminated array of Mbim.LteAttachConfiguration structs.

Frees the memory allocated for the array of Mbim.LteAttachConfigurations.

New in version 1.18.

Mbim.lte_attach_context_operation_get_string(val)
Parameters:val (Mbim.LteAttachContextOperation) – a Mbim.LteAttachContextOperation.
Returns:a string with the nickname, or None if not found. Do not free the returned value.
Return type:str

Gets the nickname string for the Mbim.LteAttachContextOperation specified at val.

New in version 1.18.

Mbim.lte_attach_context_roaming_control_get_string(val)
Parameters:val (Mbim.LteAttachContextRoamingControl) – a Mbim.LteAttachContextRoamingControl.
Returns:a string with the nickname, or None if not found. Do not free the returned value.
Return type:str

Gets the nickname string for the Mbim.LteAttachContextRoamingControl specified at val.

New in version 1.18.

Mbim.lte_attach_state_get_string(val)
Parameters:val (Mbim.LteAttachState) – a Mbim.LteAttachState.
Returns:a string with the nickname, or None if not found. Do not free the returned value.
Return type:str

Gets the nickname string for the Mbim.LteAttachState specified at val.

New in version 1.18.

Mbim.message_command_type_get_string(val)
Parameters:val (Mbim.MessageCommandType) – a Mbim.MessageCommandType.
Returns:a string with the nickname, or None if not found. Do not free the returned value.
Return type:str

Gets the nickname string for the Mbim.MessageCommandType specified at val.

New in version 1.0.

Mbim.message_type_get_string(val)
Parameters:val (Mbim.MessageType) – a Mbim.MessageType.
Returns:a string with the nickname, or None if not found. Do not free the returned value.
Return type:str

Gets the nickname string for the Mbim.MessageType specified at val.

New in version 1.0.

Mbim.network_idle_hint_state_get_string(val)
Parameters:val (Mbim.NetworkIdleHintState) – a Mbim.NetworkIdleHintState.
Returns:a string with the nickname, or None if not found. Do not free the returned value.
Return type:str

Gets the nickname string for the Mbim.NetworkIdleHintState specified at val.

New in version 1.4.

Mbim.nw_error_get_string(val)
Parameters:val (Mbim.NwError) – a Mbim.NwError.
Returns:a string with the nickname, or None if not found. Do not free the returned value.
Return type:str

Gets the nickname string for the Mbim.NwError specified at val.

New in version 1.0.

Mbim.packet_filter_array_free(array)
Parameters:array (Mbim.PacketFilter) – a None terminated array of Mbim.PacketFilter structs.

Frees the memory allocated for the array of Mbim.PacketFilters.

New in version 1.4.

Mbim.packet_service_action_get_string(val)
Parameters:val (Mbim.PacketServiceAction) – a Mbim.PacketServiceAction.
Returns:a string with the nickname, or None if not found. Do not free the returned value.
Return type:str

Gets the nickname string for the Mbim.PacketServiceAction specified at val.

New in version 1.0.

Mbim.packet_service_state_get_string(val)
Parameters:val (Mbim.PacketServiceState) – a Mbim.PacketServiceState.
Returns:a string with the nickname, or None if not found. Do not free the returned value.
Return type:str

Gets the nickname string for the Mbim.PacketServiceState specified at val.

New in version 1.0.

Mbim.pco_type_get_string(val)
Parameters:val (Mbim.PcoType) – a Mbim.PcoType.
Returns:a string with the nickname, or None if not found. Do not free the returned value.
Return type:str

Gets the nickname string for the Mbim.PcoType specified at val.

New in version 1.18.

Mbim.phonebook_entry_array_free(array)
Parameters:array (Mbim.PhonebookEntry) – a None terminated array of Mbim.PhonebookEntry structs.

Frees the memory allocated for the array of Mbim.PhonebookEntrys.

New in version 1.4.

Mbim.phonebook_flag_get_string(val)
Parameters:val (Mbim.PhonebookFlag) – a Mbim.PhonebookFlag.
Returns:a string with the nickname, or None if not found. Do not free the returned value.
Return type:str

Gets the nickname string for the Mbim.PhonebookFlag specified at val.

New in version 1.4.

Mbim.phonebook_state_get_string(val)
Parameters:val (Mbim.PhonebookState) – a Mbim.PhonebookState.
Returns:a string with the nickname, or None if not found. Do not free the returned value.
Return type:str

Gets the nickname string for the Mbim.PhonebookState specified at val.

New in version 1.4.

Mbim.phonebook_write_flag_get_string(val)
Parameters:val (Mbim.PhonebookWriteFlag) – a Mbim.PhonebookWriteFlag.
Returns:a string with the nickname, or None if not found. Do not free the returned value.
Return type:str

Gets the nickname string for the Mbim.PhonebookWriteFlag specified at val.

New in version 1.4.

Mbim.pin_format_get_string(val)
Parameters:val (Mbim.PinFormat) – a Mbim.PinFormat.
Returns:a string with the nickname, or None if not found. Do not free the returned value.
Return type:str

Gets the nickname string for the Mbim.PinFormat specified at val.

New in version 1.0.

Mbim.pin_mode_get_string(val)
Parameters:val (Mbim.PinMode) – a Mbim.PinMode.
Returns:a string with the nickname, or None if not found. Do not free the returned value.
Return type:str

Gets the nickname string for the Mbim.PinMode specified at val.

New in version 1.0.

Mbim.pin_operation_get_string(val)
Parameters:val (Mbim.PinOperation) – a Mbim.PinOperation.
Returns:a string with the nickname, or None if not found. Do not free the returned value.
Return type:str

Gets the nickname string for the Mbim.PinOperation specified at val.

New in version 1.0.

Mbim.pin_state_get_string(val)
Parameters:val (Mbim.PinState) – a Mbim.PinState.
Returns:a string with the nickname, or None if not found. Do not free the returned value.
Return type:str

Gets the nickname string for the Mbim.PinState specified at val.

New in version 1.0.

Mbim.pin_type_get_string(val)
Parameters:val (Mbim.PinType) – a Mbim.PinType.
Returns:a string with the nickname, or None if not found. Do not free the returned value.
Return type:str

Gets the nickname string for the Mbim.PinType specified at val.

New in version 1.0.

Mbim.protocol_error_get_string(val)
Parameters:val (Mbim.ProtocolError) – a Mbim.ProtocolError.
Returns:a string with the nickname, or None if not found. Do not free the returned value.
Return type:str

Gets the nickname string for the Mbim.ProtocolError specified at val.

Mbim.protocol_error_quark()
Return type:int
Mbim.provider_array_free(array)
Parameters:array (Mbim.Provider) – a None terminated array of Mbim.Provider structs.

Frees the memory allocated for the array of Mbim.Providers.

New in version 1.2.

Mbim.provider_state_build_string_from_mask(mask)
Parameters:mask (Mbim.ProviderState) – bitmask of Mbim.ProviderState values.
Returns:a string with the list of nicknames, or None if none given. The returned value should be freed with GLib.free().
Return type:str

Builds a string containing a comma-separated list of nicknames for each Mbim.ProviderState in mask.

New in version 1.2.

Mbim.provisioned_context_element_array_free(array)
Parameters:array (Mbim.ProvisionedContextElement) – a None terminated array of Mbim.ProvisionedContextElement structs.

Frees the memory allocated for the array of Mbim.ProvisionedContextElements.

New in version 1.0.

Mbim.radio_switch_state_get_string(val)
Parameters:val (Mbim.RadioSwitchState) – a Mbim.RadioSwitchState.
Returns:a string with the nickname, or None if not found. Do not free the returned value.
Return type:str

Gets the nickname string for the Mbim.RadioSwitchState specified at val.

New in version 1.0.

Mbim.ready_info_flag_build_string_from_mask(mask)
Parameters:mask (Mbim.ReadyInfoFlag) – bitmask of Mbim.ReadyInfoFlag values.
Returns:a string with the list of nicknames, or None if none given. The returned value should be freed with GLib.free().
Return type:str

Builds a string containing a comma-separated list of nicknames for each Mbim.ReadyInfoFlag in mask.

New in version 1.0.

Mbim.register_action_get_string(val)
Parameters:val (Mbim.RegisterAction) – a Mbim.RegisterAction.
Returns:a string with the nickname, or None if not found. Do not free the returned value.
Return type:str

Gets the nickname string for the Mbim.RegisterAction specified at val.

New in version 1.0.

Mbim.register_custom_service(uuid, nickname)
Parameters:
  • uuid (Mbim.Uuid) – Mbim.Uuid structure corresponding to service
  • nickname (str) – a printable name for service
Returns:

True if service has been registered, False otherwise.

Return type:

int

Register a custom service

New in version 1.10.

Mbim.register_mode_get_string(val)
Parameters:val (Mbim.RegisterMode) – a Mbim.RegisterMode.
Returns:a string with the nickname, or None if not found. Do not free the returned value.
Return type:str

Gets the nickname string for the Mbim.RegisterMode specified at val.

New in version 1.0.

Mbim.register_state_get_string(val)
Parameters:val (Mbim.RegisterState) – a Mbim.RegisterState.
Returns:a string with the nickname, or None if not found. Do not free the returned value.
Return type:str

Gets the nickname string for the Mbim.RegisterState specified at val.

New in version 1.0.

Mbim.registration_flag_build_string_from_mask(mask)
Parameters:mask (Mbim.RegistrationFlag) – bitmask of Mbim.RegistrationFlag values.
Returns:a string with the list of nicknames, or None if none given. The returned value should be freed with GLib.free().
Return type:str

Builds a string containing a comma-separated list of nicknames for each Mbim.RegistrationFlag in mask.

New in version 1.0.

Mbim.service_get_string(val)
Parameters:val (Mbim.Service) – a Mbim.Service.
Returns:a string with the nickname, or None if not found. Do not free the returned value.
Return type:str

Gets the nickname string for the Mbim.Service specified at val.

New in version 1.0.

Mbim.service_id_is_custom(id)
Parameters:id (int) – ID of the service
Returns:True if service is custom, False otherwise.
Return type:bool

Checks whether id is a custom or standard service.

New in version 1.10.

Mbim.service_lookup_name(service)
Parameters:service (int) – a Mbim.Service or custom service.
Returns:a string with the nickname, or None if not found. Do not free the returned value.
Return type:str

Gets the nickname string for the service.

As opposed to Mbim.Service.get_string(), this methods takes into account custom services that may have been registered by the user.

New in version 1.10.

Mbim.sim_class_build_string_from_mask(mask)
Parameters:mask (Mbim.SimClass) – bitmask of Mbim.SimClass values.
Returns:a string with the list of nicknames, or None if none given. The returned value should be freed with GLib.free().
Return type:str

Builds a string containing a comma-separated list of nicknames for each Mbim.SimClass in mask.

New in version 1.0.

Mbim.sms_caps_build_string_from_mask(mask)
Parameters:mask (Mbim.SmsCaps) – bitmask of Mbim.SmsCaps values.
Returns:a string with the list of nicknames, or None if none given. The returned value should be freed with GLib.free().
Return type:str

Builds a string containing a comma-separated list of nicknames for each Mbim.SmsCaps in mask.

New in version 1.0.

Mbim.sms_cdma_encoding_get_string(val)
Parameters:val (Mbim.SmsCdmaEncoding) – a Mbim.SmsCdmaEncoding.
Returns:a string with the nickname, or None if not found. Do not free the returned value.
Return type:str

Gets the nickname string for the Mbim.SmsCdmaEncoding specified at val.

New in version 1.4.

Mbim.sms_cdma_lang_get_string(val)
Parameters:val (Mbim.SmsCdmaLang) – a Mbim.SmsCdmaLang.
Returns:a string with the nickname, or None if not found. Do not free the returned value.
Return type:str

Gets the nickname string for the Mbim.SmsCdmaLang specified at val.

New in version 1.4.

Mbim.sms_cdma_read_record_array_free(array)
Parameters:array (Mbim.SmsCdmaReadRecord) – a None terminated array of Mbim.SmsCdmaReadRecord structs.

Frees the memory allocated for the array of Mbim.SmsCdmaReadRecords.

New in version 1.4.

Mbim.sms_flag_get_string(val)
Parameters:val (Mbim.SmsFlag) – a Mbim.SmsFlag.
Returns:a string with the nickname, or None if not found. Do not free the returned value.
Return type:str

Gets the nickname string for the Mbim.SmsFlag specified at val.

New in version 1.4.

Mbim.sms_format_get_string(val)
Parameters:val (Mbim.SmsFormat) – a Mbim.SmsFormat.
Returns:a string with the nickname, or None if not found. Do not free the returned value.
Return type:str

Gets the nickname string for the Mbim.SmsFormat specified at val.

New in version 1.4.

Mbim.sms_pdu_read_record_array_free(array)
Parameters:array (Mbim.SmsPduReadRecord) – a None terminated array of Mbim.SmsPduReadRecord structs.

Frees the memory allocated for the array of Mbim.SmsPduReadRecords.

New in version 1.4.

Mbim.sms_status_flag_get_string(val)
Parameters:val (Mbim.SmsStatusFlag) – a Mbim.SmsStatusFlag.
Returns:a string with the nickname, or None if not found. Do not free the returned value.
Return type:str

Gets the nickname string for the Mbim.SmsStatusFlag specified at val.

New in version 1.4.

Mbim.sms_status_get_string(val)
Parameters:val (Mbim.SmsStatus) – a Mbim.SmsStatus.
Returns:a string with the nickname, or None if not found. Do not free the returned value.
Return type:str

Gets the nickname string for the Mbim.SmsStatus specified at val.

New in version 1.4.

Mbim.sms_storage_state_get_string(val)
Parameters:val (Mbim.SmsStorageState) – a Mbim.SmsStorageState.
Returns:a string with the nickname, or None if not found. Do not free the returned value.
Return type:str

Gets the nickname string for the Mbim.SmsStorageState specified at val.

New in version 1.4.

Mbim.status_error_get_string(val)
Parameters:val (Mbim.StatusError) – a Mbim.StatusError.
Returns:a string with the nickname, or None if not found. Do not free the returned value.
Return type:str

Gets the nickname string for the Mbim.StatusError specified at val.

Mbim.status_error_quark()
Return type:int
Mbim.stk_pac_profile_get_string(val)
Parameters:val (Mbim.StkPacProfile) – a Mbim.StkPacProfile.
Returns:a string with the nickname, or None if not found. Do not free the returned value.
Return type:str

Gets the nickname string for the Mbim.StkPacProfile specified at val.

New in version 1.4.

Mbim.stk_pac_type_get_string(val)
Parameters:val (Mbim.StkPacType) – a Mbim.StkPacType.
Returns:a string with the nickname, or None if not found. Do not free the returned value.
Return type:str

Gets the nickname string for the Mbim.StkPacType specified at val.

New in version 1.4.

Mbim.subscriber_ready_state_get_string(val)
Parameters:val (Mbim.SubscriberReadyState) – a Mbim.SubscriberReadyState.
Returns:a string with the nickname, or None if not found. Do not free the returned value.
Return type:str

Gets the nickname string for the Mbim.SubscriberReadyState specified at val.

New in version 1.0.

Mbim.unregister_custom_service(id)
Parameters:id (int) – ID of the service to unregister.MbimUuid structure corresponding to service
Returns:True if service has been unregistered, False otherwise.
Return type:bool

Unregister a custom service.

New in version 1.10.

Mbim.ussd_action_get_string(val)
Parameters:val (Mbim.UssdAction) – a Mbim.UssdAction.
Returns:a string with the nickname, or None if not found. Do not free the returned value.
Return type:str

Gets the nickname string for the Mbim.UssdAction specified at val.

New in version 1.4.

Mbim.ussd_response_get_string(val)
Parameters:val (Mbim.UssdResponse) – a Mbim.UssdResponse.
Returns:a string with the nickname, or None if not found. Do not free the returned value.
Return type:str

Gets the nickname string for the Mbim.UssdResponse specified at val.

New in version 1.4.

Mbim.ussd_session_state_get_string(val)
Parameters:val (Mbim.UssdSessionState) – a Mbim.UssdSessionState.
Returns:a string with the nickname, or None if not found. Do not free the returned value.
Return type:str

Gets the nickname string for the Mbim.UssdSessionState specified at val.

New in version 1.4.

Mbim.utils_get_traces_enabled()
Returns:True if traces are enabled, False otherwise.
Return type:bool

Checks whether MBIM message traces are currently enabled.

New in version 1.0.

Mbim.utils_set_traces_enabled(enabled)
Parameters:enabled (bool) – True to enable traces, False to disable them.

Sets whether MBIM message traces are enabled or disabled.

New in version 1.0.

Mbim.uuid_from_context_type(context_type)
Parameters:context_type (Mbim.ContextType) – a Mbim.ContextType.
Returns:a Mbim.Uuid.
Return type:Mbim.Uuid

Get the UUID corresponding to context_type.

New in version 1.0.

Mbim.uuid_from_printable(str, uuid)
Parameters:
Returns:

True if uuid was correctly set, False otherwise.

Return type:

bool

Fills in uuid from the printable representation give in str.

Only ccepts str written with dashes separating items, e.g.: a289cc33-bcbb-8b4f-b6b0-133ec2aae6df

New in version 1.8.

Mbim.uuid_from_service(service)
Parameters:service (Mbim.Service) – a Mbim.Service.
Returns:a Mbim.Uuid.
Return type:Mbim.Uuid

Get the UUID corresponding to service.

The service needs to be either a generic one (including Mbim.Service.INVALID) or a custom registered one.

New in version 1.0.

Mbim.visible_providers_action_get_string(val)
Parameters:val (Mbim.VisibleProvidersAction) – a Mbim.VisibleProvidersAction.
Returns:a string with the nickname, or None if not found. Do not free the returned value.
Return type:str

Gets the nickname string for the Mbim.VisibleProvidersAction specified at val.

New in version 1.2.

Mbim.voice_call_state_get_string(val)
Parameters:val (Mbim.VoiceCallState) – a Mbim.VoiceCallState.
Returns:a string with the nickname, or None if not found. Do not free the returned value.
Return type:str

Gets the nickname string for the Mbim.VoiceCallState specified at val.

New in version 1.0.

Mbim.voice_class_get_string(val)
Parameters:val (Mbim.VoiceClass) – a Mbim.VoiceClass.
Returns:a string with the nickname, or None if not found. Do not free the returned value.
Return type:str

Gets the nickname string for the Mbim.VoiceClass specified at val.

New in version 1.0.