ModemManager.Modem3gppUssd¶
- Subclasses:
None
Methods¶
- Inherited:
ModemManager.GdbusModem3gppUssdProxy (6), Gio.DBusProxy (25), GObject.Object (37), Gio.AsyncInitable (4), Gio.DBusInterface (3), Gio.Initable (2), ModemManager.GdbusModem3gppUssd (14)
- Structs:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
Properties¶
- Inherited:
Signals¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
||
unused |
r |
Class Details¶
- class ModemManager.Modem3gppUssd(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
The
ModemManager.Modem3gppUssd
structure contains private data and should only be accessed using the provided API.- cancel(cancellable, callback, *user_data)¶
- Parameters:
cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.callback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
.
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 callModemManager.Modem3gppUssd.cancel_finish
() to get the result of the operation.See
ModemManager.Modem3gppUssd.cancel_sync
() for the synchronous, blocking version of this method.New in version 1.0.
- cancel_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – TheGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed toModemManager.Modem3gppUssd.cancel
().- Raises:
- Returns:
True
if the session was successfully cancelled,False
if error is set.- Return type:
Finishes an operation started with
ModemManager.Modem3gppUssd.cancel
().New in version 1.0.
- cancel_sync(cancellable)¶
- Parameters:
cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.- Raises:
- Returns:
True
if the session was successfully cancelled,False
if error is set.- Return type:
Synchronously cancels an ongoing USSD session, either mobile or network initiated.
The calling thread is blocked until a reply is received. See
ModemManager.Modem3gppUssd.cancel
() for the asynchronous version of this method.New in version 1.0.
- dup_network_notification()¶
- Returns:
The network notification, or
None
if none available. The returned value should be freed withGLib.free
().- Return type:
Gets a copy of any pending network-initiated request to which no USSD response is required.
New in version 1.0.
- dup_network_request()¶
- Returns:
The network request, or
None
if none available. The returned value should be freed withGLib.free
().- Return type:
Gets a copy of any pending network-initiated request.
New in version 1.0.
- 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.Object
object which implements this interface.New in version 1.0.
- get_network_notification()¶
-
Gets any pending network-initiated request to which no USSD response is required.
The returned value is only valid until the property changes so it is only safe to use this function on the thread where self was constructed. Use
ModemManager.Modem3gppUssd.dup_network_notification
() if on another thread.New in version 1.0.
- get_network_request()¶
-
Gets any pending network-initiated request.
The returned value is only valid until the property changes so it is only safe to use this function on the thread where self was constructed. Use
ModemManager.Modem3gppUssd.dup_network_request
() if on another thread.New in version 1.0.
- get_path()¶
- Returns:
The DBus path of the
ModemManager.Object
object.- Return type:
Gets the DBus path of the
ModemManager.Object
which implements this interface.New in version 1.0.
- get_state()¶
- Returns:
A
ModemManager.Modem3gppUssdSessionState
value, specifying the current state.- Return type:
Get the state of the ongoing USSD session, if any.
New in version 1.0.
- initiate(command, cancellable, callback, *user_data)¶
- Parameters:
command (
str
) – The command to start the USSD session with.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.callback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
.
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 callModemManager.Modem3gppUssd.initiate_finish
() to get the result of the operation.See
ModemManager.Modem3gppUssd.initiate_sync
() for the synchronous, blocking version of this method.New in version 1.0.
- initiate_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – TheGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed toModemManager.Modem3gppUssd.initiate
().- Raises:
- Returns:
The response from the network, if any. The returned value should be freed with
GLib.free
().- Return type:
Finishes an operation started with
ModemManager.Modem3gppUssd.initiate
().New in version 1.0.
- initiate_sync(command, cancellable)¶
- Parameters:
command (
str
) – The command to start the USSD session with.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.
- Raises:
- Returns:
The response from the network, if any. The returned value should be freed with
GLib.free
().- Return type:
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
ModemManager.Modem3gppUssd.initiate
() for the asynchronous version of this method.New in version 1.0.
- respond(response, cancellable, callback, *user_data)¶
- Parameters:
response (
str
) – The response to network-initiated USSD command, or a response to a request for further input.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.callback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
.
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
ModemManager.Modem3gppUssd.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 callModemManager.Modem3gppUssd.respond_finish
() to get the result of the operation.See
ModemManager.Modem3gppUssd.respond_sync
() for the synchronous, blocking version of this method.New in version 1.0.
- respond_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – TheGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed toModemManager.Modem3gppUssd.respond
().- Raises:
- 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
GLib.free
().- Return type:
Finishes an operation started with
ModemManager.Modem3gppUssd.respond
().New in version 1.0.
- respond_sync(response, cancellable)¶
- Parameters:
response (
str
) – The response to network-initiated USSD command, or a response to a request for further input.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.
- Raises:
- 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
GLib.free
().- Return type:
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
ModemManager.Modem3gppUssd.initiate
().The calling thread is blocked until a reply is received. See
ModemManager.Modem3gppUssd.respond
() for the asynchronous version of this method.New in version 1.0.