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.ModemSarstructure 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.Objectobject which implements this interface.New in version 1.20.
- enable(enable, cancellable, callback, *user_data)¶
 - Parameters:
 enable (
bool) –Trueto enable dynamic SAR andFalseto disable it.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto 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 loopof 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.AsyncResultobtained from theGio.AsyncReadyCallbackpassed 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) –Trueto enable dynamic SAR andFalseto disable it.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.
- 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.Objectobject.- Return type:
 
Gets the DBus path of the
ModemManager.Objectwhich 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.CancellableorNone) – AGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto 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 loopof 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.CancellableorNone) – AGio.CancellableorNone.
- Raises:
 - Returns:
 Trueif set power level was successful,Falseif 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.