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_pending_network_initiated_sessions ()

get_session_state ()

get_session_type ()

peek_pending_network_initiated_sessions ()

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)

Virtual Methods

Inherited:

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

Properties

Inherited:

Gio.DBusProxy (9), ModemManager.GdbusModemOma (4)

Signals

Inherited:

Gio.DBusProxy (2), GObject.Object (1), ModemManager.GdbusModemOma (5)

Fields

Inherited:

Gio.DBusProxy (2), GObject.Object (1), ModemManager.GdbusModemOma (5)

Name

Type

Access

Description

parent

ModemManager.GdbusModemOmaProxy

r

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_pending_network_initiated_sessions()
Returns:

True if sessions and n_sessions are set, False otherwise.

sessions:

Return location for the array of ModemManager.OmaPendingNetworkInitiatedSession structs. The returned array should be freed with GLib.free() when no longer needed.

Return type:

(bool, sessions: [ModemManager.OmaPendingNetworkInitiatedSession])

Gets the list of pending network-initiated OMA sessions.

New in version 1.18.

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.

peek_pending_network_initiated_sessions()
Returns:

True if sessions and n_sessions are set, False otherwise.

sessions:

Return location for the array of ModemManager.OmaPendingNetworkInitiatedSession values. Do not free the returned array, it is owned by self.

Return type:

(bool, sessions: [ModemManager.OmaPendingNetworkInitiatedSession])

Gets the list of pending network-initiated OMA sessions.

New in version 1.18.

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.