ModemManager.ModemSar¶
- Subclasses:
None
Methods¶
- Inherited:
ModemManager.GdbusModemSarProxy (6), Gio.DBusProxy (25), GObject.Object (37), Gio.AsyncInitable (4), Gio.DBusInterface (3), Gio.Initable (2), ModemManager.GdbusModemSar (10)
- Structs:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
Properties¶
- Inherited:
Signals¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
||
unused |
r |
Class Details¶
- class ModemManager.ModemSar(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
The
ModemManager.ModemSar
structure contains private data and should only be accessed using the provided API.- dup_path()¶
- Returns:
The DBus path of the
ModemManager.Object
. The returned value should be freed withGLib.free
().- Return type:
Gets a copy of the DBus path of the
ModemManager.Object
object which implements this interface.New in version 1.20.
- enable(enable, cancellable, callback, *user_data)¶
- Parameters:
enable (
bool
) –True
to enable dynamic SAR andFalse
to disable it.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.callback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
.
Asynchronously enable or disable dynamic SAR.
When the operation is finished, callback will be invoked in the
thread-default main loop
of the thread you are calling this method from. You can then callModemManager.ModemSar.enable_finish
() to get the result of the operation.See
ModemManager.ModemSar.enable_sync
() for the synchronous, blocking version of this method.New in version 1.20.
- enable_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – TheGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed toModemManager.ModemSar.enable
().- Raises:
- Returns:
- Return type:
Finishes an operation started with
ModemManager.ModemSar.enable
().New in version 1.20.
- enable_sync(enable, cancellable)¶
- Parameters:
enable (
bool
) –True
to enable dynamic SAR andFalse
to disable it.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.
- Raises:
- Returns:
- Return type:
Synchronously enable or disable dynamic SAR.
The calling thread is blocked until a reply is received. See
ModemManager.ModemSar.enable
() for the asynchronous version of this method.New in version 1.20.
- get_path()¶
- Returns:
The DBus path of the
ModemManager.Object
object.- Return type:
Gets the DBus path of the
ModemManager.Object
which implements this interface.New in version 1.20.
- get_power_level()¶
- Returns:
the index.
- Return type:
Gets the index of the SAR power level mapping table.
New in version 1.20.
- get_state()¶
-
Gets the state of dynamic SAR.
New in version 1.20.
- set_power_level(level, cancellable, callback, *user_data)¶
- Parameters:
level (
int
) – Index of the SAR power level mapping tablecancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.callback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
.
Asynchronously set current dynamic SAR power level.
When the operation is finished, callback will be invoked in the
thread-default main loop
of the thread you are calling this method from. You can then callModemManager.ModemSar.set_power_level_finish
() to get the result of the operation.See
ModemManager.ModemSar.set_power_level_sync
() for the synchronous, blocking version of this method.New in version 1.20.
- set_power_level_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) –- Raises:
- Return type:
- set_power_level_sync(level, cancellable)¶
- Parameters:
level (
int
) – Index of the SAR power level mapping tablecancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.
- Raises:
- Returns:
True
if set power level was successful,False
if error is set.- Return type:
Synchronously set current dynamic SAR power level.
The calling thread is blocked until a reply is received. See
ModemManager.ModemSar.set_power_level
() for the asynchronous version of this method.New in version 1.20.