ModemManager.ModemOma

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.GdbusModemOma ModemManager.GdbusModemOma GObject.GInterface->ModemManager.GdbusModemOma GObject.Object GObject.Object Gio.DBusProxy Gio.DBusProxy GObject.Object->Gio.DBusProxy Gio.AsyncInitable->Gio.DBusProxy Gio.DBusInterface->Gio.DBusProxy ModemManager.GdbusModemOmaProxy ModemManager.GdbusModemOmaProxy Gio.DBusProxy->ModemManager.GdbusModemOmaProxy Gio.Initable->Gio.DBusProxy ModemManager.GdbusModemOma->ModemManager.GdbusModemOmaProxy ModemManager.ModemOma ModemManager.ModemOma ModemManager.GdbusModemOmaProxy->ModemManager.ModemOma

Subclasses:None

Methods

Inherited:ModemManager.GdbusModemOmaProxy (6), Gio.DBusProxy (25), GObject.Object (37), Gio.AsyncInitable (4), Gio.DBusInterface (3), Gio.Initable (2), ModemManager.GdbusModemOma (19)
Structs:GObject.ObjectClass (5)
  accept_network_initiated_session (session_id, accept, cancellable, callback, *user_data)
  accept_network_initiated_session_finish (res)
  accept_network_initiated_session_sync (session_id, accept, cancellable)
  cancel_session (cancellable, callback, *user_data)
  cancel_session_finish (res)
  cancel_session_sync (cancellable)
  dup_path ()
  get_features ()
  get_path ()
  get_session_state ()
  get_session_type ()
  setup (features, cancellable, callback, *user_data)
  setup_finish (res)
  setup_sync (features, cancellable)
  start_client_initiated_session (session_type, cancellable, callback, *user_data)
  start_client_initiated_session_finish (res)
  start_client_initiated_session_sync (session_type, cancellable)

Class Details

class ModemManager.ModemOma(**kwargs)
Bases:ModemManager.GdbusModemOmaProxy
Abstract:No
Structure:ModemManager.ModemOmaClass

The ModemManager.ModemOma structure contains private data and should only be accessed using the provided API.

accept_network_initiated_session(session_id, accept, cancellable, callback, *user_data)
Parameters:

Asynchronously accepts a nework-initiated OMA device management session.

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.ModemOma.accept_network_initiated_session_finish() to get the result of the operation.

See ModemManager.ModemOma.accept_network_initiated_session_sync() for the synchronous, blocking version of this method.

New in version 1.2.

accept_network_initiated_session_finish(res)
Parameters:res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to ModemManager.ModemOma.accept_network_initiated_session().
Raises:GLib.Error
Returns:True if the session was started, False if error is set.
Return type:bool

Finishes an operation started with ModemManager.ModemOma.accept_network_initiated_session().

New in version 1.2.

accept_network_initiated_session_sync(session_id, accept, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

True if the session was started, False if error is set.

Return type:

bool

Synchronously accepts a nework-initiated OMA device management session.

The calling thread is blocked until a reply is received. See ModemManager.ModemOma.accept_network_initiated_session() for the asynchronous version of this method.

New in version 1.2.

cancel_session(cancellable, callback, *user_data)
Parameters:

Asynchronously cancels the current OMA device management session.

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.ModemOma.cancel_session_finish() to get the result of the operation.

See ModemManager.ModemOma.cancel_session_sync() for the synchronous, blocking version of this method.

New in version 1.2.

cancel_session_finish(res)
Parameters:res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to ModemManager.ModemOma.cancel_session().
Raises:GLib.Error
Returns:True if the session was started, False if error is set.
Return type:bool

Finishes an operation started with ModemManager.ModemOma.cancel_session().

New in version 1.2.

cancel_session_sync(cancellable)
Parameters:cancellable (Gio.Cancellable or None) – A Gio.Cancellable or None.
Raises:GLib.Error
Returns:True if the session was started, False if error is set.
Return type:bool

Synchronously cancels the current OMA device management session.

The calling thread is blocked until a reply is received. See ModemManager.ModemOma.cancel_session() for the asynchronous version of this method.

New in version 1.2.

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.2.

get_features()
Returns:a bitmask of ModemManager.OmaFeature values.
Return type:ModemManager.OmaFeature

Gets the currently enabled OMA features.

New in version 1.2.

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.2.

get_session_state()
Returns:a ModemManager.OmaSessionState.
Return type:ModemManager.OmaSessionState

Gets the state of the current OMA device management session.

New in version 1.2.

get_session_type()
Returns:a ModemManager.OmaSessionType.
Return type:ModemManager.OmaSessionType

Gets the type of the current OMA device management session.

New in version 1.2.

setup(features, cancellable, callback, *user_data)
Parameters:

Asynchronously sets up the OMA device management service.

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.ModemOma.setup_finish() to get the result of the operation.

See ModemManager.ModemOma.setup_sync() for the synchronous, blocking version of this method.

New in version 1.2.

setup_finish(res)
Parameters:res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to ModemManager.ModemOma.setup().
Raises:GLib.Error
Returns:True if the setup was successful, False if error is set.
Return type:bool

Finishes an operation started with ModemManager.ModemOma.setup().

New in version 1.2.

setup_sync(features, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

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

Return type:

bool

Synchronously sets up the OMA device management service.

The calling thread is blocked until a reply is received. See ModemManager.ModemOma.setup() for the asynchronous version of this method.

New in version 1.2.

start_client_initiated_session(session_type, cancellable, callback, *user_data)
Parameters:

Asynchronously starts a client-initiated OMA device management session.

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.ModemOma.start_client_initiated_session_finish() to get the result of the operation.

See ModemManager.ModemOma.start_client_initiated_session_sync() for the synchronous, blocking version of this method.

New in version 1.2.

start_client_initiated_session_finish(res)
Parameters:res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to ModemManager.ModemOma.start_client_initiated_session().
Raises:GLib.Error
Returns:True if the session was started, False if error is set.
Return type:bool

Finishes an operation started with ModemManager.ModemOma.start_client_initiated_session().

New in version 1.2.

start_client_initiated_session_sync(session_type, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

True if the session was started, False if error is set.

Return type:

bool

Synchronously starts a client-initiated OMA device management session.

The calling thread is blocked until a reply is received. See ModemManager.ModemOma.start_client_initiated_session() for the asynchronous version of this method.

New in version 1.2.