ModemManager.GdbusModemOma

g GObject.GInterface GObject.GInterface ModemManager.GdbusModemOma ModemManager.GdbusModemOma GObject.GInterface->ModemManager.GdbusModemOma

Implementations:

ModemManager.GdbusModemOmaProxy, ModemManager.GdbusModemOmaSkeleton

Methods

class

interface_info ()

class

override_properties (klass, property_id_begin)

call_accept_network_initiated_session (arg_session_id, arg_accept, cancellable, callback, *user_data)

call_accept_network_initiated_session_finish (res)

call_accept_network_initiated_session_sync (arg_session_id, arg_accept, cancellable)

call_cancel_session (cancellable, callback, *user_data)

call_cancel_session_finish (res)

call_cancel_session_sync (cancellable)

call_setup (arg_features, cancellable, callback, *user_data)

call_setup_finish (res)

call_setup_sync (arg_features, cancellable)

call_start_client_initiated_session (arg_session_type, cancellable, callback, *user_data)

call_start_client_initiated_session_finish (res)

call_start_client_initiated_session_sync (arg_session_type, cancellable)

complete_accept_network_initiated_session (invocation)

complete_cancel_session (invocation)

complete_setup (invocation)

complete_start_client_initiated_session (invocation)

emit_session_state_changed (arg_old_session_state, arg_new_session_state, arg_session_state_failed_reason)

Virtual Methods

do_handle_accept_network_initiated_session (invocation, arg_session_id, arg_accept)

do_handle_cancel_session (invocation)

do_handle_setup (invocation, arg_features)

do_handle_start_client_initiated_session (invocation, arg_session_type)

do_session_state_changed (arg_old_session_state, arg_new_session_state, arg_session_state_failed_reason)

Properties

Name

Type

Flags

Short Description

features

int

r/w

Features

pending-network-initiated-sessions

GLib.Variant

r/w

PendingNetworkInitiatedSessions

session-state

int

r/w

SessionState

session-type

int

r/w

SessionType

Signals

Name

Short Description

handle-accept-network-initiated-session

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

handle-cancel-session

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

handle-setup

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

handle-start-client-initiated-session

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

session-state-changed

On the client-side, this signal is emitted whenever the D-Bus signal ‘“SessionStateChanged” [gdbus-signal-org-freedesktop-ModemManager1-Modem-Oma.SessionStateChanged]’ is received.

Fields

None

Class Details

class ModemManager.GdbusModemOma
Bases:

GObject.GInterface

Structure:

ModemManager.GdbusModemOmaIface

Abstract interface type for the D-Bus interface ‘org.freedesktop.ModemManager1.Modem.Oma [gdbus-interface-org-freedesktop-ModemManager1-Modem-Oma.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.Oma [gdbus-interface-org-freedesktop-ModemManager1-Modem-Oma.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.GdbusModemOma interface for a concrete class. The properties are overridden in the order they are defined.

call_accept_network_initiated_session(arg_session_id, arg_accept, cancellable, callback, *user_data)
Parameters:

Asynchronously invokes the ‘AcceptNetworkInitiatedSession() [gdbus-method-org-freedesktop-ModemManager1-Modem-Oma.AcceptNetworkInitiatedSession]’ 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.GdbusModemOma.call_accept_network_initiated_session_finish() to get the result of the operation.

See ModemManager.GdbusModemOma.call_accept_network_initiated_session_sync() for the synchronous, blocking version of this method.

call_accept_network_initiated_session_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to ModemManager.GdbusModemOma.call_accept_network_initiated_session().

Raises:

GLib.Error

Returns:

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

Return type:

bool

Finishes an operation started with ModemManager.GdbusModemOma.call_accept_network_initiated_session().

call_accept_network_initiated_session_sync(arg_session_id, arg_accept, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

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

Return type:

bool

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

See ModemManager.GdbusModemOma.call_accept_network_initiated_session() for the asynchronous version of this method.

call_cancel_session(cancellable, callback, *user_data)
Parameters:

Asynchronously invokes the ‘CancelSession() [gdbus-method-org-freedesktop-ModemManager1-Modem-Oma.CancelSession]’ 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.GdbusModemOma.call_cancel_session_finish() to get the result of the operation.

See ModemManager.GdbusModemOma.call_cancel_session_sync() for the synchronous, blocking version of this method.

call_cancel_session_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to ModemManager.GdbusModemOma.call_cancel_session().

Raises:

GLib.Error

Returns:

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

Return type:

bool

Finishes an operation started with ModemManager.GdbusModemOma.call_cancel_session().

call_cancel_session_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 ‘CancelSession() [gdbus-method-org-freedesktop-ModemManager1-Modem-Oma.CancelSession]’ D-Bus method on self. The calling thread is blocked until a reply is received.

See ModemManager.GdbusModemOma.call_cancel_session() for the asynchronous version of this method.

call_setup(arg_features, cancellable, callback, *user_data)
Parameters:

Asynchronously invokes the ‘Setup() [gdbus-method-org-freedesktop-ModemManager1-Modem-Oma.Setup]’ 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.GdbusModemOma.call_setup_finish() to get the result of the operation.

See ModemManager.GdbusModemOma.call_setup_sync() for the synchronous, blocking version of this method.

call_setup_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to ModemManager.GdbusModemOma.call_setup().

Raises:

GLib.Error

Returns:

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

Return type:

bool

Finishes an operation started with ModemManager.GdbusModemOma.call_setup().

call_setup_sync(arg_features, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

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

Return type:

bool

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

See ModemManager.GdbusModemOma.call_setup() for the asynchronous version of this method.

call_start_client_initiated_session(arg_session_type, cancellable, callback, *user_data)
Parameters:

Asynchronously invokes the ‘StartClientInitiatedSession() [gdbus-method-org-freedesktop-ModemManager1-Modem-Oma.StartClientInitiatedSession]’ 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.GdbusModemOma.call_start_client_initiated_session_finish() to get the result of the operation.

See ModemManager.GdbusModemOma.call_start_client_initiated_session_sync() for the synchronous, blocking version of this method.

call_start_client_initiated_session_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to ModemManager.GdbusModemOma.call_start_client_initiated_session().

Raises:

GLib.Error

Returns:

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

Return type:

bool

Finishes an operation started with ModemManager.GdbusModemOma.call_start_client_initiated_session().

call_start_client_initiated_session_sync(arg_session_type, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

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

Return type:

bool

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

See ModemManager.GdbusModemOma.call_start_client_initiated_session() for the asynchronous version of this method.

complete_accept_network_initiated_session(invocation)
Parameters:

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

Helper function used in service implementations to finish handling invocations of the ‘AcceptNetworkInitiatedSession() [gdbus-method-org-freedesktop-ModemManager1-Modem-Oma.AcceptNetworkInitiatedSession]’ 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_cancel_session(invocation)
Parameters:

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

Helper function used in service implementations to finish handling invocations of the ‘CancelSession() [gdbus-method-org-freedesktop-ModemManager1-Modem-Oma.CancelSession]’ 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_setup(invocation)
Parameters:

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

Helper function used in service implementations to finish handling invocations of the ‘Setup() [gdbus-method-org-freedesktop-ModemManager1-Modem-Oma.Setup]’ 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_start_client_initiated_session(invocation)
Parameters:

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

Helper function used in service implementations to finish handling invocations of the ‘StartClientInitiatedSession() [gdbus-method-org-freedesktop-ModemManager1-Modem-Oma.StartClientInitiatedSession]’ 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.

emit_session_state_changed(arg_old_session_state, arg_new_session_state, arg_session_state_failed_reason)
Parameters:
  • arg_old_session_state (int) – Argument to pass with the signal.

  • arg_new_session_state (int) – Argument to pass with the signal.

  • arg_session_state_failed_reason (int) – Argument to pass with the signal.

Emits the ‘“SessionStateChanged” [gdbus-signal-org-freedesktop-ModemManager1-Modem-Oma.SessionStateChanged]’ D-Bus signal.

do_handle_accept_network_initiated_session(invocation, arg_session_id, arg_accept) virtual
Parameters:
Return type:

bool

do_handle_cancel_session(invocation) virtual
Parameters:

invocation (Gio.DBusMethodInvocation) –

Return type:

bool

do_handle_setup(invocation, arg_features) virtual
Parameters:
Return type:

bool

do_handle_start_client_initiated_session(invocation, arg_session_type) virtual
Parameters:
Return type:

bool

do_session_state_changed(arg_old_session_state, arg_new_session_state, arg_session_state_failed_reason) virtual
Parameters:
  • arg_old_session_state (int) –

  • arg_new_session_state (int) –

  • arg_session_state_failed_reason (int) –

Signal Details

ModemManager.GdbusModemOma.signals.handle_accept_network_initiated_session(gdbus_modem_oma, invocation, arg_session_id, arg_accept)
Signal Name:

handle-accept-network-initiated-session

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 ‘AcceptNetworkInitiatedSession() [gdbus-method-org-freedesktop-ModemManager1-Modem-Oma.AcceptNetworkInitiatedSession]’ 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.GdbusModemOma.complete_accept_network_initiated_session() 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.GdbusModemOma.signals.handle_cancel_session(gdbus_modem_oma, invocation)
Signal Name:

handle-cancel-session

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 ‘CancelSession() [gdbus-method-org-freedesktop-ModemManager1-Modem-Oma.CancelSession]’ 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.GdbusModemOma.complete_cancel_session() 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.GdbusModemOma.signals.handle_setup(gdbus_modem_oma, invocation, arg_features)
Signal Name:

handle-setup

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 ‘Setup() [gdbus-method-org-freedesktop-ModemManager1-Modem-Oma.Setup]’ 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.GdbusModemOma.complete_setup() 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.GdbusModemOma.signals.handle_start_client_initiated_session(gdbus_modem_oma, invocation, arg_session_type)
Signal Name:

handle-start-client-initiated-session

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 ‘StartClientInitiatedSession() [gdbus-method-org-freedesktop-ModemManager1-Modem-Oma.StartClientInitiatedSession]’ 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.GdbusModemOma.complete_start_client_initiated_session() 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.GdbusModemOma.signals.session_state_changed(gdbus_modem_oma, arg_old_session_state, arg_new_session_state, arg_session_state_failed_reason)
Signal Name:

session-state-changed

Flags:

RUN_LAST

Parameters:
  • gdbus_modem_oma (ModemManager.GdbusModemOma) – The object which received the signal

  • arg_old_session_state (int) – Argument.

  • arg_new_session_state (int) – Argument.

  • arg_session_state_failed_reason (int) – Argument.

On the client-side, this signal is emitted whenever the D-Bus signal ‘“SessionStateChanged” [gdbus-signal-org-freedesktop-ModemManager1-Modem-Oma.SessionStateChanged]’ is received.

On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal.

Property Details

ModemManager.GdbusModemOma.props.features
Name:

features

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE

Represents the D-Bus property ‘“Features” [gdbus-property-org-freedesktop-ModemManager1-Modem-Oma.Features]’.

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.GdbusModemOma.props.pending_network_initiated_sessions
Name:

pending-network-initiated-sessions

Type:

GLib.Variant

Default Value:

None

Flags:

READABLE, WRITABLE

Represents the D-Bus property ‘“PendingNetworkInitiatedSessions” [gdbus-property-org-freedesktop-ModemManager1-Modem-Oma.PendingNetworkInitiatedSessions]’.

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.GdbusModemOma.props.session_state
Name:

session-state

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE

Represents the D-Bus property ‘“SessionState” [gdbus-property-org-freedesktop-ModemManager1-Modem-Oma.SessionState]’.

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.GdbusModemOma.props.session_type
Name:

session-type

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE

Represents the D-Bus property ‘“SessionType” [gdbus-property-org-freedesktop-ModemManager1-Modem-Oma.SessionType]’.

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.