| Top |
MMModem implements GDBusInterface, GInitable, GAsyncInitable and MmGdbusModem.
The MMModem is an object providing access to the methods, signals and properties of the Modem interface.
When the modem is exposed and available in the bus, it is ensured that at least this interface is also available.
const gchar *
mm_modem_get_path (MMModem *self);
Gets the DBus path of the MMObject which implements this interface.
[skip]
The DBus path of the MMObject object. Do not free the returned value, it belongs to self
.
[transfer none]
gchar *
mm_modem_dup_path (MMModem *self);
Gets a copy of the DBus path of the MMObject object which implements this interface.
MMModemState
mm_modem_get_state (MMModem *self);
Gets the overall state of the MMModem.
MMModemStateFailedReason
mm_modem_get_state_failed_reason (MMModem *self);
Gets the reason specifying why the modem is in MM_MODEM_STATE_FAILED state.
MMModemPowerState
mm_modem_get_power_state (MMModem *self);
Gets the power state of the MMModem.
gboolean mm_modem_peek_supported_capabilities (MMModem *self,const MMModemCapability **capabilities,guint *n_capabilities);
Gets the list of combinations of generic families of access technologies supported by this MMModem.
self |
A MMModem. |
|
capabilities |
Return location for the array of MMModemCapability values. Do not free the returned array, it is owned by |
[out][array length=n_capabilities] |
n_capabilities |
Return location for the number of values in |
[out] |
gboolean mm_modem_get_supported_capabilities (MMModem *self,MMModemCapability **capabilities,guint *n_capabilities);
Gets the list of combinations of generic families of access technologies supported by this MMModem.
MMModemCapability
mm_modem_get_current_capabilities (MMModem *self);
Gets the list of generic families of access technologies supported by this MMModem without a firmware reload or reinitialization.
const gchar *
mm_modem_get_manufacturer (MMModem *self);
Gets the equipment manufacturer, as reported by this MMModem.
self was constructed. Use mm_modem_dup_manufacturer() if on another
thread.The equipment manufacturer, or NULL if none available. Do not free the returned value, it belongs to self
.
[transfer none]
gchar *
mm_modem_dup_manufacturer (MMModem *self);
Gets a copy of the equipment manufacturer, as reported by this MMModem.
const gchar *
mm_modem_get_model (MMModem *self);
Gets the equipment model, as reported by this MMModem.
self was constructed. Use mm_modem_dup_model() if on another
thread.The equipment model, or NULL if none available. Do not free the returned value, it belongs to self
.
[transfer none]
gchar *
mm_modem_dup_model (MMModem *self);
Gets a copy of the equipment model, as reported by this MMModem.
const gchar *
mm_modem_get_revision (MMModem *self);
Gets the equipment revision, as reported by this MMModem.
self was constructed. Use mm_modem_dup_revision() if on another
thread.The equipment revision, or NULL if none available. Do not free the returned value, it belongs to self
.
[transfer none]
gchar *
mm_modem_dup_revision (MMModem *self);
Gets a copy of the equipment revision, as reported by this MMModem.
const gchar *
mm_modem_get_hardware_revision (MMModem *self);
Gets the equipment hardware revision, as reported by this MMModem.
self was constructed. Use mm_modem_dup_hardware_revision() if on another
thread.The equipment hardware revision, or NULL if none available. Do not free the returned value, it belongs to self
.
[transfer none]
gchar *
mm_modem_dup_hardware_revision (MMModem *self);
Gets a copy of the equipment hardware revision, as reported by this MMModem.
const gchar * const *
mm_modem_get_drivers (MMModem *self);
Gets the Operating System device drivers handling communication with the modem hardware.
self was constructed. Use mm_modem_dup_drivers() if on another
thread.The drivers, or NULL if none available. Do not free the returned value, it belongs to self
.
[transfer none]
gchar **
mm_modem_dup_drivers (MMModem *self);
Gets a copy of the Operating System device driver handling communication with the modem hardware.
The drivers, or NULL if none available. The returned value should be freed with g_strfreev().
[transfer full]
const gchar *
mm_modem_get_plugin (MMModem *self);
Gets the name of the plugin handling this MMModem.
self was constructed. Use mm_modem_dup_plugin() if on another
thread.The name of the plugin, or NULL if none available. Do not free the returned value, it belongs to self
.
[transfer none]
gchar *
mm_modem_dup_plugin (MMModem *self);
Gets a copy of the name of the plugin handling this MMModem.
const gchar *
mm_modem_get_primary_port (MMModem *self);
Gets the name of the primary port controlling this MMModem.
self was constructed. Use mm_modem_dup_primary_port() if on another
thread.gchar *
mm_modem_dup_primary_port (MMModem *self);
Gets a copy of the name of the primary port controlling this MMModem.
The name of the primary port. The returned value should be freed with g_free().
[transfer full]
gboolean mm_modem_peek_ports (MMModem *self,const MMModemPortInfo **ports,guint *n_ports);
Gets the list of ports in the modem.
self |
A MMModem. |
|
ports |
Return location for the array of MMModemPortInfo values. Do not free the returned value, it is owned by |
[out][array length=n_ports][transfer none] |
n_ports |
Return location for the number of values in |
[out] |
gboolean mm_modem_get_ports (MMModem *self,MMModemPortInfo **ports,guint *n_ports);
Gets the list of ports in the modem.
self |
A MMModem. |
|
ports |
Return location for the array of MMModemPortInfo values. The returned array should be freed with |
[out][array length=n_ports] |
n_ports |
Return location for the number of values in |
[out] |
const gchar *
mm_modem_get_device (MMModem *self);
Gets the physical modem device reference (ie, USB, PCI, PCMCIA device), which may be dependent upon the operating system.
self was constructed. Use mm_modem_dup_device() if on another
thread.The device, or NULL if none available. Do not free the returned value, it belongs to self
.
[transfer none]
gchar *
mm_modem_dup_device (MMModem *self);
Gets a copy of the physical modem device reference (ie, USB, PCI, PCMCIA device), which may be dependent upon the operating system.
const gchar *
mm_modem_get_equipment_identifier (MMModem *self);
Gets the identity of the MMModem.
This will be the IMEI number for GSM devices and the hex-format ESN/MEID for CDMA devices.
self was constructed. Use mm_modem_dup_equipment_identifier() if on another
thread.The equipment identifier, or NULL if none available. Do not free the returned value, it belongs to self
.
[transfer none]
gchar *
mm_modem_dup_equipment_identifier (MMModem *self);
Gets a copy of the identity of the MMModem.
This will be the IMEI number for GSM devices and the hex-format ESN/MEID for CDMA devices.
const gchar *
mm_modem_get_device_identifier (MMModem *self);
Gets a best-effort device identifier based on various device information like model name, firmware revision, USB/PCI/PCMCIA IDs, and other properties.
This ID is not guaranteed to be unique and may be shared between identical devices with the same firmware, but is intended to be "unique enough" for use as a casual device identifier for various user experience operations.
This is not the device's IMEI or ESN since those may not be available before unlocking the device via a PIN.
self was constructed. Use mm_modem_dup_device_identifier() if on another
thread.The device identifier, or NULL if none available. Do not free the returned value, it belongs to self
.
[transfer none]
gchar *
mm_modem_dup_device_identifier (MMModem *self);
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.
This ID is not guaranteed to be unique and may be shared between identical devices with the same firmware, but is intended to be "unique enough" for use as a casual device identifier for various user experience operations.
This is not the device's IMEI or ESN since those may not be available before unlocking the device via a PIN.
MMModemLock
mm_modem_get_unlock_required (MMModem *self);
Gets current lock state of the MMModem.
MMUnlockRetries *
mm_modem_peek_unlock_retries (MMModem *self);
Gets a MMUnlockRetries object, which provides, for each
MMModemLock handled by the modem, thenumber of PIN tries remaining before the code becomes blocked (requiring a PUK) or permanently blocked.
self was constructed. Use mm_modem_get_unlock_retries() if on another
thread.MMUnlockRetries *
mm_modem_get_unlock_retries (MMModem *self);
Gets a MMUnlockRetries object, which provides, for each
MMModemLock handled by the modem, thenumber of PIN tries remaining before the code becomes blocked (requiring a PUK) or permanently blocked.
self are not updated when the values in the
interface change. Instead, the client is expected to call
mm_modem_get_unlock_retries() again to get a new MMUnlockRetries with the
new values.A MMUnlockRetries that must be freed with g_object_unref() or NULL if unknown.
[transfer full]
guint
mm_modem_get_max_bearers (MMModem *self);
Gets the maximum number of defined packet data bearers this MMModem supports.
This is not the number of active/connected bearers the modem supports, but simply the number of bearers that may be defined at any given time. For example, POTS and CDMA2000-only devices support only one bearer, while GSM/UMTS devices typically support three or more, and any LTE-capable device (whether LTE-only, GSM/UMTS-capable, and/or CDMA2000-capable) also typically support three or more.
guint
mm_modem_get_max_active_bearers (MMModem *self);
Gets the maximum number of active packet data bearers this MMModem supports.
POTS and CDMA2000-only devices support one active bearer, while GSM/UMTS and LTE-capable devices (including LTE/CDMA devices) typically support at least two active bearers.
const gchar * const *
mm_modem_get_bearer_paths (MMModem *self);
Gets the DBus paths of the MMBearer handled in this MMModem.
self was constructed. Use mm_modem_dup_bearer_paths() if on another
thread.gchar **
mm_modem_dup_bearer_paths (MMModem *self);
Gets a copy of the DBus paths of the MMBearer handled in this MMModem.
The DBus paths of the MMBearer handled in this MMModem, or NULL if none available. The returned value should be freed with g_strfreev().
[transfer full]
const gchar *const *
mm_modem_get_own_numbers (MMModem *self);
Gets the list of numbers (e.g. MSISDN in 3GPP) being currently handled by this modem.
self was constructed. Use mm_modem_dup_own_numbers() if on another
thread.[skip]
The list of own numbers or NULL if none available. Do not free the returned value, it belongs to self
.
[transfer none]
gchar **
mm_modem_dup_own_numbers (MMModem *self);
Gets a copy of the list of numbers (e.g. MSISDN in 3GPP) being currently handled by this modem.
The list of own numbers or NULL if none is available. The returned value should be freed with g_strfreev().
[transfer full]
gboolean mm_modem_peek_supported_modes (MMModem *self,const MMModemModeCombination **modes,guint *n_modes);
Gets the list of supported mode combinations.
self |
A MMModem. |
|
modes |
Return location for the array of MMModemModeCombination values. Do not free the returned array, it is owned by |
[out][array length=n_modes] |
n_modes |
Return location for the number of values in |
[out] |
gboolean mm_modem_get_supported_modes (MMModem *self,MMModemModeCombination **modes,guint *n_modes);
Gets the list of supported mode combinations.
self |
A MMModem. |
|
modes |
Return location for the array of MMModemModeCombination structs. The returned array should be freed with |
[out][array length=n_modes] |
n_modes |
Return location for the number of values in |
[out] |
gboolean mm_modem_get_current_modes (MMModem *self,MMModemMode *allowed,MMModemMode *preferred);
Gets the list of modes specifying the access technologies (eg 2G/3G/4G) the MMModem is currently allowed to use when connecting to a network, as well as the preferred one, if any.
self |
A MMModem. |
|
allowed |
Return location for a bitmask of MMModemMode values. |
[out] |
preferred |
Return location for a MMModemMode value. |
[out] |
gboolean mm_modem_peek_supported_bands (MMModem *self,const MMModemBand **bands,guint *n_bands);
Gets the list of radio frequency and technology bands supported by the MMModem.
For POTS devices, only MM_MODEM_BAND_ANY will be returned in bands
.
self |
A MMModem. |
|
bands |
Return location for the array of MMModemBand values. Do not free the returned array, it is owned by |
[out][array length=n_bands] |
n_bands |
Return location for the number of values in |
[out] |