ModemManager.GdbusModemOma¶
- Implementations:
ModemManager.GdbusModemOmaProxy
,ModemManager.GdbusModemOmaSkeleton
Methods¶
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
|
|
|
|
|
|
|
|
|
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
Features |
||
r/w |
PendingNetworkInitiatedSessions |
||
r/w |
SessionState |
||
r/w |
SessionType |
Signals¶
Name |
Short Description |
---|---|
Signal emitted when a remote caller is invoking the ‘AcceptNetworkInitiatedSession() [gdbus-method-org-freedesktop-ModemManager1-Modem-Oma.AcceptNetworkInitiatedSession]’ D-Bus method. |
|
Signal emitted when a remote caller is invoking the ‘CancelSession() [gdbus-method-org-freedesktop-ModemManager1-Modem-Oma.CancelSession]’ D-Bus method. |
|
Signal emitted when a remote caller is invoking the ‘Setup() [gdbus-method-org-freedesktop-ModemManager1-Modem-Oma.Setup]’ D-Bus method. |
|
Signal emitted when a remote caller is invoking the ‘StartClientInitiatedSession() [gdbus-method-org-freedesktop-ModemManager1-Modem-Oma.StartClientInitiatedSession]’ D-Bus method. |
|
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:
- Structure:
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:
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.Object
derived 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.Object
properties in theModemManager.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:
arg_session_id (
int
) – Argument to pass with the method invocation.arg_accept (
bool
) – Argument to pass with the method invocation.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.callback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
.
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 callModemManager.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
) – TheGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed toModemManager.GdbusModemOma.call_accept_network_initiated_session
().- Raises:
- Returns:
- Return type:
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.Cancellable
orNone
) – AGio.Cancellable
orNone
.
- 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.
- call_cancel_session(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 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 callModemManager.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
) – TheGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed toModemManager.GdbusModemOma.call_cancel_session
().- Raises:
- Returns:
- Return type:
Finishes an operation started with
ModemManager.GdbusModemOma.call_cancel_session
().
- call_cancel_session_sync(cancellable)¶
- Parameters:
cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.- Raises:
- Returns:
- Return type:
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.Cancellable
orNone
) – AGio.Cancellable
orNone
.callback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
.
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 callModemManager.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
) – TheGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed toModemManager.GdbusModemOma.call_setup
().- Raises:
- Returns:
- Return type:
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.Cancellable
orNone
) – AGio.Cancellable
orNone
.
- 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.
- 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.Cancellable
orNone
) – AGio.Cancellable
orNone
.callback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
.
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 callModemManager.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
) – TheGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed toModemManager.GdbusModemOma.call_start_client_initiated_session
().- Raises:
- Returns:
- Return type:
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.Cancellable
orNone
) – AGio.Cancellable
orNone
.
- 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.
- complete_accept_network_initiated_session(invocation)¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) – AGio.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
) – AGio.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
) – AGio.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
) – AGio.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:
- do_handle_cancel_session(invocation) virtual¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) –- Return type:
- do_handle_setup(invocation, arg_features) virtual¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) –arg_features (
int
) –
- Return type:
- do_handle_start_client_initiated_session(invocation, arg_session_type) virtual¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) –arg_session_type (
int
) –
- Return type:
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 signalinvocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.arg_session_id (
int
) – Argument passed by remote caller.arg_accept (
bool
) – Argument passed by remote caller.
- Returns:
Gio.DBUS_METHOD_INVOCATION_HANDLED
orTrue
if the invocation was handled,Gio.DBUS_METHOD_INVOCATION_UNHANDLED
orFalse
to 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 callModemManager.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, theGio.DBusError.UNKNOWN_METHOD
error is returned.
- 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 signalinvocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.
- Returns:
Gio.DBUS_METHOD_INVOCATION_HANDLED
orTrue
if the invocation was handled,Gio.DBUS_METHOD_INVOCATION_UNHANDLED
orFalse
to 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 callModemManager.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, theGio.DBusError.UNKNOWN_METHOD
error is returned.
- 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 signalinvocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.arg_features (
int
) – Argument passed by remote caller.
- Returns:
Gio.DBUS_METHOD_INVOCATION_HANDLED
orTrue
if the invocation was handled,Gio.DBUS_METHOD_INVOCATION_UNHANDLED
orFalse
to 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 callModemManager.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, theGio.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:
- Parameters:
gdbus_modem_oma (
ModemManager.GdbusModemOma
) – The object which received the signalinvocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.arg_session_type (
int
) – Argument passed by remote caller.
- Returns:
Gio.DBUS_METHOD_INVOCATION_HANDLED
orTrue
if the invocation was handled,Gio.DBUS_METHOD_INVOCATION_UNHANDLED
orFalse
to 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 callModemManager.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, theGio.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:
- Parameters:
gdbus_modem_oma (
ModemManager.GdbusModemOma
) – The object which received the signalarg_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¶
-
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:
- Default Value:
- Flags:
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¶
-
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¶
-
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.