Top |
MMModemSar implements GDBusInterface, GInitable, GAsyncInitable and MmGdbusModemSar.
The MMModemSar is an object providing access to the methods, signals and properties of the SAR interface.
The SAR interface is exposed whenever a modem has SAR capabilities.
const gchar *
mm_modem_sar_get_path (MMModemSar *self
);
Gets the DBus path of the MMObject which implements this interface.
Since: 1.20
gchar *
mm_modem_sar_dup_path (MMModemSar *self
);
Gets a copy of the DBus path of the MMObject object which implements this interface.
The DBus path of the MMObject. The returned value
should be freed with g_free()
.
[transfer full]
Since: 1.20
void mm_modem_sar_enable (MMModemSar *self
,gboolean enable
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously enable or disable dynamic SAR.
When the operation is finished, callback
will be invoked in the
of the thread you are calling this method from. You can then call
mm_modem_sar_enable_finish()
to get the result of the operation.
See mm_modem_sar_enable_sync()
for the synchronous, blocking version of
this method.
self |
A MMModemSar. |
|
enable |
||
cancellable |
A GCancellable or |
[allow-none] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or
|
|
user_data |
User data to pass to |
Since: 1.20
gboolean mm_modem_sar_enable_finish (MMModemSar *self
,GAsyncResult *res
,GError **error
);
Finishes an operation started with mm_modem_sar_enable()
.
self |
A MMModemSar. |
|
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to
|
|
error |
Return location for error or |
Since: 1.20
gboolean mm_modem_sar_enable_sync (MMModemSar *self
,gboolean enable
,GCancellable *cancellable
,GError **error
);
Synchronously enable or disable dynamic SAR.
The calling thread is blocked until a reply is received. See
mm_modem_sar_enable()
for the asynchronous version of this method.
self |
A MMModemSar. |
|
enable |
||
cancellable |
A GCancellable or |
[allow-none] |
error |
Return location for error or |
Since: 1.20
void mm_modem_sar_set_power_level (MMModemSar *self
,guint level
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously set current dynamic SAR power level.
When the operation is finished, callback
will be invoked in the
of the thread you are calling this method from. You can then call
mm_modem_sar_set_power_level_finish()
to get the result of the operation.
See mm_modem_sar_set_power_level_sync()
for the synchronous, blocking version of
this method.
self |
A MMModemSar. |
|
level |
Index of the SAR power level mapping table |
|
cancellable |
A GCancellable or |
[allow-none] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or
|
|
user_data |
User data to pass to |
Since: 1.20
gboolean mm_modem_sar_set_power_level_finish (MMModemSar *self
,GAsyncResult *res
,GError **error
);
gboolean mm_modem_sar_set_power_level_sync (MMModemSar *self
,guint level
,GCancellable *cancellable
,GError **error
);
Synchronously set current dynamic SAR power level.
The calling thread is blocked until a reply is received. See
mm_modem_sar_set_power_level()
for the asynchronous version of this method.
self |
A MMModemSar. |
|
level |
Index of the SAR power level mapping table |
|
cancellable |
A GCancellable or |
[allow-none] |
error |
Return location for error or |
Since: 1.20
gboolean
mm_modem_sar_get_state (MMModemSar *self
);
Gets the state of dynamic SAR.
Since: 1.20
guint
mm_modem_sar_get_power_level (MMModemSar *self
);
Gets the index of the SAR power level mapping table.
Since: 1.20
struct MMModemSar;
The MMModemSar structure contains private data and should only be accessed using the provided API.