ModemManager.ModemOma¶
| Subclasses: | None | 
|---|
Methods¶
| 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) | 
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.ModemOmastructure contains private data and should only be accessed using the provided API.- 
accept_network_initiated_session(session_id, accept, cancellable, callback, *user_data)¶
- Parameters: - session_id (int) – The unique ID of the network-initiated session.
- accept (bool) –Trueif the session is to be accepted,Falseotherwise.
- cancellable (Gio.CancellableorNone) – AGio.CancellableorNone.
- callback (Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNone.
- user_data (objectorNone) – User data to pass to callback.
 - Asynchronously accepts a nework-initiated OMA device management session. - 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 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. 
- session_id (
 - 
accept_network_initiated_session_finish(res)¶
- Parameters: - res ( - Gio.AsyncResult) – The- Gio.AsyncResultobtained from the- Gio.AsyncReadyCallbackpassed to- ModemManager.ModemOma.accept_network_initiated_session().- Raises: - GLib.Error- Returns: - Trueif the session was started,- Falseif 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: - session_id (int) – The unique ID of the network-initiated session.
- accept (bool) –Trueif the session is to be accepted,Falseotherwise.
- cancellable (Gio.CancellableorNone) – AGio.CancellableorNone.
 - Raises: - Returns: - Return type: - 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. 
- session_id (
 - 
cancel_session(cancellable, callback, *user_data)¶
- Parameters: - cancellable (Gio.CancellableorNone) – AGio.CancellableorNone.
- callback (Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNone.
- user_data (objectorNone) – User data to pass to callback.
 - Asynchronously cancels the current OMA device management session. - 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 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. 
- cancellable (
 - 
cancel_session_finish(res)¶
- Parameters: - res ( - Gio.AsyncResult) – The- Gio.AsyncResultobtained from the- Gio.AsyncReadyCallbackpassed to- ModemManager.ModemOma.cancel_session().- Raises: - GLib.Error- Returns: - Trueif the session was started,- Falseif 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.Cancellableor- None) – A- Gio.Cancellableor- None.- Raises: - GLib.Error- Returns: - Trueif the session was started,- Falseif 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.Objectobject which implements this interface.- New in version 1.2. 
 - 
get_features()¶
- Returns: - a bitmask of - ModemManager.OmaFeaturevalues.- Return type: - ModemManager.OmaFeature- Gets the currently enabled OMA features. - New in version 1.2. 
 - 
get_path()¶
- Returns: - The DBus path of the - ModemManager.Objectobject.- Return type: - str- Gets the DBus path of the - ModemManager.Objectwhich 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: - features (ModemManager.OmaFeature) – Mask ofModemManager.OmaFeaturevalues to enable.
- cancellable (Gio.CancellableorNone) – AGio.CancellableorNone.
- callback (Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNone.
- user_data (objectorNone) – User data to pass to callback.
 - Asynchronously sets up the OMA device management service. - 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 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. 
- features (
 - 
setup_finish(res)¶
- Parameters: - res ( - Gio.AsyncResult) – The- Gio.AsyncResultobtained from the- Gio.AsyncReadyCallbackpassed to- ModemManager.ModemOma.setup().- Raises: - GLib.Error- Returns: - Trueif the setup was successful,- Falseif error is set.- Return type: - bool- Finishes an operation started with - ModemManager.ModemOma.setup().- New in version 1.2. 
 - 
setup_sync(features, cancellable)¶
- Parameters: - features (ModemManager.OmaFeature) – Mask ofModemManager.OmaFeaturevalues to enable.
- cancellable (Gio.CancellableorNone) – AGio.CancellableorNone.
 - Raises: - Returns: - Return type: - 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. 
- features (
 - 
start_client_initiated_session(session_type, cancellable, callback, *user_data)¶
- Parameters: - session_type (ModemManager.OmaSessionType) – AModemManager.OmaSessionType.
- cancellable (Gio.CancellableorNone) – AGio.CancellableorNone.
- callback (Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNone.
- user_data (objectorNone) – User data to pass to callback.
 - Asynchronously starts a client-initiated OMA device management session. - 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 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. 
- session_type (
 - 
start_client_initiated_session_finish(res)¶
- Parameters: - res ( - Gio.AsyncResult) – The- Gio.AsyncResultobtained from the- Gio.AsyncReadyCallbackpassed to- ModemManager.ModemOma.start_client_initiated_session().- Raises: - GLib.Error- Returns: - Trueif the session was started,- Falseif 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: - session_type (ModemManager.OmaSessionType) – AModemManager.OmaSessionType.
- cancellable (Gio.CancellableorNone) – AGio.CancellableorNone.
 - Raises: - Returns: - Return type: - 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. 
- session_type (
 
-