Top |
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.
const gchar *
mm_modem_oma_get_path (MMModemOma *self
);
Gets the DBus path of the MMObject which implements this interface.
Since: 1.2
gchar *
mm_modem_oma_dup_path (MMModemOma *self
);
Gets a copy of the DBus path of the MMObject object which implements this interface.
The DBus path of the MMObject. The returned value
should be freed with g_free()
.
[transfer full]
Since: 1.2
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
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.
self |
A MMModemOma. |
|
features |
Mask of MMOmaFeature values to enable. |
|
cancellable |
A GCancellable or |
[allow-none] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or
|
|
user_data |
User data to pass to |
Since: 1.2
gboolean mm_modem_oma_setup_finish (MMModemOma *self
,GAsyncResult *res
,GError **error
);
Finishes an operation started with mm_modem_oma_setup()
.
self |
A MMModemOma. |
|
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to
|
|
error |
Return location for error or |
Since: 1.2
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.
self |
A MMModemOma. |
|
features |
Mask of MMOmaFeature values to enable. |
|
cancellable |
A GCancellable or |
[allow-none] |
error |
Return location for error or |
Since: 1.2
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
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.
self |
A MMModemOma. |
|
session_type |
||
cancellable |
A GCancellable or |
[allow-none] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or
|
|
user_data |
User data to pass to |
Since: 1.2
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()
.
self |
A MMModemOma. |
|
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to
|
|
error |
Return location for error or |
Since: 1.2
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.
self |
A MMModemOma. |
|
session_type |
||
cancellable |
A GCancellable or |
[allow-none] |
error |
Return location for error or |
Since: 1.2
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
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.
self |
A MMModemOma. |
|
session_id |
The unique ID of the network-initiated session. |
|
accept |
||
cancellable |
A GCancellable or |
[allow-none] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or
|
|
user_data |
User data to pass to |
Since: 1.2
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()
.
self |
A MMModemOma. |
|
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to
|
|
error |
Return location for error or |
Since: 1.2
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.
self |
A MMModemOma. |
|
session_id |
The unique ID of the network-initiated session. |
|
accept |
||
cancellable |
A GCancellable or |
[allow-none] |
error |
Return location for error or |
Since: 1.2
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
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.
self |
A MMModemOma. |
|
cancellable |
A GCancellable or |
[allow-none] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or
|
|
user_data |
User data to pass to |
Since: 1.2
gboolean mm_modem_oma_cancel_session_finish (MMModemOma *self
,GAsyncResult *res
,GError **error
);
Finishes an operation started with mm_modem_oma_cancel_session()
.
self |
A MMModemOma. |
|
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to
|
|
error |
Return location for error or |
Since: 1.2
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.
self |
A MMModemOma. |
|
cancellable |
A GCancellable or |
[allow-none] |
error |
Return location for error or |
Since: 1.2
MMOmaFeature
mm_modem_oma_get_features (MMModemOma *self
);
Gets the currently enabled OMA features.
Since: 1.2
MMOmaSessionType
mm_modem_oma_get_session_type (MMModemOma *self
);
Gets the type of the current OMA device management session.
Since: 1.2
MMOmaSessionState
mm_modem_oma_get_session_state (MMModemOma *self
);
Gets the state of the current OMA device management session.
Since: 1.2
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.
self |
A MMModem. |
|
sessions |
Return location for the array of
MMOmaPendingNetworkInitiatedSession values. Do not free the returned array,
it is owned by |
[out][array length=n_sessions] |
n_sessions |
Return location for the number of values in |
[out] |
Since: 1.2
gboolean mm_modem_get_pending_network_initiated_sessions (MMModemOma *self
,MMOmaPendingNetworkInitiatedSession **sessions
,guint *n_sessions
);
Gets the list of pending network-initiated OMA sessions.
self |
A MMModem. |
|
sessions |
Return location for the array of
MMOmaPendingNetworkInitiatedSession structs. The returned array should be
freed with |
[out][array length=n_sessions] |
n_sessions |
Return location for the number of values in |
[out] |
Since: 1.2
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.
MMOmaSessionType |
||
guint |
Unique ID of the network-initiated OMA session. |
Since: 1.2