|  |  |  | libmm-glib Reference Manual |  | 
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Implemented Interfaces | ||||
struct MMModemOma; struct MMOmaPendingNetworkInitiatedSession; const gchar * mm_modem_oma_get_path (MMModemOma *self); gchar * mm_modem_oma_dup_path (MMModemOma *self); void mm_modem_oma_setup (MMModemOma *self,MMOmaFeature features,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data); gboolean mm_modem_oma_setup_finish (MMModemOma *self,GAsyncResult *res,GError **error); gboolean mm_modem_oma_setup_sync (MMModemOma *self,MMOmaFeature features,GCancellable *cancellable,GError **error); void mm_modem_oma_start_client_initiated_session (MMModemOma *self,MMOmaSessionType session_type,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data); gboolean mm_modem_oma_start_client_initiated_session_finish (MMModemOma *self,GAsyncResult *res,GError **error); gboolean mm_modem_oma_start_client_initiated_session_sync (MMModemOma *self,MMOmaSessionType session_type,GCancellable *cancellable,GError **error); void mm_modem_oma_accept_network_initiated_session (MMModemOma *self,guint session_id,gboolean accept,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data); gboolean mm_modem_oma_accept_network_initiated_session_finish (MMModemOma *self,GAsyncResult *res,GError **error); gboolean mm_modem_oma_accept_network_initiated_session_sync (MMModemOma *self,guint session_id,gboolean accept,GCancellable *cancellable,GError **error); void mm_modem_oma_cancel_session (MMModemOma *self,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data); gboolean mm_modem_oma_cancel_session_finish (MMModemOma *self,GAsyncResult *res,GError **error); gboolean mm_modem_oma_cancel_session_sync (MMModemOma *self,GCancellable *cancellable,GError **error); MMOmaFeature mm_modem_oma_get_features (MMModemOma *self); MMOmaSessionType mm_modem_oma_get_session_type (MMModemOma *self); MMOmaSessionState mm_modem_oma_get_session_state (MMModemOma *self); gboolean mm_modem_peek_pending_network_initiated_sessions (MMModemOma *self,const MMOmaPendingNetworkInitiatedSession **sessions,guint *n_sessions); gboolean mm_modem_get_pending_network_initiated_sessions (MMModemOma *self,MMOmaPendingNetworkInitiatedSession **sessions,guint *n_sessions);
MMModemOma implements GDBusInterface, GInitable, GAsyncInitable and MmGdbusModemOma.
The MMModemOma is an object providing access to the methods, signals and properties of the OMA interface.
The OMA interface is exposed whenever a modem has OMA device management capabilities.
struct MMModemOma;
The MMModemOma structure contains private data and should only be accessed using the provided API.
struct MMOmaPendingNetworkInitiatedSession {
    MMOmaSessionType session_type;
    guint session_id;
};
MMOmaPendingNetworkInitiatedSession is a simple struct specifying the information available for a pending network-initiated OMA session.
| A MMOmaSessionType. | |
| guint  | Unique ID of the network-initiated OMA session. | 
const gchar *       mm_modem_oma_get_path               (MMModemOma *self);
Gets the DBus path of the MMObject which implements this interface.
| 
 | A MMModemOma. | 
| Returns : | The DBus path of the MMObject object. [transfer none] | 
gchar *             mm_modem_oma_dup_path               (MMModemOma *self);
Gets a copy of the DBus path of the MMObject object which implements this interface.
| 
 | A MMModemOma. | 
| Returns : | The DBus path of the MMObject. The returned value should be freed with g_free(). [transfer full] | 
void mm_modem_oma_setup (MMModemOma *self,MMOmaFeature features,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data);
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 mm_modem_oma_setup_finish() to get the result of the operation.
See mm_modem_oma_setup_sync() for the synchronous, blocking version of this method.
| 
 | A MMModemOma. | 
| 
 | Mask of MMOmaFeatures to enable. | 
| 
 | A GCancellable or NULL. [allow-none] | 
| 
 | A GAsyncReadyCallback to call when the request is satisfied or NULL. | 
| 
 | User data to pass to callback. | 
gboolean mm_modem_oma_setup_finish (MMModemOma *self,GAsyncResult *res,GError **error);
Finishes an operation started with mm_modem_oma_setup().
| 
 | A MMModemOma. | 
| 
 | The GAsyncResult obtained from the GAsyncReadyCallback passed to mm_modem_oma_setup(). | 
| 
 | Return location for error or NULL. | 
| Returns : | TRUEif the setup was successful,FALSEiferroris set. | 
gboolean mm_modem_oma_setup_sync (MMModemOma *self,MMOmaFeature features,GCancellable *cancellable,GError **error);
Synchronously sets up the OMA device management service.
The calling thread is blocked until a reply is received. See mm_modem_oma_setup()
for the asynchronous version of this method.
| 
 | A MMModemOma. | 
| 
 | Mask of MMOmaFeatures to enable. | 
| 
 | A GCancellable or NULL. [allow-none] | 
| 
 | Return location for error or NULL. | 
| Returns : | TRUEif the setup was successful,FALSEiferroris set. | 
void mm_modem_oma_start_client_initiated_session (MMModemOma *self,MMOmaSessionType session_type,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data);
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 mm_modem_oma_start_client_initiated_session_finish() to get the result of the operation.
See mm_modem_oma_start_client_initiated_session_sync() for the synchronous, blocking version of this method.
| 
 | A MMModemOma. | 
| 
 | A MMOmaSessionType. | 
| 
 | A GCancellable or NULL. [allow-none] | 
| 
 | A GAsyncReadyCallback to call when the request is satisfied or NULL. | 
| 
 | User data to pass to callback. | 
gboolean mm_modem_oma_start_client_initiated_session_finish (MMModemOma *self,GAsyncResult *res,GError **error);
Finishes an operation started with mm_modem_oma_start_client_initiated_session().
| 
 | A MMModemOma. | 
| 
 | The GAsyncResult obtained from the GAsyncReadyCallback passed to mm_modem_oma_start_client_initiated_session(). | 
| 
 | Return location for error or NULL. | 
| Returns : | TRUEif the session was started,FALSEiferroris set. | 
gboolean mm_modem_oma_start_client_initiated_session_sync (MMModemOma *self,MMOmaSessionType session_type,GCancellable *cancellable,GError **error);
Synchronously starts a client-initiated OMA device management session.
The calling thread is blocked until a reply is received. See mm_modem_oma_start_client_initiated_session()
for the asynchronous version of this method.
| 
 | A MMModemOma. | 
| 
 | A MMOmaSessionType. | 
| 
 | A GCancellable or NULL. [allow-none] | 
| 
 | Return location for error or NULL. | 
| Returns : | TRUEif the session was started,FALSEiferroris set. | 
void mm_modem_oma_accept_network_initiated_session (MMModemOma *self,guint session_id,gboolean accept,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data);
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 mm_modem_oma_accept_network_initiated_session_finish() to get the result of the operation.
See mm_modem_oma_accept_network_initiated_session_sync() for the synchronous, blocking version of this method.
| 
 | A MMModemOma. | 
| 
 | The unique ID of the network-initiated session. | 
| 
 | TRUEif the session is to be accepted,FALSEotherwise. | 
| 
 | A GCancellable or NULL. [allow-none] | 
| 
 | A GAsyncReadyCallback to call when the request is satisfied or NULL. | 
| 
 | User data to pass to callback. | 
gboolean mm_modem_oma_accept_network_initiated_session_finish (MMModemOma *self,GAsyncResult *res,GError **error);
Finishes an operation started with mm_modem_oma_accept_network_initiated_session().
| 
 | A MMModemOma. | 
| 
 | The GAsyncResult obtained from the GAsyncReadyCallback passed to mm_modem_oma_accept_network_initiated_session(). | 
| 
 | Return location for error or NULL. | 
| Returns : | TRUEif the session was started,FALSEiferroris set. | 
gboolean mm_modem_oma_accept_network_initiated_session_sync (MMModemOma *self,guint session_id,gboolean accept,GCancellable *cancellable,GError **error);
Synchronously accepts a nework-initiated OMA device management session.
The calling thread is blocked until a reply is received. See mm_modem_oma_accept_network_initiated_session()
for the asynchronous version of this method.
| 
 | A MMModemOma. | 
| 
 | The unique ID of the network-initiated session. | 
| 
 | TRUEif the session is to be accepted,FALSEotherwise. | 
| 
 | A GCancellable or NULL. [allow-none] | 
| 
 | Return location for error or NULL. | 
| Returns : | TRUEif the session was started,FALSEiferroris set. | 
void mm_modem_oma_cancel_session (MMModemOma *self,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data);
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 mm_modem_oma_cancel_session_finish() to get the result of the operation.
See mm_modem_oma_cancel_session_sync() for the synchronous, blocking version of this method.
| 
 | A MMModemOma. | 
| 
 | A GCancellable or NULL. [allow-none] | 
| 
 | A GAsyncReadyCallback to call when the request is satisfied or NULL. | 
| 
 | User data to pass to callback. | 
gboolean mm_modem_oma_cancel_session_finish (MMModemOma *self,GAsyncResult *res,GError **error);
Finishes an operation started with mm_modem_oma_cancel_session().
| 
 | A MMModemOma. | 
| 
 | The GAsyncResult obtained from the GAsyncReadyCallback passed to mm_modem_oma_cancel_session(). | 
| 
 | Return location for error or NULL. | 
| Returns : | TRUEif the session was started,FALSEiferroris set. | 
gboolean mm_modem_oma_cancel_session_sync (MMModemOma *self,GCancellable *cancellable,GError **error);
Synchronously cancels the current OMA device management session.
The calling thread is blocked until a reply is received. See mm_modem_oma_cancel_session()
for the asynchronous version of this method.
| 
 | A MMModemOma. | 
| 
 | A GCancellable or NULL. [allow-none] | 
| 
 | Return location for error or NULL. | 
| Returns : | TRUEif the session was started,FALSEiferroris set. | 
MMOmaFeature        mm_modem_oma_get_features           (MMModemOma *self);
Gets the currently enabled OMA features.
| 
 | A MMModemOma. | 
| Returns : | a bitmask of MMOmaFeature values. | 
MMOmaSessionType    mm_modem_oma_get_session_type       (MMModemOma *self);
Gets the type of the current OMA device management session.
| 
 | A MMModemOma. | 
| Returns : | a MMOmaSessionType. | 
MMOmaSessionState   mm_modem_oma_get_session_state      (MMModemOma *self);
Gets the state of the current OMA device management session.
| 
 | A MMModemOma. | 
| Returns : | a MMOmaSessionState. | 
gboolean mm_modem_peek_pending_network_initiated_sessions (MMModemOma *self,const MMOmaPendingNetworkInitiatedSession **sessions,guint *n_sessions);
Gets the list of pending network-initiated OMA sessions.
| 
 | A MMModem. | 
| 
 | Return location for the array of MMOmaPendingNetworkInitiatedSession values. Do not free the returned array, it is owned by self. [out][array length=n_sessions] | 
| 
 | Return location for the number of values in sessions. [out] | 
| Returns : | TRUEifsessionsandn_sessionsare set,FALSEotherwise. | 
gboolean mm_modem_get_pending_network_initiated_sessions (MMModemOma *self,MMOmaPendingNetworkInitiatedSession **sessions,guint *n_sessions);
Gets the list of pending network-initiated OMA sessions.
| 
 | A MMModem. | 
| 
 | Return location for the array of MMOmaPendingNetworkInitiatedSession structs. The returned array should be freed with g_free()when no longer needed. [out][array length=n_sessions] | 
| 
 | Return location for the number of values in sessions. [out] | 
| Returns : | TRUEifsessionsandn_sessionsare set,FALSEotherwise. |