ModemManager.GdbusModemSignal¶
| Implementations: | |
|---|---|
| ModemManager.GdbusModemSignalProxy,ModemManager.GdbusModemSignalSkeleton | |
Methods¶
| class | interface_info() | 
| class | override_properties(klass, property_id_begin) | 
| call_setup(arg_rate, cancellable, callback, *user_data) | |
| call_setup_finish(res) | |
| call_setup_sync(arg_rate, cancellable) | |
| complete_setup(invocation) | 
Virtual Methods¶
| do_handle_setup(invocation, arg_rate) | 
Properties¶
| Name | Type | Flags | Short Description | 
|---|---|---|---|
| cdma | GLib.Variant | r/w | Cdma | 
| evdo | GLib.Variant | r/w | Evdo | 
| gsm | GLib.Variant | r/w | Gsm | 
| lte | GLib.Variant | r/w | Lte | 
| rate | int | r/w | Rate | 
| umts | GLib.Variant | r/w | Umts | 
Signals¶
| Name | Short Description | 
|---|---|
| handle-setup | Signal emitted when a remote caller is invoking the ‘Setup() [gdbus-method-org-freedesktop-ModemManager1-Modem-Signal.Setup]’ D-Bus method. | 
Fields¶
None
Class Details¶
- 
class ModemManager.GdbusModemSignal¶
- Bases: - GObject.GInterface- Structure: - ModemManager.GdbusModemSignalIface- Abstract interface type for the D-Bus interface ‘org.freedesktop.ModemManager1.Modem.Signal [gdbus-interface-org-freedesktop-ModemManager1-Modem-Signal.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.Signal [gdbus-interface-org-freedesktop-ModemManager1-Modem-Signal.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.GdbusModemSignalinterface for a concrete class. The properties are overridden in the order they are defined.
- klass (
 - 
call_setup(arg_rate, cancellable, callback, *user_data)¶
- Parameters: - arg_rate (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-Signal.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.GdbusModemSignal.call_setup_finish() to get the result of the operation.- See - ModemManager.GdbusModemSignal.call_setup_sync() for the synchronous, blocking version of this method.
- arg_rate (
 - 
call_setup_finish(res)¶
- Parameters: - res ( - Gio.AsyncResult) – The- Gio.AsyncResultobtained from the- Gio.AsyncReadyCallbackpassed to- ModemManager.GdbusModemSignal.call_setup().- Raises: - GLib.Error- Returns: - Trueif the call succeeded,- Falseif error is set.- Return type: - bool- Finishes an operation started with - ModemManager.GdbusModemSignal.call_setup().
 - 
call_setup_sync(arg_rate, cancellable)¶
- Parameters: - arg_rate (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-Signal.Setup]’ D-Bus method on self. The calling thread is blocked until a reply is received. - See - ModemManager.GdbusModemSignal.call_setup() for the asynchronous version of this method.
- arg_rate (
 - 
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-Signal.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. 
 - 
do_handle_setup(invocation, arg_rate) virtual¶
- Parameters: - invocation (Gio.DBusMethodInvocation) –
- arg_rate (int) –
 - Return type: 
- invocation (
 
- 
classmethod 
Signal Details¶
- 
ModemManager.GdbusModemSignal.signals.handle_setup(gdbus_modem_signal, invocation, arg_rate)¶
- Signal Name: - handle-setup- Flags: - Parameters: - gdbus_modem_signal (ModemManager.GdbusModemSignal) – The object which received the signal
- invocation (Gio.DBusMethodInvocation) – AGio.DBusMethodInvocation.
- arg_rate (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-Signal.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.GdbusModemSignal.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_signal (
Property Details¶
- 
ModemManager.GdbusModemSignal.props.cdma¶
- Name: - cdma- Type: - GLib.Variant- Default Value: - None- Flags: - READABLE,- WRITABLE- Represents the D-Bus property ‘“Cdma” [gdbus-property-org-freedesktop-ModemManager1-Modem-Signal.Cdma]’. - 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.GdbusModemSignal.props.evdo¶
- Name: - evdo- Type: - GLib.Variant- Default Value: - None- Flags: - READABLE,- WRITABLE- Represents the D-Bus property ‘“Evdo” [gdbus-property-org-freedesktop-ModemManager1-Modem-Signal.Evdo]’. - 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.GdbusModemSignal.props.gsm¶
- Name: - gsm- Type: - GLib.Variant- Default Value: - None- Flags: - READABLE,- WRITABLE- Represents the D-Bus property ‘“Gsm” [gdbus-property-org-freedesktop-ModemManager1-Modem-Signal.Gsm]’. - 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.GdbusModemSignal.props.lte¶
- Name: - lte- Type: - GLib.Variant- Default Value: - None- Flags: - READABLE,- WRITABLE- Represents the D-Bus property ‘“Lte” [gdbus-property-org-freedesktop-ModemManager1-Modem-Signal.Lte]’. - 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.GdbusModemSignal.props.rate¶
- Name: - rate- Type: - int- Default Value: - 0- Flags: - READABLE,- WRITABLE- Represents the D-Bus property ‘“Rate” [gdbus-property-org-freedesktop-ModemManager1-Modem-Signal.Rate]’. - 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.GdbusModemSignal.props.umts¶
- Name: - umts- Type: - GLib.Variant- Default Value: - None- Flags: - READABLE,- WRITABLE- Represents the D-Bus property ‘“Umts” [gdbus-property-org-freedesktop-ModemManager1-Modem-Signal.Umts]’. - 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.