Top |
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.
const gchar *
mm_modem_3gpp_ussd_get_path (MMModem3gppUssd *self
);
Gets the DBus path of the MMObject which implements this interface.
Since: 1.0
gchar *
mm_modem_3gpp_ussd_dup_path (MMModem3gppUssd *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.0
MMModem3gppUssdSessionState
mm_modem_3gpp_ussd_get_state (MMModem3gppUssd *self
);
Get the state of the ongoing USSD session, if any.
Since: 1.0
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.Since: 1.0
gchar *
mm_modem_3gpp_ussd_dup_network_request
(MMModem3gppUssd *self
);
Gets a copy of any pending network-initiated request.
The network request, or NULL
if none available.
The returned value should be freed with g_free()
.
[transfer full]
Since: 1.0
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.Since: 1.0
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.
The network notification, or NULL
if none
available. The returned value should be freed with g_free()
.
[transfer full]
Since: 1.0
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
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.
self |
||
command |
The command to start the USSD session with. |
|
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.0
gchar * mm_modem_3gpp_ussd_initiate_finish (MMModem3gppUssd *self
,GAsyncResult *res
,GError **error
);
Finishes an operation started with mm_modem_3gpp_ussd_initiate()
.
self |
||
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to
|
|
error |
Return location for error or |
Since: 1.0
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.
self |
||
command |
The command to start the USSD session with. |
|
cancellable |
A GCancellable or |
[allow-none] |
error |
Return location for error or |
Since: 1.0
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
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.
self |
||
response |
The response to network-initiated USSD command, or a response to a request for further input. |
|
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.0
gchar * mm_modem_3gpp_ussd_respond_finish (MMModem3gppUssd *self
,GAsyncResult *res
,GError **error
);
Finishes an operation started with mm_modem_3gpp_ussd_respond()
.
self |
||
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to
|
|
error |
Return location for error or |
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()
.
Since: 1.0
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.
self |
||
response |
The response to network-initiated USSD command, or a response to a request for further input. |
|
cancellable |
A GCancellable or |
[allow-none] |
error |
Return location for error or |
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()
.
Since: 1.0
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
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.
self |
||
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.0
gboolean mm_modem_3gpp_ussd_cancel_finish (MMModem3gppUssd *self
,GAsyncResult *res
,GError **error
);
Finishes an operation started with mm_modem_3gpp_ussd_cancel()
.
self |
||
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to
|
|
error |
Return location for error or |
Since: 1.0
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.
self |
||
cancellable |
A GCancellable or |
[allow-none] |
error |
Return location for error or |
Since: 1.0
struct MMModem3gppUssd;
The MMModem3gppUssd structure contains private data and should only be accessed using the provided API.