ModemManager.GdbusModemLocation

g GObject.GInterface GObject.GInterface ModemManager.GdbusModemLocation ModemManager.GdbusModemLocation GObject.GInterface->ModemManager.GdbusModemLocation

Implementations:

ModemManager.GdbusModemLocationProxy, ModemManager.GdbusModemLocationSkeleton

Methods

class

interface_info ()

class

override_properties (klass, property_id_begin)

call_get_location (cancellable, callback, *user_data)

call_get_location_finish (res)

call_get_location_sync (cancellable)

call_inject_assistance_data (arg_data, cancellable, callback, *user_data)

call_inject_assistance_data_finish (res)

call_inject_assistance_data_sync (arg_data, cancellable)

call_set_gps_refresh_rate (arg_rate, cancellable, callback, *user_data)

call_set_gps_refresh_rate_finish (res)

call_set_gps_refresh_rate_sync (arg_rate, cancellable)

call_set_supl_server (arg_supl, cancellable, callback, *user_data)

call_set_supl_server_finish (res)

call_set_supl_server_sync (arg_supl, cancellable)

call_setup (arg_sources, arg_signal_location, cancellable, callback, *user_data)

call_setup_finish (res)

call_setup_sync (arg_sources, arg_signal_location, cancellable)

complete_get_location (invocation, Location)

complete_inject_assistance_data (invocation)

complete_set_gps_refresh_rate (invocation)

complete_set_supl_server (invocation)

complete_setup (invocation)

Virtual Methods

do_handle_get_location (invocation)

do_handle_inject_assistance_data (invocation, arg_data)

do_handle_set_gps_refresh_rate (invocation, arg_rate)

do_handle_set_supl_server (invocation, arg_supl)

do_handle_setup (invocation, arg_sources, arg_signal_location)

Properties

Name

Type

Flags

Short Description

assistance-data-servers

[str]

r/w

AssistanceDataServers

capabilities

int

r/w

Capabilities

enabled

int

r/w

Enabled

gps-refresh-rate

int

r/w

GpsRefreshRate

location

GLib.Variant

r/w

Location

signals-location

bool

r/w

SignalsLocation

supl-server

str

r/w

SuplServer

supported-assistance-data

int

r/w

SupportedAssistanceData

Signals

Name

Short Description

handle-get-location

Signal emitted when a remote caller is invoking the ‘GetLocation() [gdbus-method-org-freedesktop-ModemManager1-Modem-Location.GetLocation]’ D-Bus method.

handle-inject-assistance-data

Signal emitted when a remote caller is invoking the ‘InjectAssistanceData() [gdbus-method-org-freedesktop-ModemManager1-Modem-Location.InjectAssistanceData]’ D-Bus method.

handle-set-gps-refresh-rate

Signal emitted when a remote caller is invoking the ‘SetGpsRefreshRate() [gdbus-method-org-freedesktop-ModemManager1-Modem-Location.SetGpsRefreshRate]’ D-Bus method.

handle-set-supl-server

Signal emitted when a remote caller is invoking the ‘SetSuplServer() [gdbus-method-org-freedesktop-ModemManager1-Modem-Location.SetSuplServer]’ D-Bus method.

handle-setup

Signal emitted when a remote caller is invoking the ‘Setup() [gdbus-method-org-freedesktop-ModemManager1-Modem-Location.Setup]’ D-Bus method.

Fields

None

Class Details

class ModemManager.GdbusModemLocation
Bases:

GObject.GInterface

Structure:

ModemManager.GdbusModemLocationIface

Abstract interface type for the D-Bus interface ‘org.freedesktop.ModemManager1.Modem.Location [gdbus-interface-org-freedesktop-ModemManager1-Modem-Location.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.Location [gdbus-interface-org-freedesktop-ModemManager1-Modem-Location.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.GdbusModemLocation interface for a concrete class. The properties are overridden in the order they are defined.

call_get_location(cancellable, callback, *user_data)
Parameters:

Asynchronously invokes the ‘GetLocation() [gdbus-method-org-freedesktop-ModemManager1-Modem-Location.GetLocation]’ 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.GdbusModemLocation.call_get_location_finish() to get the result of the operation.

See ModemManager.GdbusModemLocation.call_get_location_sync() for the synchronous, blocking version of this method.

call_get_location_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to ModemManager.GdbusModemLocation.call_get_location().

Raises:

GLib.Error

Returns:

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

out_Location:

Return location for return parameter or None to ignore.

Return type:

(bool, out_Location: GLib.Variant)

Finishes an operation started with ModemManager.GdbusModemLocation.call_get_location().

call_get_location_sync(cancellable)
Parameters:

cancellable (Gio.Cancellable or None) – A Gio.Cancellable or None.

Raises:

GLib.Error

Returns:

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

out_Location:

Return location for return parameter or None to ignore.

Return type:

(bool, out_Location: GLib.Variant)

Synchronously invokes the ‘GetLocation() [gdbus-method-org-freedesktop-ModemManager1-Modem-Location.GetLocation]’ D-Bus method on self. The calling thread is blocked until a reply is received.

See ModemManager.GdbusModemLocation.call_get_location() for the asynchronous version of this method.

call_inject_assistance_data(arg_data, cancellable, callback, *user_data)
Parameters:

Asynchronously invokes the ‘InjectAssistanceData() [gdbus-method-org-freedesktop-ModemManager1-Modem-Location.InjectAssistanceData]’ 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.GdbusModemLocation.call_inject_assistance_data_finish() to get the result of the operation.

See ModemManager.GdbusModemLocation.call_inject_assistance_data_sync() for the synchronous, blocking version of this method.

call_inject_assistance_data_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to ModemManager.GdbusModemLocation.call_inject_assistance_data().

Raises:

GLib.Error

Returns:

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

Return type:

bool

Finishes an operation started with ModemManager.GdbusModemLocation.call_inject_assistance_data().

call_inject_assistance_data_sync(arg_data, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

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

Return type:

bool

Synchronously invokes the ‘InjectAssistanceData() [gdbus-method-org-freedesktop-ModemManager1-Modem-Location.InjectAssistanceData]’ D-Bus method on self. The calling thread is blocked until a reply is received.

See ModemManager.GdbusModemLocation.call_inject_assistance_data() for the asynchronous version of this method.

call_set_gps_refresh_rate(arg_rate, cancellable, callback, *user_data)
Parameters:

Asynchronously invokes the ‘SetGpsRefreshRate() [gdbus-method-org-freedesktop-ModemManager1-Modem-Location.SetGpsRefreshRate]’ 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.GdbusModemLocation.call_set_gps_refresh_rate_finish() to get the result of the operation.

See ModemManager.GdbusModemLocation.call_set_gps_refresh_rate_sync() for the synchronous, blocking version of this method.

call_set_gps_refresh_rate_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to ModemManager.GdbusModemLocation.call_set_gps_refresh_rate().

Raises:

GLib.Error

Returns:

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

Return type:

bool

Finishes an operation started with ModemManager.GdbusModemLocation.call_set_gps_refresh_rate().

call_set_gps_refresh_rate_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 ‘SetGpsRefreshRate() [gdbus-method-org-freedesktop-ModemManager1-Modem-Location.SetGpsRefreshRate]’ D-Bus method on self. The calling thread is blocked until a reply is received.

See ModemManager.GdbusModemLocation.call_set_gps_refresh_rate() for the asynchronous version of this method.

call_set_supl_server(arg_supl, cancellable, callback, *user_data)
Parameters:

Asynchronously invokes the ‘SetSuplServer() [gdbus-method-org-freedesktop-ModemManager1-Modem-Location.SetSuplServer]’ 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.GdbusModemLocation.call_set_supl_server_finish() to get the result of the operation.

See ModemManager.GdbusModemLocation.call_set_supl_server_sync() for the synchronous, blocking version of this method.

call_set_supl_server_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to ModemManager.GdbusModemLocation.call_set_supl_server().

Raises:

GLib.Error

Returns:

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

Return type:

bool

Finishes an operation started with ModemManager.GdbusModemLocation.call_set_supl_server().

call_set_supl_server_sync(arg_supl, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

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

Return type:

bool

Synchronously invokes the ‘SetSuplServer() [gdbus-method-org-freedesktop-ModemManager1-Modem-Location.SetSuplServer]’ D-Bus method on self. The calling thread is blocked until a reply is received.

See ModemManager.GdbusModemLocation.call_set_supl_server() for the asynchronous version of this method.

call_setup(arg_sources, arg_signal_location, cancellable, callback, *user_data)
Parameters:

Asynchronously invokes the ‘Setup() [gdbus-method-org-freedesktop-ModemManager1-Modem-Location.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.GdbusModemLocation.call_setup_finish() to get the result of the operation.

See ModemManager.GdbusModemLocation.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.GdbusModemLocation.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.GdbusModemLocation.call_setup().

call_setup_sync(arg_sources, arg_signal_location, 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-Location.Setup]’ D-Bus method on self. The calling thread is blocked until a reply is received.

See ModemManager.GdbusModemLocation.call_setup() for the asynchronous version of this method.

complete_get_location(invocation, Location)
Parameters:

Helper function used in service implementations to finish handling invocations of the ‘GetLocation() [gdbus-method-org-freedesktop-ModemManager1-Modem-Location.GetLocation]’ 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_inject_assistance_data(invocation)
Parameters:

invocation (Gio.DBusMethodInvocation) – A Gio.DBusMethodInvocation.

Helper function used in service implementations to finish handling invocations of the ‘InjectAssistanceData() [gdbus-method-org-freedesktop-ModemManager1-Modem-Location.InjectAssistanceData]’ 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_set_gps_refresh_rate(invocation)
Parameters:

invocation (Gio.DBusMethodInvocation) – A Gio.DBusMethodInvocation.

Helper function used in service implementations to finish handling invocations of the ‘SetGpsRefreshRate() [gdbus-method-org-freedesktop-ModemManager1-Modem-Location.SetGpsRefreshRate]’ 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_set_supl_server(invocation)
Parameters:

invocation (Gio.DBusMethodInvocation) – A Gio.DBusMethodInvocation.

Helper function used in service implementations to finish handling invocations of the ‘SetSuplServer() [gdbus-method-org-freedesktop-ModemManager1-Modem-Location.SetSuplServer]’ 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-Location.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_get_location(invocation) virtual
Parameters:

invocation (Gio.DBusMethodInvocation) –

Return type:

bool

do_handle_inject_assistance_data(invocation, arg_data) virtual
Parameters:
Return type:

bool

do_handle_set_gps_refresh_rate(invocation, arg_rate) virtual
Parameters:
Return type:

bool

do_handle_set_supl_server(invocation, arg_supl) virtual
Parameters:
Return type:

bool

do_handle_setup(invocation, arg_sources, arg_signal_location) virtual
Parameters:
Return type:

bool

Signal Details

ModemManager.GdbusModemLocation.signals.handle_get_location(gdbus_modem_location, invocation)
Signal Name:

handle-get-location

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 ‘GetLocation() [gdbus-method-org-freedesktop-ModemManager1-Modem-Location.GetLocation]’ 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.GdbusModemLocation.complete_get_location() 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.GdbusModemLocation.signals.handle_inject_assistance_data(gdbus_modem_location, invocation, arg_data)
Signal Name:

handle-inject-assistance-data

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 ‘InjectAssistanceData() [gdbus-method-org-freedesktop-ModemManager1-Modem-Location.InjectAssistanceData]’ 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.GdbusModemLocation.complete_inject_assistance_data() 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.GdbusModemLocation.signals.handle_set_gps_refresh_rate(gdbus_modem_location, invocation, arg_rate)
Signal Name:

handle-set-gps-refresh-rate

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 ‘SetGpsRefreshRate() [gdbus-method-org-freedesktop-ModemManager1-Modem-Location.SetGpsRefreshRate]’ 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.GdbusModemLocation.complete_set_gps_refresh_rate() 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.GdbusModemLocation.signals.handle_set_supl_server(gdbus_modem_location, invocation, arg_supl)
Signal Name:

handle-set-supl-server

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 ‘SetSuplServer() [gdbus-method-org-freedesktop-ModemManager1-Modem-Location.SetSuplServer]’ 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.GdbusModemLocation.complete_set_supl_server() 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.GdbusModemLocation.signals.handle_setup(gdbus_modem_location, invocation, arg_sources, arg_signal_location)
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-Location.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.GdbusModemLocation.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.

Property Details

ModemManager.GdbusModemLocation.props.assistance_data_servers
Name:

assistance-data-servers

Type:

[str]

Default Value:

[]

Flags:

READABLE, WRITABLE

Represents the D-Bus property ‘“AssistanceDataServers” [gdbus-property-org-freedesktop-ModemManager1-Modem-Location.AssistanceDataServers]’.

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.GdbusModemLocation.props.capabilities
Name:

capabilities

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE

Represents the D-Bus property ‘“Capabilities” [gdbus-property-org-freedesktop-ModemManager1-Modem-Location.Capabilities]’.

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.GdbusModemLocation.props.enabled
Name:

enabled

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE

Represents the D-Bus property ‘“Enabled” [gdbus-property-org-freedesktop-ModemManager1-Modem-Location.Enabled]’.

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.GdbusModemLocation.props.gps_refresh_rate
Name:

gps-refresh-rate

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE

Represents the D-Bus property ‘“GpsRefreshRate” [gdbus-property-org-freedesktop-ModemManager1-Modem-Location.GpsRefreshRate]’.

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.GdbusModemLocation.props.location
Name:

location

Type:

GLib.Variant

Default Value:

None

Flags:

READABLE, WRITABLE

Represents the D-Bus property ‘“Location” [gdbus-property-org-freedesktop-ModemManager1-Modem-Location.Location]’.

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.GdbusModemLocation.props.signals_location
Name:

signals-location

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE

Represents the D-Bus property ‘“SignalsLocation” [gdbus-property-org-freedesktop-ModemManager1-Modem-Location.SignalsLocation]’.

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.GdbusModemLocation.props.supl_server
Name:

supl-server

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

Represents the D-Bus property ‘“SuplServer” [gdbus-property-org-freedesktop-ModemManager1-Modem-Location.SuplServer]’.

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.GdbusModemLocation.props.supported_assistance_data
Name:

supported-assistance-data

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE

Represents the D-Bus property ‘“SupportedAssistanceData” [gdbus-property-org-freedesktop-ModemManager1-Modem-Location.SupportedAssistanceData]’.

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.