Interface
PhoshGeoClueDBusManager
Description [src]
interface Phosh.GeoClueDBusManager : GObject.Object
Abstract interface type for the D-Bus interface org.freedesktop.GeoClue2.Manager.
Prerequisite
In order to implement GeoClueDBusManager, your type must inherit fromGObject
.
Functions
phosh_geo_clue_dbus_manager_interface_info
Gets a machine-readable description of the org.freedesktop.GeoClue2.Manager D-Bus interface.
phosh_geo_clue_dbus_manager_override_properties
Overrides all GObject
properties in the PhoshGeoClueDBusManager
interface for a concrete class.
The properties are overridden in the order they are defined.
Instance methods
phosh_geo_clue_dbus_manager_call_add_agent
Asynchronously invokes the AddAgent() D-Bus method on proxy
.
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 g_main_context_push_thread_default()).
You can then call phosh_geo_clue_dbus_manager_call_add_agent_finish()
to get the result of the operation.
phosh_geo_clue_dbus_manager_call_add_agent_finish
Finishes an operation started with phosh_geo_clue_dbus_manager_call_add_agent().
phosh_geo_clue_dbus_manager_call_add_agent_sync
Synchronously invokes the AddAgent() D-Bus method on proxy
. The calling thread is blocked until a reply is received.
phosh_geo_clue_dbus_manager_complete_add_agent
Helper function used in service implementations to finish handling invocations of the AddAgent() 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.
phosh_geo_clue_dbus_manager_get_available_accuracy_level
Gets the value of the “AvailableAccuracyLevel” D-Bus property.
phosh_geo_clue_dbus_manager_set_available_accuracy_level
Sets the “AvailableAccuracyLevel” D-Bus property to value
.
Properties
Phosh.GeoClueDBusManager:available-accuracy-level
Represents the D-Bus property “AvailableAccuracyLevel”.
Signals
Phosh.GeoClueDBusManager::handle-add-agent
Signal emitted when a remote caller is invoking the AddAgent() D-Bus method.
Interface structure
struct PhoshGeoClueDBusManagerIface {
GTypeInterface parent_iface;
gboolean (* handle_add_agent) (
PhoshGeoClueDBusManager* object,
GDBusMethodInvocation* invocation,
const gchar* arg_id
);
guint (* get_available_accuracy_level) (
PhoshGeoClueDBusManager* object
);
gboolean (* get_in_use) (
PhoshGeoClueDBusManager* object
);
}
Virtual table for the D-Bus interface org.freedesktop.GeoClue2.Manager.
Interface members
parent_iface |
|
The parent interface. |
|
handle_add_agent |
|
Handler for the |
|
get_available_accuracy_level |
|
Getter for the |
|
get_in_use |
|
Getter for the |
Virtual methods
Phosh.GeoClueDBusManager.get_available_accuracy_level
Gets the value of the “AvailableAccuracyLevel” D-Bus property.
Phosh.GeoClueDBusManager.handle_add_agent
Handler for the PhoshGeoClueDBusManager::handle-add-agent
signal.