ModemManager.ModemSar

g GObject.GInterface GObject.GInterface Gio.AsyncInitable Gio.AsyncInitable GObject.GInterface->Gio.AsyncInitable Gio.DBusInterface Gio.DBusInterface GObject.GInterface->Gio.DBusInterface Gio.Initable Gio.Initable GObject.GInterface->Gio.Initable ModemManager.GdbusModemSar ModemManager.GdbusModemSar GObject.GInterface->ModemManager.GdbusModemSar GObject.Object GObject.Object Gio.DBusProxy Gio.DBusProxy GObject.Object->Gio.DBusProxy Gio.AsyncInitable->Gio.DBusProxy Gio.DBusInterface->Gio.DBusProxy ModemManager.GdbusModemSarProxy ModemManager.GdbusModemSarProxy Gio.DBusProxy->ModemManager.GdbusModemSarProxy Gio.Initable->Gio.DBusProxy ModemManager.GdbusModemSar->ModemManager.GdbusModemSarProxy ModemManager.ModemSar ModemManager.ModemSar ModemManager.GdbusModemSarProxy->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:

GObject.ObjectClass (5)

dup_path ()

enable (enable, cancellable, callback, *user_data)

enable_finish (res)

enable_sync (enable, cancellable)

get_path ()

get_power_level ()

get_state ()

set_power_level (level, cancellable, callback, *user_data)

set_power_level_finish (res)

set_power_level_sync (level, cancellable)

Virtual Methods

Inherited:

Gio.DBusProxy (2), GObject.Object (7), Gio.AsyncInitable (2), Gio.DBusInterface (3), Gio.Initable (1), ModemManager.GdbusModemSar (2)

Properties

Inherited:

Gio.DBusProxy (9), ModemManager.GdbusModemSar (2)

Signals

Inherited:

Gio.DBusProxy (2), GObject.Object (1), ModemManager.GdbusModemSar (2)

Fields

Inherited:

Gio.DBusProxy (2), GObject.Object (1), ModemManager.GdbusModemSar (2)

Name

Type

Access

Description

parent

ModemManager.GdbusModemSarProxy

r

unused

object

r

Class Details

class ModemManager.ModemSar(**kwargs)
Bases:

ModemManager.GdbusModemSarProxy

Abstract:

No

Structure:

ModemManager.ModemSarClass

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 with GLib.free().

Return type:

str

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:

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 call ModemManager.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) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to ModemManager.ModemSar.enable().

Raises:

GLib.Error

Returns:

True if the enable was successful, False if error is set.

Return type:

bool

Finishes an operation started with ModemManager.ModemSar.enable().

New in version 1.20.

enable_sync(enable, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

True if the enable was successful, False if error is set.

Return type:

bool

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:

str

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:

int

Gets the index of the SAR power level mapping table.

New in version 1.20.

get_state()
Returns:

True if dynamic SAR is enabled, False otherwise.

Return type:

bool

Gets the state of dynamic SAR.

New in version 1.20.

set_power_level(level, cancellable, callback, *user_data)
Parameters:

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 call ModemManager.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:

GLib.Error

Return type:

bool

set_power_level_sync(level, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

True if set power level was successful, False if error is set.

Return type:

bool

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.