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.
gchar *
mm_object_dup_path (MMObject *self
);
Gets a copy of the DBus path of the MMObject object.
MMModem *
mm_object_peek_modem (MMObject *self
);
Like mm_object_get_modem()
but doesn't increase the reference count on the returned object.
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]
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.
A MMModem3gpp or NULL
if self
does not implement the interface. Do not free the returned object, it is owned by self
.
[transfer none]
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]
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.
A MMModem3gppUssd or NULL
if self
does not implement the interface. Do not free the returned object, it is owned by self
.
[transfer none]
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]
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.
A MMModemCdma or NULL
if self
does not implement the interface. Do not free the returned object, it is owned by self
.
[transfer none]
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]
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.
A MMModemLocation or NULL
if self
does not implement the interface. Do not free the returned object, it is owned by self
.
[transfer none]
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]
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.
A MMModemMessaging or NULL
if self
does not implement the interface. Do not free the returned object, it is owned by self
.
[transfer none]
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]
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.
A MMModemTime or NULL
if self
does not implement the interface. Do not free the returned object, it is owned by self
.
[transfer none]
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]
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.
A MMModemFirmware or NULL
if self
does not implement the interface. Do not free the returned object, it is owned by self
.
[transfer none]
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]
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.
A MMModemOma or NULL
if self
does not implement the interface. Do not free the returned object, it is owned by self
.
[transfer none]
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]
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.
A MMModemSimple or NULL
if self
does not implement the interface. Do not free the returned object, it is owned by self
.
[transfer none]
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]
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.
A MMModemSignal or NULL
if self
does not implement the interface. Do not free the returned object, it is owned by self
.
[transfer none]
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]
struct MMObject;
The MMObject structure contains private data and should only be accessed using the provided API.