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: - klass (GObject.ObjectClass) – The class structure for aGObject.Objectderived class.
- property_id_begin (int) – The property id to assign to the first overridden property.
 - Returns: - The last property id. - Return type: - Overrides all - GObject.Objectproperties in the- ModemManager.GdbusModemOmainterface for a concrete class. The properties are overridden in the order they are defined.
- klass (
 - 
call_accept_network_initiated_session(arg_session_id, arg_accept, cancellable, callback, *user_data)¶
- Parameters: - arg_session_id (int) – Argument to pass with the method invocation.
- arg_accept (bool) – Argument to pass with the method invocation.
- cancellable (Gio.CancellableorNone) – AGio.CancellableorNone.
- callback (Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNone.
- user_data (objectorNone) – User data to pass to callback.
 - 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.
- arg_session_id (
 - 
call_accept_network_initiated_session_finish(res)¶
- Parameters: - res ( - Gio.AsyncResult) – The- Gio.AsyncResultobtained from the- Gio.AsyncReadyCallbackpassed to- ModemManager.GdbusModemOma.call_accept_network_initiated_session().- Raises: - GLib.Error- Returns: - Trueif the call succeeded,- Falseif 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: - arg_session_id (int) – Argument to pass with the method invocation.
- arg_accept (bool) – Argument to pass with the method invocation.
- cancellable (Gio.CancellableorNone) – AGio.CancellableorNone.
 - Raises: - Returns: - Return type: - 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.
- arg_session_id (
 - 
call_cancel_session(cancellable, callback, *user_data)¶
- Parameters: - cancellable (Gio.CancellableorNone) – AGio.CancellableorNone.
- callback (Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNone.
- user_data (objectorNone) – User data to pass to callback.
 - 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.
- cancellable (
 - 
call_cancel_session_finish(res)¶
- Parameters: - res ( - Gio.AsyncResult) – The- Gio.AsyncResultobtained from the- Gio.AsyncReadyCallbackpassed to- ModemManager.GdbusModemOma.call_cancel_session().- Raises: - GLib.Error- Returns: - Trueif the call succeeded,- Falseif error is set.- Return type: - bool- Finishes an operation started with - ModemManager.GdbusModemOma.call_cancel_session().
 - 
call_cancel_session_sync(cancellable)¶
- Parameters: - cancellable ( - Gio.Cancellableor- None) – A- Gio.Cancellableor- None.- Raises: - GLib.Error- Returns: - Trueif the call succeeded,- Falseif 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: - arg_features (int) – Argument to pass with the method invocation.
- cancellable (Gio.CancellableorNone) – AGio.CancellableorNone.
- callback (Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNone.
- user_data (objectorNone) – User data to pass to callback.
 - 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.
- arg_features (
 - 
call_setup_finish(res)¶
- Parameters: - res ( - Gio.AsyncResult) – The- Gio.AsyncResultobtained from the- Gio.AsyncReadyCallbackpassed to- ModemManager.GdbusModemOma.call_setup().- Raises: - GLib.Error- Returns: - Trueif the call succeeded,- Falseif error is set.- Return type: - bool- Finishes an operation started with - ModemManager.GdbusModemOma.call_setup().
 - 
call_setup_sync(arg_features, cancellable)¶
- Parameters: - arg_features (int) – Argument to pass with the method invocation.
- cancellable (Gio.CancellableorNone) – AGio.CancellableorNone.
 - Raises: - Returns: - Return type: - 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.
- arg_features (
 - 
call_start_client_initiated_session(arg_session_type, cancellable, callback, *user_data)¶
- Parameters: - arg_session_type (int) – Argument to pass with the method invocation.
- cancellable (Gio.CancellableorNone) – AGio.CancellableorNone.
- callback (Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNone.
- user_data (objectorNone) – User data to pass to callback.
 - 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.
- arg_session_type (
 - 
call_start_client_initiated_session_finish(res)¶
- Parameters: - res ( - Gio.AsyncResult) – The- Gio.AsyncResultobtained from the- Gio.AsyncReadyCallbackpassed to- ModemManager.GdbusModemOma.call_start_client_initiated_session().- Raises: - GLib.Error- Returns: - Trueif the call succeeded,- Falseif 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: - arg_session_type (int) – Argument to pass with the method invocation.
- cancellable (Gio.CancellableorNone) – AGio.CancellableorNone.
 - Raises: - Returns: - Return type: - 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.
- arg_session_type (
 - 
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: - 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: - invocation (Gio.DBusMethodInvocation) –
- arg_session_id (int) –
- arg_accept (bool) –
 - Return type: 
- invocation (
 - 
do_handle_cancel_session(invocation) virtual¶
- Parameters: - invocation ( - Gio.DBusMethodInvocation) –- Return type: - bool
 - 
do_handle_setup(invocation, arg_features) virtual¶
- Parameters: - invocation (Gio.DBusMethodInvocation) –
- arg_features (int) –
 - Return type: 
- invocation (
 - 
do_handle_start_client_initiated_session(invocation, arg_session_type) virtual¶
- Parameters: - invocation (Gio.DBusMethodInvocation) –
- arg_session_type (int) –
 - Return type: 
- invocation (
 
- 
classmethod 
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: - Parameters: - gdbus_modem_oma (ModemManager.GdbusModemOma) – The object which received the signal
- invocation (Gio.DBusMethodInvocation) – AGio.DBusMethodInvocation.
- arg_session_id (int) – Argument passed by remote caller.
- arg_accept (bool) – Argument passed by remote caller.
 - Returns: - Trueif the invocation was handled,- Falseto let other signal handlers run.- Return type: - 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 order signal handlers will run. If no signal handler handles the invocation, the- Gio.DBusError.UNKNOWN_METHODerror is returned.
- gdbus_modem_oma (
- 
ModemManager.GdbusModemOma.signals.handle_cancel_session(gdbus_modem_oma, invocation)¶
- Signal Name: - handle-cancel-session- Flags: - Parameters: - gdbus_modem_oma (ModemManager.GdbusModemOma) – The object which received the signal
- invocation (Gio.DBusMethodInvocation) – AGio.DBusMethodInvocation.
 - Returns: - Trueif the invocation was handled,- Falseto let other signal handlers run.- Return type: - 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 order signal handlers will run. If no signal handler handles the invocation, the- Gio.DBusError.UNKNOWN_METHODerror is returned.
- gdbus_modem_oma (
- 
ModemManager.GdbusModemOma.signals.handle_setup(gdbus_modem_oma, invocation, arg_features)¶
- Signal Name: - handle-setup- Flags: - Parameters: - gdbus_modem_oma (ModemManager.GdbusModemOma) – The object which received the signal
- invocation (Gio.DBusMethodInvocation) – AGio.DBusMethodInvocation.
- arg_features (int) – Argument passed by remote caller.
 - Returns: - Trueif the invocation was handled,- Falseto let other signal handlers run.- Return type: - 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 order signal handlers will run. If no signal handler handles the invocation, the- Gio.DBusError.UNKNOWN_METHODerror is returned.
- gdbus_modem_oma (
- 
ModemManager.GdbusModemOma.signals.handle_start_client_initiated_session(gdbus_modem_oma, invocation, arg_session_type)¶
- Signal Name: - handle-start-client-initiated-session- Flags: - Parameters: - gdbus_modem_oma (ModemManager.GdbusModemOma) – The object which received the signal
- invocation (Gio.DBusMethodInvocation) – AGio.DBusMethodInvocation.
- arg_session_type (int) – Argument passed by remote caller.
 - Returns: - Trueif the invocation was handled,- Falseto let other signal handlers run.- Return type: - 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 order signal handlers will run. If no signal handler handles the invocation, the- Gio.DBusError.UNKNOWN_METHODerror is returned.
- gdbus_modem_oma (
- 
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: - 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. 
- gdbus_modem_oma (
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.Objectproperty 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.Objectproperty 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.Objectproperty 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.Objectproperty 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.