- public async string command (string cmd, uint timeout, Cancellable? cancellable) throws Error
Asynchronously runs an AT command in the modem.
- public string command_sync (string cmd, uint timeout, Cancellable? cancellable = null) throws Error
Synchronously runs an AT command in the modem.
- public async Bearer create_bearer (BearerProperties properties, Cancellable? cancellable) throws Error
Asynchronously creates a new packet data bearer in the
Modem.
- public Bearer create_bearer_sync (BearerProperties properties, Cancellable? cancellable = null) throws Error
Synchronously creates a new packet data bearer in the
Modem.
- public async bool delete_bearer (string bearer, Cancellable? cancellable) throws Error
Asynchronously deletes a given bearer from the
Modem.
- public bool delete_bearer_sync (string bearer, Cancellable? cancellable = null) throws Error
Synchronously deletes a given bearer from the
Modem.
- public async bool disable (Cancellable? cancellable) throws Error
Asynchronously tries to disable the Modem.
- public bool disable_sync (Cancellable? cancellable = null) throws Error
Synchronously tries to disable the Modem.
- public string[] dup_bearer_paths ()
Gets a copy of the DBus paths of the
Bearer handled in this Modem.
- public string dup_carrier_configuration ()
Gets a copy of the carrier-specific configuration (MCFG) in use, as
reported by this Modem.
- public string dup_carrier_configuration_revision ()
Gets a copy of the carrier-specific configuration revision in use, as
reported by this Modem.
- public string dup_device ()
Gets a copy of the physical modem device reference (ie, USB, PCI,
PCMCIA device), which may be dependent upon the operating system.
- public string dup_device_identifier ()
Gets a copy of a best-effort device identifier based on various device
information like model name, firmware revision, USB/PCI/PCMCIA IDs, and other properties.
- public string[] dup_drivers ()
Gets a copy of the Operating System device driver handling
communication with the modem hardware.
- public string dup_equipment_identifier ()
Gets a copy of the identity of the Modem.
- public string dup_hardware_revision ()
Gets a copy of the equipment hardware revision, as reported by this
Modem.
- public string dup_manufacturer ()
Gets a copy of the equipment manufacturer, as reported by this
Modem.
- public string dup_model ()
Gets a copy of the equipment model, as reported by this
Modem.
- public string[] dup_own_numbers ()
Gets a copy of the list of numbers (e.g. MSISDN in 3GPP) being
currently handled by this modem.
- public string dup_path ()
Gets a copy of the DBus path of the
Object object which implements this interface.
- public string dup_plugin ()
Gets a copy of the name of the plugin handling this
Modem.
- public string dup_primary_port ()
Gets a copy of the name of the primary port controlling this
Modem.
- public string dup_revision ()
Gets a copy of the equipment revision, as reported by this
Modem.
- public string dup_sim_path ()
Gets a copy of the DBus path of the
Sim handled in this Modem.
- public string[] dup_sim_slot_paths ()
Gets a copy of the DBus paths of the
Sim objects available in the different SIM slots handled in this Modem
.
- public async bool enable (Cancellable? cancellable) throws Error
Asynchronously tries to enable the Modem.
- public bool enable_sync (Cancellable? cancellable = null) throws Error
Synchronously tries to enable the Modem.
- public async bool factory_reset (string code, Cancellable? cancellable) throws Error
Asynchronously clears the modem's configuration (including persistent
configuration and state), and returns the device to a factory-default state.
- public bool factory_reset_sync (string code, Cancellable? cancellable = null) throws Error
Synchronously clears the modem's configuration (including persistent
configuration and state), and returns the device to a factory-default state.
- public ModemAccessTechnology get_access_technologies ()
Gets the current network access technology used by the
Modem to communicate with the network.
- public unowned string[] get_bearer_paths ()
Gets the DBus paths of the
Bearer handled in this Modem.
- public unowned string get_carrier_configuration ()
Gets the carrier-specific configuration (MCFG) in use, as reported by
this Modem.
- public unowned string get_carrier_configuration_revision ()
Gets the carrier-specific configuration revision in use, as reported
by this Modem.
- public async List<CellInfo> get_cell_info (Cancellable? cancellable) throws Error
Asynchronously requests to get info about serving and neighboring
cells.
- public List<CellInfo> get_cell_info_sync (Cancellable? cancellable = null) throws Error
Synchronously requests to get info about serving and neighboring
cells.
- public bool get_current_bands (out ModemBand[] bands)
Gets the list of radio frequency and technology bands the
Modem is currently using when connecting to a network.
- public ModemCapability get_current_capabilities ()
Gets the list of generic families of access technologies supported by
this Modem without a firmware reload or reinitialization.
- public bool get_current_modes (out ModemMode allowed, out ModemMode preferred)
Gets the list of modes specifying the access technologies (eg
2G/3G/4G) the Modem is currently allowed to use when connecting to a network, as well as the preferred one,
if any.
- public unowned string get_device ()
Gets the physical modem device reference (ie, USB, PCI, PCMCIA
device), which may be dependent upon the operating system.
- public unowned string get_device_identifier ()
Gets a best-effort device identifier based on various device
information like model name, firmware revision, USB/PCI/PCMCIA IDs, and other properties.
- public unowned string[] get_drivers ()
Gets the Operating System device drivers handling communication with
the modem hardware.
- public unowned string get_equipment_identifier ()
Gets the identity of the Modem.
- public unowned string get_hardware_revision ()
Gets the equipment hardware revision, as reported by this
Modem.
- public unowned string get_manufacturer ()
Gets the equipment manufacturer, as reported by this
Modem.
- public uint get_max_active_bearers ()
Gets the maximum number of active packet data bearers this
Modem supports without enabling multiplexing support.
- public uint get_max_active_multiplexed_bearers ()
Gets the maximum number of active packet data bearers this
Modem supports after enabling multiplexing support on one single network interface.
- public uint get_max_bearers ()
Gets the maximum number of defined packet data bearers this
Modem supports.
- public unowned string get_model ()
Gets the equipment model, as reported by this
Modem.
- public unowned string get_plugin ()
Gets the name of the plugin handling this Modem
.
- public bool get_ports (out ModemPortInfo[] ports)
Gets the list of ports in the modem.
- public ModemPowerState get_power_state ()
Gets the power state of the Modem.
- public unowned string get_primary_port ()
Gets the name of the primary port controlling this
Modem.
- public uint get_primary_sim_slot ()
Gets the SIM slot number of the primary active SIM.
- public unowned string get_revision ()
Gets the equipment revision, as reported by this
Modem.
- public uint get_signal_quality (out bool recent)
Gets the signal quality value in percent (0 - 100) of the dominant
access technology the Modem is using to communicate with the network.
- public async Sim get_sim (Cancellable? cancellable) throws Error
Asynchronously gets the Sim
object managed by this Modem.
- public unowned string[] get_sim_slot_paths ()
Gets the DBus paths of the Sim
objects available in the different SIM slots handled in this Modem.
- public Sim get_sim_sync (Cancellable? cancellable = null) throws Error
Synchronously gets the Sim
object managed by this Modem.
- public ModemState get_state ()
Gets the overall state of the Modem.
- public ModemStateFailedReason get_state_failed_reason ()
Gets the reason specifying why the modem is in
FAILED state.
- public bool get_supported_bands (out ModemBand[] bands)
Gets the list of radio frequency and technology bands supported by the
Modem.
- public bool get_supported_capabilities (out ModemCapability[] capabilities)
Gets the list of combinations of generic families of access
technologies supported by this Modem.
- public BearerIpFamily get_supported_ip_families ()
Gets the list of supported IP families.
- public bool get_supported_modes (out ModemModeCombination[] modes)
Gets the list of supported mode combinations.
- public ModemLock get_unlock_required ()
Gets current lock state of the Modem.
- public UnlockRetries get_unlock_retries ()
Gets a UnlockRetries
object, which provides, for each MMModemLock handled by the modem, the number of PIN tries remaining before the code becomes
blocked (requiring a PUK) or permanently blocked.
- public async List<Bearer> list_bearers (Cancellable? cancellable) throws Error
Asynchronously lists the packet data bearers in the
Modem.
- public List<Bearer> list_bearers_sync (Cancellable? cancellable = null) throws Error
Synchronously lists the packet data bearers in the
Modem.
- public async GenericArray<Sim> list_sim_slots (Cancellable? cancellable) throws Error
Asynchronously lists the SIM slots available in the
Modem.
- public GenericArray<Sim> list_sim_slots_sync (Cancellable? cancellable = null) throws Error
Synchronously lists the SIM slots available in the
Modem.
- public bool peek_current_bands (out ModemBand[] bands)
Gets the list of radio frequency and technology bands the
Modem is currently using when connecting to a network.
- public bool peek_ports (out unowned ModemPortInfo[] ports)
Gets the list of ports in the modem.
- public bool peek_supported_bands (out ModemBand[] bands)
Gets the list of radio frequency and technology bands supported by the
Modem.
- public bool peek_supported_capabilities (out ModemCapability[] capabilities)
Gets the list of combinations of generic families of access
technologies supported by this Modem.
- public bool peek_supported_modes (out ModemModeCombination[] modes)
Gets the list of supported mode combinations.
- public unowned UnlockRetries peek_unlock_retries ()
Gets a UnlockRetries
object, which provides, for each MMModemLock handled by the modem, the number of PIN tries remaining before the code becomes
blocked (requiring a PUK) or permanently blocked.
- public async bool reset (Cancellable? cancellable) throws Error
Asynchronously clears non-persistent configuration and state, and
returns the device to a newly-powered-on state.
- public bool reset_sync (Cancellable? cancellable = null) throws Error
Synchronously clears non-persistent configuration and state, and
returns the device to a newly-powered-on state.
- public async bool set_current_bands (ModemBand bands, uint n_bands, Cancellable? cancellable) throws Error
Asynchronously sets the radio frequency and technology bands the
device is currently allowed to use when connecting to a network.
- public bool set_current_bands_sync (ModemBand bands, uint n_bands, Cancellable? cancellable = null) throws Error
Synchronously sets the radio frequency and technology bands the device
is currently allowed to use when connecting to a network.
- public async bool set_current_capabilities (ModemCapability capabilities, Cancellable? cancellable) throws Error
Asynchronously sets the capabilities of the device.
- public bool set_current_capabilities_sync (ModemCapability capabilities, Cancellable? cancellable = null) throws Error
Synchronously sets the capabilities of the device.
- public async bool set_current_modes (ModemMode modes, ModemMode preferred, Cancellable? cancellable) throws Error
Asynchronously sets the access technologies (e.g. 2G/3G/4G preference)
the device is currently allowed to use when connecting to a network.
- public bool set_current_modes_sync (ModemMode modes, ModemMode preferred, Cancellable? cancellable = null) throws Error
Synchronously sets the access technologies (e.g. 2G/3G/4G preference)
the device is currently allowed to use when connecting to a network.
- public async bool set_power_state (ModemPowerState state, Cancellable? cancellable) throws Error
Asynchronously sets the power state of the device.
- public bool set_power_state_sync (ModemPowerState state, Cancellable? cancellable = null) throws Error
Synchronously sets the power state of the device.
- public async bool set_primary_sim_slot (uint sim_slot, Cancellable? cancellable) throws Error
Asynchronously requests to select which SIM slot to be considered as
primary.
- public bool set_primary_sim_slot_sync (uint sim_slot, Cancellable? cancellable = null) throws Error
Synchronously requests to select which SIM slot to be considered as
primary.