libmm-glib Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces |
struct MMModem3gppUssd; const gchar * mm_modem_3gpp_ussd_get_path (MMModem3gppUssd *self
); gchar * mm_modem_3gpp_ussd_dup_path (MMModem3gppUssd *self
); MMModem3gppUssdSessionState mm_modem_3gpp_ussd_get_state (MMModem3gppUssd *self
); const gchar * mm_modem_3gpp_ussd_get_network_request (MMModem3gppUssd *self
); gchar * mm_modem_3gpp_ussd_dup_network_request (MMModem3gppUssd *self
); const gchar * mm_modem_3gpp_ussd_get_network_notification (MMModem3gppUssd *self
); gchar * mm_modem_3gpp_ussd_dup_network_notification (MMModem3gppUssd *self
); void mm_modem_3gpp_ussd_initiate (MMModem3gppUssd *self
,const gchar *command
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); gchar * mm_modem_3gpp_ussd_initiate_finish (MMModem3gppUssd *self
,GAsyncResult *res
,GError **error
); gchar * mm_modem_3gpp_ussd_initiate_sync (MMModem3gppUssd *self
,const gchar *command
,GCancellable *cancellable
,GError **error
); void mm_modem_3gpp_ussd_respond (MMModem3gppUssd *self
,const gchar *response
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); gchar * mm_modem_3gpp_ussd_respond_finish (MMModem3gppUssd *self
,GAsyncResult *res
,GError **error
); gchar * mm_modem_3gpp_ussd_respond_sync (MMModem3gppUssd *self
,const gchar *response
,GCancellable *cancellable
,GError **error
); void mm_modem_3gpp_ussd_cancel (MMModem3gppUssd *self
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); gboolean mm_modem_3gpp_ussd_cancel_finish (MMModem3gppUssd *self
,GAsyncResult *res
,GError **error
); gboolean mm_modem_3gpp_ussd_cancel_sync (MMModem3gppUssd *self
,GCancellable *cancellable
,GError **error
);
MMModem3gppUssd implements GDBusInterface, GInitable, GAsyncInitable and MmGdbusModem3gppUssd.
The MMModem3gppUssd is an object providing access to the methods, signals and properties of the 3GPP USSD interface.
This interface is only exposed when the 3GPP modem is known to handle USSD operations.
struct MMModem3gppUssd;
The MMModem3gppUssd structure contains private data and should only be accessed using the provided API.
const gchar * mm_modem_3gpp_ussd_get_path (MMModem3gppUssd *self
);
Gets the DBus path of the MMObject which implements this interface.
|
A MMModem3gppUssd. |
Returns : |
The DBus path of the MMObject object. [transfer none] |
gchar * mm_modem_3gpp_ussd_dup_path (MMModem3gppUssd *self
);
Gets a copy of the DBus path of the MMObject object which implements this interface.
|
A MMModem3gppUssd. |
Returns : |
The DBus path of the MMObject. The returned value should be freed with g_free() . [transfer full]
|
MMModem3gppUssdSessionState mm_modem_3gpp_ussd_get_state
(MMModem3gppUssd *self
);
Get the state of the ongoing USSD session, if any.
|
A MMModem. |
Returns : |
A MMModem3gppUssdSessionState value, specifying the current state. |
const gchar * mm_modem_3gpp_ussd_get_network_request
(MMModem3gppUssd *self
);
Gets any pending network-initiated request.
self
was constructed. Use mm_modem_3gpp_ussd_dup_network_request()
if on another
thread.
|
A MMModem3gppUssd. |
Returns : |
The network request, or NULL if none available. [transfer none]
|
gchar * mm_modem_3gpp_ussd_dup_network_request
(MMModem3gppUssd *self
);
Gets a copy of any pending network-initiated request.
|
A MMModem3gppUssd. |
Returns : |
The network request, or NULL if none available. The returned value should be freed with g_free() . [transfer full]
|
const gchar * mm_modem_3gpp_ussd_get_network_notification
(MMModem3gppUssd *self
);
Gets any pending network-initiated request to which no USSD response is required.
self
was constructed. Use mm_modem_3gpp_ussd_dup_network_notification()
if on another
thread.
|
A MMModem3gppUssd. |
Returns : |
The network notification, or NULL if none available. [transfer none]
|
gchar * mm_modem_3gpp_ussd_dup_network_notification
(MMModem3gppUssd *self
);
Gets a copy of any pending network-initiated request to which no USSD response is required.
|
A MMModem3gppUssd. |
Returns : |
The network notification, or NULL if none available. The returned value should be freed with g_free() . [transfer full]
|
void mm_modem_3gpp_ussd_initiate (MMModem3gppUssd *self
,const gchar *command
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously sends a USSD command string to the network initiating a USSD session.
When the request is handled by the network, the method returns the response or an appropriate error. The network may be awaiting further response from the ME after returning from this method and no new command.
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_3gpp_ussd_initiate_finish()
to get the result of the operation.
See mm_modem_3gpp_ussd_initiate_sync()
for the synchronous, blocking version of this method.
|
A MMModem3gppUssd. |
|
The command to start the USSD session with. |
|
A GCancellable or NULL . [allow-none]
|
|
A GAsyncReadyCallback to call when the request is satisfied or NULL . |
|
User data to pass to callback . |
gchar * mm_modem_3gpp_ussd_initiate_finish (MMModem3gppUssd *self
,GAsyncResult *res
,GError **error
);
Finishes an operation started with mm_modem_3gpp_ussd_initiate()
.
|
A MMModem3gppUssd. |
|
The GAsyncResult obtained from the GAsyncReadyCallback passed to mm_modem_3gpp_ussd_initiate() . |
|
Return location for error or NULL . |
Returns : |
The response from the network, if any. The returned value should be freed with g_free() . |
gchar * mm_modem_3gpp_ussd_initiate_sync (MMModem3gppUssd *self
,const gchar *command
,GCancellable *cancellable
,GError **error
);
Synchronously sends a USSD command string to the network initiating a USSD session.
When the request is handled by the network, the method returns the response or an appropriate error. The network may be awaiting further response from the ME after returning from this method and no new command.
The calling thread is blocked until a reply is received. See mm_modem_3gpp_ussd_initiate()
for the asynchronous version of this method.
|
A MMModem3gppUssd. |
|
The command to start the USSD session with. |
|
A GCancellable or NULL . [allow-none]
|
|
Return location for error or NULL . |
Returns : |
The response from the network, if any. The returned value should be freed with g_free() . |
void mm_modem_3gpp_ussd_respond (MMModem3gppUssd *self
,const gchar *response
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously responds to a USSD request that is either initiated by the
mobile network, or that is awaiting further input after a previous call to
mm_modem_3gpp_ussd_initiate()
.
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_3gpp_ussd_respond_finish()
to get the result of the operation.
See mm_modem_3gpp_ussd_respond_sync()
for the synchronous, blocking version of this method.
|
A MMModem3gppUssd. |
|
The response to network-initiated USSD command, or a response to a request for further input. |
|
A GCancellable or NULL . [allow-none]
|
|
A GAsyncReadyCallback to call when the request is satisfied or NULL . |
|
User data to pass to callback . |
gchar * mm_modem_3gpp_ussd_respond_finish (MMModem3gppUssd *self
,GAsyncResult *res
,GError **error
);
Finishes an operation started with mm_modem_3gpp_ussd_respond()
.
|
A MMModem3gppUssd. |
|
The GAsyncResult obtained from the GAsyncReadyCallback passed to mm_modem_3gpp_ussd_respond() . |
|
Return location for error or NULL . |
Returns : |
The network reply to this response to the network-initiated USSD command. The reply may require further responses. The returned value should be freed with g_free() . |
gchar * mm_modem_3gpp_ussd_respond_sync (MMModem3gppUssd *self
,const gchar *response
,GCancellable *cancellable
,GError **error
);
Synchronously responds to a USSD request that is either initiated by the
mobile network, or that is awaiting further input after a previous call to
mm_modem_3gpp_ussd_initiate()
.
The calling thread is blocked until a reply is received. See mm_modem_3gpp_ussd_respond()
for the asynchronous version of this method.
|
A MMModem3gppUssd. |
|
The response to network-initiated USSD command, or a response to a request for further input. |
|
A GCancellable or NULL . [allow-none]
|
|
Return location for error or NULL . |
Returns : |
The network reply to this response to the network-initiated USSD command. The reply may require further responses. The returned value should be freed with g_free() . |
void mm_modem_3gpp_ussd_cancel (MMModem3gppUssd *self
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously cancels an ongoing USSD session, either mobile or network initiated.
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_3gpp_ussd_cancel_finish()
to get the result of the operation.
See mm_modem_3gpp_ussd_cancel_sync()
for the synchronous, blocking version of this method.
|
A MMModem3gppUssd. |
|
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_3gpp_ussd_cancel_finish (MMModem3gppUssd *self
,GAsyncResult *res
,GError **error
);
Finishes an operation started with mm_modem_3gpp_ussd_cancel()
.
|
A MMModem3gppUssd. |
|
The GAsyncResult obtained from the GAsyncReadyCallback passed to mm_modem_3gpp_ussd_cancel() . |
|
Return location for error or NULL . |
Returns : |
TRUE if the session was successfully cancelled, FALSE if error is set. |
gboolean mm_modem_3gpp_ussd_cancel_sync (MMModem3gppUssd *self
,GCancellable *cancellable
,GError **error
);
Synchronously cancels an ongoing USSD session, either mobile or network initiated.
The calling thread is blocked until a reply is received. See mm_modem_3gpp_ussd_cancel()
for the asynchronous version of this method.
|
A MMModem3gppUssd. |
|
A GCancellable or NULL . [allow-none]
|
|
Return location for error or NULL . |
Returns : |
TRUE if the session was successfully cancelled, FALSE if error is set. |