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:
 
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
Virtual Methods¶
Properties¶
- Inherited:
 
Signals¶
Fields¶
Name  | 
Type  | 
Access  | 
Description  | 
|---|---|---|---|
parent  | 
r  | 
Class Details¶
- class ModemManager.ModemOma(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
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.
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 callModemManager.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) – TheGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toModemManager.ModemOma.accept_network_initiated_session().- Raises:
 - Returns:
 - Return type:
 
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.
- cancel_session(cancellable, callback, *user_data)¶
 - Parameters:
 cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNone.
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 callModemManager.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) – TheGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toModemManager.ModemOma.cancel_session().- Raises:
 - Returns:
 - Return type:
 
Finishes an operation started with
ModemManager.ModemOma.cancel_session().New in version 1.2.
- cancel_session_sync(cancellable)¶
 - Parameters:
 cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.- Raises:
 - Returns:
 - Return type:
 
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 withGLib.free().- Return type:
 
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:
 
Gets the currently enabled OMA features.
New in version 1.2.
- 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.2.
- get_pending_network_initiated_sessions()¶
 - Returns:
 Trueif sessions and n_sessions are set,Falseotherwise.- sessions:
 Return location for the array of
ModemManager.OmaPendingNetworkInitiatedSessionstructs. The returned array should be freed withGLib.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:
 - Return type:
 
Gets the state of the current OMA device management session.
New in version 1.2.
- get_session_type()¶
 - Returns:
 - Return type:
 
Gets the type of the current OMA device management session.
New in version 1.2.
- peek_pending_network_initiated_sessions()¶
 - Returns:
 Trueif sessions and n_sessions are set,Falseotherwise.- sessions:
 Return location for the array of
ModemManager.OmaPendingNetworkInitiatedSessionvalues. 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:
 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.
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 callModemManager.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) – TheGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toModemManager.ModemOma.setup().- Raises:
 - Returns:
 - Return type:
 
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.
- 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.
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 callModemManager.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) – TheGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toModemManager.ModemOma.start_client_initiated_session().- Raises:
 - Returns:
 - Return type:
 
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.