Top |
The MMObject is a generic object which represents any kind of modem exposed in ModemManager, and allows accessing the exported interfaces one by one.
When this object is available, it is ensured that at least the Modem interface is also available.
const gchar *
mm_object_get_path (MMObject *self
);
Gets the DBus path of the MMObject object.
[skip]
Since: 1.0
gchar *
mm_object_dup_path (MMObject *self
);
Gets a copy of the DBus path of the MMObject object.
The DBus path of the MMObject. The returned value
should be freed with g_free()
.
[transfer full]
Since: 1.0
MMModem *
mm_object_peek_modem (MMObject *self
);
Like mm_object_get_modem()
but doesn't increase the reference count on the
returned object.
[skip]
A MMModem or NULL
if self
does not implement
the interface. Do not free the returned object, it is owned by self
.
[transfer none]
Since: 1.0
MMModem *
mm_object_get_modem (MMObject *self
);
Gets the MMModem instance for the D-Bus interface
org.freedesktop.ModemManager1.Modem on self
, if any.
A MMModem that must be freed with g_object_unref()
or NULL
if self
does not implement the interface.
[transfer full]
Since: 1.0
MMModem3gpp *
mm_object_peek_modem_3gpp (MMObject *self
);
Like mm_object_get_modem_3gpp()
but doesn't increase the reference count on
the returned object.
[skip]
A MMModem3gpp or NULL
if self
does not implement
the interface. Do not free the returned object, it is owned by self
.
[transfer none]
Since: 1.0
MMModem3gpp *
mm_object_get_modem_3gpp (MMObject *self
);
Gets the MMModem3gpp instance for the D-Bus interface
org.freedesktop.ModemManager1.Modem.Modem3gpp on self
, if any.
A MMModem3gpp that must be freed with
g_object_unref()
or NULL
if self
does not implement the interface.
[transfer full]
Since: 1.0
MMModem3gppProfileManager *
mm_object_peek_modem_3gpp_profile_manager
(MMObject *self
);
Like mm_object_get_modem_3gpp_profile_manager()
but doesn't increase the reference count
on the returned object.
[skip]
A MMModem3gppProfileManager or NULL
if self
does not
implement the interface. Do not free the returned object, it is owned by
self
.
[transfer none]
Since: 1.18
MMModem3gppProfileManager *
mm_object_get_modem_3gpp_profile_manager
(MMObject *self
);
Gets the MMModem3gppProfileManager instance for the D-Bus interface
org.freedesktop.ModemManager1.Modem.Modem3gpp-ProfileManager on self
, if any.
A MMModem3gppProfileManager that must be freed with
g_object_unref()
or NULL
if self
does not implement the interface.
[transfer full]
Since: 1.18
MMModem3gppUssd *
mm_object_peek_modem_3gpp_ussd (MMObject *self
);
Like mm_object_get_modem_3gpp_ussd()
but doesn't increase the reference count
on the returned object.
[skip]
A MMModem3gppUssd or NULL
if self
does not
implement the interface. Do not free the returned object, it is owned by
self
.
[transfer none]
Since: 1.0
MMModem3gppUssd *
mm_object_get_modem_3gpp_ussd (MMObject *self
);
Gets the MMModem3gppUssd instance for the D-Bus interface
org.freedesktop.ModemManager1.Modem.Modem3gpp-Ussd on self
, if any.
A MMModem3gppUssd that must be freed with
g_object_unref()
or NULL
if self
does not implement the interface.
[transfer full]
Since: 1.0
MMModemCdma *
mm_object_peek_modem_cdma (MMObject *self
);
Like mm_object_get_modem_cdma()
but doesn't increase the reference count on
the returned object.
[skip]
A MMModemCdma or NULL
if self
does not implement
the interface. Do not free the returned object, it is owned by self
.
[transfer none]
Since: 1.0
MMModemCdma *
mm_object_get_modem_cdma (MMObject *self
);
Gets the MMModemCdma instance for the D-Bus interface
org.freedesktop.ModemManager1.Modem.ModemCdma on self
, if any.
A MMModemCdma that must be freed with
g_object_unref()
or NULL
if self
does not implement the interface.
[transfer full]
Since: 1.0
MMModemLocation *
mm_object_peek_modem_location (MMObject *self
);
Like mm_object_get_modem_location()
but doesn't increase the reference count
on the returned object.
[skip]
A MMModemLocation or NULL
if self
does not
implement the interface. Do not free the returned object, it is owned by
self
.
[transfer none]
Since: 1.0
MMModemLocation *
mm_object_get_modem_location (MMObject *self
);
Gets the MMModemLocation instance for the D-Bus interface
org.freedesktop.ModemManager1.Modem.Modemlocation on self
, if any.
A MMModemLocation that must be freed with
g_object_unref()
or NULL
if self
does not implement the interface.
[transfer full]
Since: 1.0
MMModemMessaging *
mm_object_peek_modem_messaging (MMObject *self
);
Like mm_object_get_modem_messaging()
but doesn't increase the reference count
on the returned object.
[skip]
A MMModemMessaging or NULL
if self
does not
implement the interface. Do not free the returned object, it is owned by
self
.
[transfer none]
Since: 1.0
MMModemMessaging *
mm_object_get_modem_messaging (MMObject *self
);
Gets the MMModemMessaging instance for the D-Bus interface
org.freedesktop.ModemManager1.Modem.Modemmessaging on self
, if any.
A MMModemMessaging that must be freed with
g_object_unref()
or NULL
if self
does not implement the interface.
[transfer full]
Since: 1.0
MMModemTime *
mm_object_peek_modem_time (MMObject *self
);
Like mm_object_get_modem_time()
but doesn't increase the reference count on
the returned object.
[skip]
A MMModemTime or NULL
if self
does not implement
the interface. Do not free the returned object, it is owned by self
.
[transfer none]
Since: 1.0
MMModemTime *
mm_object_get_modem_time (MMObject *self
);
Gets the MMModemTime instance for the D-Bus interface
org.freedesktop.ModemManager1.Modem.Time on self
, if any.
A MMModemTime that must be freed with
g_object_unref()
or NULL
if self
does not implement the interface.
[transfer full]
Since: 1.0
MMModemFirmware *
mm_object_peek_modem_firmware (MMObject *self
);
Like mm_object_get_modem_firmware()
but doesn't increase the reference count
on the returned object.
[skip]
A MMModemFirmware or NULL
if self
does not
implement the interface. Do not free the returned object, it is owned by
self
.
[transfer none]
Since: 1.0
MMModemFirmware *
mm_object_get_modem_firmware (MMObject *self
);
Gets the MMModemFirmware instance for the D-Bus interface
org.freedesktop.ModemManager1.Modem.Firmware on self
, if any.
A MMModemFirmware that must be freed with
g_object_unref()
or NULL
if self
does not implement the interface.
[transfer full]
Since: 1.0
MMModemOma *
mm_object_peek_modem_oma (MMObject *self
);
Like mm_object_get_modem_oma()
but doesn't increase the reference count on
the returned object.
[skip]
A MMModemOma or NULL
if self
does not implement
the interface. Do not free the returned object, it is owned by self
.
[transfer none]
Since: 1.2
MMModemOma *
mm_object_get_modem_oma (MMObject *self
);
Gets the MMModemOma instance for the D-Bus interface
org.freedesktop.ModemManager1.Modem.Oma on self
, if any.
A MMModemOma that must be freed with
g_object_unref()
or NULL
if self
does not implement the interface.
[transfer full]
Since: 1.2
MMModemSimple *
mm_object_peek_modem_simple (MMObject *self
);
Like mm_object_get_modem_simple()
but doesn't increase the reference count on
the returned object.
[skip]
A MMModemSimple or NULL
if self
does not
implement the interface. Do not free the returned object, it is owned by
self
.
[transfer none]
Since: 1.0
MMModemSimple *
mm_object_get_modem_simple (MMObject *self
);
Gets the MMModemSimple instance for the D-Bus interface
org.freedesktop.ModemManager1.Modem.Modemsimple on self
, if any.
A MMModemSimple that must be freed with
g_object_unref()
or NULL
if self
does not implement the interface.
[transfer full]
Since: 1.0
MMModemSignal *
mm_object_peek_modem_signal (MMObject *self
);
Like mm_object_get_modem_signal()
but doesn't increase the reference count on
the returned object.
[skip]
A MMModemSignal or NULL
if self
does not
implement the interface. Do not free the returned object, it is owned by
self
.
[transfer none]
Since: 1.2
MMModemSignal *
mm_object_get_modem_signal (MMObject *self
);
Gets the MMModemSignal instance for the D-Bus interface
org.freedesktop.ModemManager1.Modem.Signal on self
, if any.
A MMModemSignal that must be freed with
g_object_unref()
or NULL
if self
does not implement the interface.
[transfer full]
Since: 1.2
MMModemVoice *
mm_object_peek_modem_voice (MMObject *self
);
Like mm_object_get_modem_voice()
but doesn't increase the reference count on
the returned object.
[skip]
A MMModemVoice or NULL
if self
does not
implement the interface. Do not free the returned object, it is owned by
self
.
[transfer none]
Since: 1.6
MMModemVoice *
mm_object_get_modem_voice (MMObject *self
);
Gets the MMModemVoice instance for the D-Bus interface
org.freedesktop.ModemManager1.Modem.Modemvoice on self
, if any.
A MMModemVoice that must be freed with
g_object_unref()
or NULL
if self
does not implement the interface.
[transfer full]
Since: 1.6
MMModemSar *
mm_object_peek_modem_sar (MMObject *self
);
Like mm_object_get_modem_sar()
but doesn't increase the reference count
on the returned object.
[skip]
A MMModemSar or NULL
if self
does not
implement the interface. Do not free the returned object, it is owned by
self
.
[transfer none]
Since: 1.20
MMModemSar *
mm_object_get_modem_sar (MMObject *self
);
Gets the MMModemSar instance for the D-Bus interface
org.freedesktop.ModemManager1.Modem.Sar on self
, if any.
A MMModemSar that must be freed with
g_object_unref()
or NULL
if self
does not implement the interface.
[transfer full]
Since: 1.20
struct MMObject;
The MMObject structure contains private data and should only be accessed using the provided API.