ModemManager.GdbusModemSignal

g GObject.GInterface GObject.GInterface ModemManager.GdbusModemSignal ModemManager.GdbusModemSignal GObject.GInterface->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)

call_setup_thresholds (arg_settings, cancellable, callback, *user_data)

call_setup_thresholds_finish (res)

call_setup_thresholds_sync (arg_settings, cancellable)

complete_setup (invocation)

complete_setup_thresholds (invocation)

Virtual Methods

do_handle_setup (invocation, arg_rate)

do_handle_setup_thresholds (invocation, arg_settings)

Properties

Name

Type

Flags

Short Description

cdma

GLib.Variant

r/w

Cdma

error-rate-threshold

bool

r/w

ErrorRateThreshold

evdo

GLib.Variant

r/w

Evdo

gsm

GLib.Variant

r/w

Gsm

lte

GLib.Variant

r/w

Lte

nr5g

GLib.Variant

r/w

Nr5g

rate

int

r/w

Rate

rssi-threshold

int

r/w

RssiThreshold

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.

handle-setup-thresholds

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:

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:
Returns:

The last property id.

Return type:

int

Overrides all GObject.Object properties in the ModemManager.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:

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.

call_setup_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to ModemManager.GdbusModemSignal.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.GdbusModemSignal.call_setup().

call_setup_sync(arg_rate, 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-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:

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 call ModemManager.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) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to ModemManager.GdbusModemSignal.call_setup_thresholds().

Raises:

GLib.Error

Returns:

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

Return type:

bool

Finishes an operation started with ModemManager.GdbusModemSignal.call_setup_thresholds().

call_setup_thresholds_sync(arg_settings, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

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

Return type:

bool

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) – 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.

complete_setup_thresholds(invocation)
Parameters:

invocation (Gio.DBusMethodInvocation) – A Gio.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:
Return type:

bool

do_handle_setup_thresholds(invocation, arg_settings) virtual
Parameters:
Return type:

bool

Signal Details

ModemManager.GdbusModemSignal.signals.handle_setup(gdbus_modem_signal, invocation, arg_rate)
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-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 other signal handlers will run. If no signal handler handles the invocation, the Gio.DBusError.UNKNOWN_METHOD error is returned.

ModemManager.GdbusModemSignal.signals.handle_setup_thresholds(gdbus_modem_signal, invocation, arg_settings)
Signal Name:

handle-setup-thresholds

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 ‘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 call ModemManager.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, the Gio.DBusError.UNKNOWN_METHOD error is returned.

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.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
Name:

error-rate-threshold

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE

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:

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.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:

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.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:

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.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:

GLib.Variant

Default Value:

None

Flags:

READABLE, WRITABLE

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
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.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
Name:

rssi-threshold

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE

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:

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.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.