ModemManager.GdbusModem3gppUssd

g GObject.GInterface GObject.GInterface ModemManager.GdbusModem3gppUssd ModemManager.GdbusModem3gppUssd GObject.GInterface->ModemManager.GdbusModem3gppUssd

Implementations:

ModemManager.GdbusModem3gppUssdProxy, ModemManager.GdbusModem3gppUssdSkeleton

Methods

class

interface_info ()

class

override_properties (klass, property_id_begin)

call_cancel (cancellable, callback, *user_data)

call_cancel_finish (res)

call_cancel_sync (cancellable)

call_initiate (arg_command, cancellable, callback, *user_data)

call_initiate_finish (res)

call_initiate_sync (arg_command, cancellable)

call_respond (arg_response, cancellable, callback, *user_data)

call_respond_finish (res)

call_respond_sync (arg_response, cancellable)

complete_cancel (invocation)

complete_initiate (invocation, reply)

complete_respond (invocation, reply)

Virtual Methods

do_handle_cancel (invocation)

do_handle_initiate (invocation, arg_command)

do_handle_respond (invocation, arg_response)

Properties

Name

Type

Flags

Short Description

network-notification

str

r/w

NetworkNotification

network-request

str

r/w

NetworkRequest

state

int

r/w

State

Signals

Name

Short Description

handle-cancel

Signal emitted when a remote caller is invoking the ‘Cancel() [gdbus-method-org-freedesktop-ModemManager1-Modem-Modem3gpp-Ussd.Cancel]’ D-Bus method.

handle-initiate

Signal emitted when a remote caller is invoking the ‘Initiate() [gdbus-method-org-freedesktop-ModemManager1-Modem-Modem3gpp-Ussd.Initiate]’ D-Bus method.

handle-respond

Signal emitted when a remote caller is invoking the ‘Respond() [gdbus-method-org-freedesktop-ModemManager1-Modem-Modem3gpp-Ussd.Respond]’ D-Bus method.

Fields

None

Class Details

class ModemManager.GdbusModem3gppUssd
Bases:

GObject.GInterface

Structure:

ModemManager.GdbusModem3gppUssdIface

Abstract interface type for the D-Bus interface ‘org.freedesktop.ModemManager1.Modem.Modem3gpp.Ussd [gdbus-interface-org-freedesktop-ModemManager1-Modem-Modem3gpp-Ussd.top_of_page]’.

classmethod interface_info()
Returns:

A Gio.DBusInterfaceInfo. Do not free.

Return type:

Gio.DBusInterfaceInfo

Gets a machine-readable description of the ‘org.freedesktop.ModemManager1.Modem.Modem3gpp.Ussd [gdbus-interface-org-freedesktop-ModemManager1-Modem-Modem3gpp-Ussd.top_of_page]’ D-Bus interface.

classmethod override_properties(klass, property_id_begin)
Parameters:
Returns:

The last property id.

Return type:

int

Overrides all GObject.Object properties in the ModemManager.GdbusModem3gppUssd interface for a concrete class. The properties are overridden in the order they are defined.

call_cancel(cancellable, callback, *user_data)
Parameters:

Asynchronously invokes the ‘Cancel() [gdbus-method-org-freedesktop-ModemManager1-Modem-Modem3gpp-Ussd.Cancel]’ D-Bus method on self. When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from (see GLib.MainContext.push_thread_default()). You can then call ModemManager.GdbusModem3gppUssd.call_cancel_finish() to get the result of the operation.

See ModemManager.GdbusModem3gppUssd.call_cancel_sync() for the synchronous, blocking version of this method.

call_cancel_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to ModemManager.GdbusModem3gppUssd.call_cancel().

Raises:

GLib.Error

Returns:

True if the call succeeded, False if error is set.

Return type:

bool

Finishes an operation started with ModemManager.GdbusModem3gppUssd.call_cancel().

call_cancel_sync(cancellable)
Parameters:

cancellable (Gio.Cancellable or None) – A Gio.Cancellable or None.

Raises:

GLib.Error

Returns:

True if the call succeeded, False if error is set.

Return type:

bool

Synchronously invokes the ‘Cancel() [gdbus-method-org-freedesktop-ModemManager1-Modem-Modem3gpp-Ussd.Cancel]’ D-Bus method on self. The calling thread is blocked until a reply is received.

See ModemManager.GdbusModem3gppUssd.call_cancel() for the asynchronous version of this method.

call_initiate(arg_command, cancellable, callback, *user_data)
Parameters:

Asynchronously invokes the ‘Initiate() [gdbus-method-org-freedesktop-ModemManager1-Modem-Modem3gpp-Ussd.Initiate]’ D-Bus method on self. When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from (see GLib.MainContext.push_thread_default()). You can then call ModemManager.GdbusModem3gppUssd.call_initiate_finish() to get the result of the operation.

See ModemManager.GdbusModem3gppUssd.call_initiate_sync() for the synchronous, blocking version of this method.

call_initiate_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to ModemManager.GdbusModem3gppUssd.call_initiate().

Raises:

GLib.Error

Returns:

True if the call succeeded, False if error is set.

out_reply:

Return location for return parameter or None to ignore.

Return type:

(bool, out_reply: str)

Finishes an operation started with ModemManager.GdbusModem3gppUssd.call_initiate().

call_initiate_sync(arg_command, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

True if the call succeeded, False if error is set.

out_reply:

Return location for return parameter or None to ignore.

Return type:

(bool, out_reply: str)

Synchronously invokes the ‘Initiate() [gdbus-method-org-freedesktop-ModemManager1-Modem-Modem3gpp-Ussd.Initiate]’ D-Bus method on self. The calling thread is blocked until a reply is received.

See ModemManager.GdbusModem3gppUssd.call_initiate() for the asynchronous version of this method.

call_respond(arg_response, cancellable, callback, *user_data)
Parameters:

Asynchronously invokes the ‘Respond() [gdbus-method-org-freedesktop-ModemManager1-Modem-Modem3gpp-Ussd.Respond]’ D-Bus method on self. When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from (see GLib.MainContext.push_thread_default()). You can then call ModemManager.GdbusModem3gppUssd.call_respond_finish() to get the result of the operation.

See ModemManager.GdbusModem3gppUssd.call_respond_sync() for the synchronous, blocking version of this method.

call_respond_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to ModemManager.GdbusModem3gppUssd.call_respond().

Raises:

GLib.Error

Returns:

True if the call succeeded, False if error is set.

out_reply:

Return location for return parameter or None to ignore.

Return type:

(bool, out_reply: str)

Finishes an operation started with ModemManager.GdbusModem3gppUssd.call_respond().

call_respond_sync(arg_response, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

True if the call succeeded, False if error is set.

out_reply:

Return location for return parameter or None to ignore.

Return type:

(bool, out_reply: str)

Synchronously invokes the ‘Respond() [gdbus-method-org-freedesktop-ModemManager1-Modem-Modem3gpp-Ussd.Respond]’ D-Bus method on self. The calling thread is blocked until a reply is received.

See ModemManager.GdbusModem3gppUssd.call_respond() for the asynchronous version of this method.

complete_cancel(invocation)
Parameters:

invocation (Gio.DBusMethodInvocation) – A Gio.DBusMethodInvocation.

Helper function used in service implementations to finish handling invocations of the ‘Cancel() [gdbus-method-org-freedesktop-ModemManager1-Modem-Modem3gpp-Ussd.Cancel]’ D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.

This method will free invocation, you cannot use it afterwards.

complete_initiate(invocation, reply)
Parameters:

Helper function used in service implementations to finish handling invocations of the ‘Initiate() [gdbus-method-org-freedesktop-ModemManager1-Modem-Modem3gpp-Ussd.Initiate]’ D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.

This method will free invocation, you cannot use it afterwards.

complete_respond(invocation, reply)
Parameters:

Helper function used in service implementations to finish handling invocations of the ‘Respond() [gdbus-method-org-freedesktop-ModemManager1-Modem-Modem3gpp-Ussd.Respond]’ D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.

This method will free invocation, you cannot use it afterwards.

do_handle_cancel(invocation) virtual
Parameters:

invocation (Gio.DBusMethodInvocation) –

Return type:

bool

do_handle_initiate(invocation, arg_command) virtual
Parameters:
Return type:

bool

do_handle_respond(invocation, arg_response) virtual
Parameters:
Return type:

bool

Signal Details

ModemManager.GdbusModem3gppUssd.signals.handle_cancel(gdbus_modem3gpp_ussd, invocation)
Signal Name:

handle-cancel

Flags:

RUN_LAST

Parameters:
Returns:

Gio.DBUS_METHOD_INVOCATION_HANDLED or True if the invocation was handled, Gio.DBUS_METHOD_INVOCATION_UNHANDLED or False to let other signal handlers run.

Return type:

bool

Signal emitted when a remote caller is invoking the ‘Cancel() [gdbus-method-org-freedesktop-ModemManager1-Modem-Modem3gpp-Ussd.Cancel]’ D-Bus method.

If a signal handler returns True, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually call ModemManager.GdbusModem3gppUssd.complete_cancel() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the Gio.DBusError.UNKNOWN_METHOD error is returned.

ModemManager.GdbusModem3gppUssd.signals.handle_initiate(gdbus_modem3gpp_ussd, invocation, arg_command)
Signal Name:

handle-initiate

Flags:

RUN_LAST

Parameters:
Returns:

Gio.DBUS_METHOD_INVOCATION_HANDLED or True if the invocation was handled, Gio.DBUS_METHOD_INVOCATION_UNHANDLED or False to let other signal handlers run.

Return type:

bool

Signal emitted when a remote caller is invoking the ‘Initiate() [gdbus-method-org-freedesktop-ModemManager1-Modem-Modem3gpp-Ussd.Initiate]’ D-Bus method.

If a signal handler returns True, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually call ModemManager.GdbusModem3gppUssd.complete_initiate() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the Gio.DBusError.UNKNOWN_METHOD error is returned.

ModemManager.GdbusModem3gppUssd.signals.handle_respond(gdbus_modem3gpp_ussd, invocation, arg_response)
Signal Name:

handle-respond

Flags:

RUN_LAST

Parameters:
Returns:

Gio.DBUS_METHOD_INVOCATION_HANDLED or True if the invocation was handled, Gio.DBUS_METHOD_INVOCATION_UNHANDLED or False to let other signal handlers run.

Return type:

bool

Signal emitted when a remote caller is invoking the ‘Respond() [gdbus-method-org-freedesktop-ModemManager1-Modem-Modem3gpp-Ussd.Respond]’ D-Bus method.

If a signal handler returns True, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually call ModemManager.GdbusModem3gppUssd.complete_respond() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the Gio.DBusError.UNKNOWN_METHOD error is returned.

Property Details

ModemManager.GdbusModem3gppUssd.props.network_notification
Name:

network-notification

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

Represents the D-Bus property ‘“NetworkNotification” [gdbus-property-org-freedesktop-ModemManager1-Modem-Modem3gpp-Ussd.NetworkNotification]’.

Since the D-Bus property for this GObject.Object property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

ModemManager.GdbusModem3gppUssd.props.network_request
Name:

network-request

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

Represents the D-Bus property ‘“NetworkRequest” [gdbus-property-org-freedesktop-ModemManager1-Modem-Modem3gpp-Ussd.NetworkRequest]’.

Since the D-Bus property for this GObject.Object property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

ModemManager.GdbusModem3gppUssd.props.state
Name:

state

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE

Represents the D-Bus property ‘“State” [gdbus-property-org-freedesktop-ModemManager1-Modem-Modem3gpp-Ussd.State]’.

Since the D-Bus property for this GObject.Object property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.