ModemManager.GdbusModemSignal¶
- Implementations:
ModemManager.GdbusModemSignalProxy
,ModemManager.GdbusModemSignalSkeleton
Methods¶
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
|
|
|
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
Cdma |
||
r/w |
ErrorRateThreshold |
||
r/w |
Evdo |
||
r/w |
Gsm |
||
r/w |
Lte |
||
r/w |
Nr5g |
||
r/w |
Rate |
||
r/w |
RssiThreshold |
||
r/w |
Umts |
Signals¶
Name |
Short Description |
---|---|
Signal emitted when a remote caller is invoking the ‘Setup() [gdbus-method-org-freedesktop-ModemManager1-Modem-Signal.Setup]’ D-Bus method. |
|
Signal emitted when a remote caller is invoking the ‘SetupThresholds() [gdbus-method-org-freedesktop-ModemManager1-Modem-Signal.SetupThresholds]’ D-Bus method. |
Fields¶
None
Class Details¶
- class ModemManager.GdbusModemSignal¶
- Bases:
- Structure:
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:
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.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.GdbusModemSignal
interface for a concrete class. The properties are overridden in the order they are defined.
- call_setup(arg_rate, cancellable, callback, *user_data)¶
- Parameters:
arg_rate (
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-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 callModemManager.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.
- call_setup_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – TheGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed toModemManager.GdbusModemSignal.call_setup
().- Raises:
- Returns:
- Return type:
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.Cancellable
orNone
) – AGio.Cancellable
orNone
.
- 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.
- call_setup_thresholds(arg_settings, cancellable, callback, *user_data)¶
- Parameters:
arg_settings (
GLib.Variant
) – 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 ‘SetupThresholds() [gdbus-method-org-freedesktop-ModemManager1-Modem-Signal.SetupThresholds]’ 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.GdbusModemSignal.call_setup_thresholds_finish
() to get the result of the operation.See
ModemManager.GdbusModemSignal.call_setup_thresholds_sync
() for the synchronous, blocking version of this method.
- call_setup_thresholds_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – TheGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed toModemManager.GdbusModemSignal.call_setup_thresholds
().- Raises:
- Returns:
- Return type:
Finishes an operation started with
ModemManager.GdbusModemSignal.call_setup_thresholds
().
- call_setup_thresholds_sync(arg_settings, cancellable)¶
- Parameters:
arg_settings (
GLib.Variant
) – Argument to pass with the method invocation.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.
- Raises:
- Returns:
- Return type:
Synchronously invokes the ‘SetupThresholds() [gdbus-method-org-freedesktop-ModemManager1-Modem-Signal.SetupThresholds]’ D-Bus method on self. The calling thread is blocked until a reply is received.
See
ModemManager.GdbusModemSignal.call_setup_thresholds
() for the asynchronous version of this method.
- 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-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.
- complete_setup_thresholds(invocation)¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.
Helper function used in service implementations to finish handling invocations of the ‘SetupThresholds() [gdbus-method-org-freedesktop-ModemManager1-Modem-Signal.SetupThresholds]’ 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:
- do_handle_setup_thresholds(invocation, arg_settings) virtual¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) –arg_settings (
GLib.Variant
) –
- Return type:
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 signalinvocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.arg_rate (
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-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 callModemManager.GdbusModemSignal.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.GdbusModemSignal.signals.handle_setup_thresholds(gdbus_modem_signal, invocation, arg_settings)¶
- Signal Name:
handle-setup-thresholds
- Flags:
- Parameters:
gdbus_modem_signal (
ModemManager.GdbusModemSignal
) – The object which received the signalinvocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.arg_settings (
GLib.Variant
) – 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 ‘SetupThresholds() [gdbus-method-org-freedesktop-ModemManager1-Modem-Signal.SetupThresholds]’ 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.GdbusModemSignal.complete_setup_thresholds
() 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.
Property Details¶
- ModemManager.GdbusModemSignal.props.cdma¶
- Name:
cdma
- Type:
- Default Value:
- Flags:
Represents the D-Bus property ‘“Cdma” [gdbus-property-org-freedesktop-ModemManager1-Modem-Signal.Cdma]’.
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.GdbusModemSignal.props.error_rate_threshold¶
-
Represents the D-Bus property ‘“ErrorRateThreshold” [gdbus-property-org-freedesktop-ModemManager1-Modem-Signal.ErrorRateThreshold]’.
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.GdbusModemSignal.props.evdo¶
- Name:
evdo
- Type:
- Default Value:
- Flags:
Represents the D-Bus property ‘“Evdo” [gdbus-property-org-freedesktop-ModemManager1-Modem-Signal.Evdo]’.
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.GdbusModemSignal.props.gsm¶
- Name:
gsm
- Type:
- Default Value:
- Flags:
Represents the D-Bus property ‘“Gsm” [gdbus-property-org-freedesktop-ModemManager1-Modem-Signal.Gsm]’.
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.GdbusModemSignal.props.lte¶
- Name:
lte
- Type:
- Default Value:
- Flags:
Represents the D-Bus property ‘“Lte” [gdbus-property-org-freedesktop-ModemManager1-Modem-Signal.Lte]’.
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.GdbusModemSignal.props.nr5g¶
- Name:
nr5g
- Type:
- Default Value:
- Flags:
Represents the D-Bus property ‘“Nr5g” [gdbus-property-org-freedesktop-ModemManager1-Modem-Signal.Nr5g]’.
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.GdbusModemSignal.props.rate¶
-
Represents the D-Bus property ‘“Rate” [gdbus-property-org-freedesktop-ModemManager1-Modem-Signal.Rate]’.
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.GdbusModemSignal.props.rssi_threshold¶
-
Represents the D-Bus property ‘“RssiThreshold” [gdbus-property-org-freedesktop-ModemManager1-Modem-Signal.RssiThreshold]’.
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.GdbusModemSignal.props.umts¶
- Name:
umts
- Type:
- Default Value:
- Flags:
Represents the D-Bus property ‘“Umts” [gdbus-property-org-freedesktop-ModemManager1-Modem-Signal.Umts]’.
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.