Interface
PhoshGeoClueDBusOrgFreedesktopGeoClue2Agent
Description [src]
interface Phosh.GeoClueDBusOrgFreedesktopGeoClue2Agent : GObject.Object
Abstract interface type for the D-Bus interface org.freedesktop.GeoClue2.Agent.
Prerequisite
In order to implement GeoClueDBusOrgFreedesktopGeoClue2Agent, your type must inherit fromGObject
.
Functions
phosh_geo_clue_dbus_org_freedesktop_geo_clue2_agent_interface_info
Gets a machine-readable description of the org.freedesktop.GeoClue2.Agent D-Bus interface.
phosh_geo_clue_dbus_org_freedesktop_geo_clue2_agent_override_properties
Overrides all GObject
properties in the PhoshGeoClueDBusOrgFreedesktopGeoClue2Agent
interface for a concrete class.
The properties are overridden in the order they are defined.
Instance methods
phosh_geo_clue_dbus_org_freedesktop_geo_clue2_agent_call_authorize_app
Asynchronously invokes the AuthorizeApp() 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_org_freedesktop_geo_clue2_agent_call_authorize_app_finish()
to get the result of the operation.
phosh_geo_clue_dbus_org_freedesktop_geo_clue2_agent_call_authorize_app_finish
Finishes an operation started with phosh_geo_clue_dbus_org_freedesktop_geo_clue2_agent_call_authorize_app().
phosh_geo_clue_dbus_org_freedesktop_geo_clue2_agent_call_authorize_app_sync
Synchronously invokes the AuthorizeApp() D-Bus method on proxy
. The calling thread is blocked until a reply is received.
phosh_geo_clue_dbus_org_freedesktop_geo_clue2_agent_complete_authorize_app
Helper function used in service implementations to finish handling invocations of the AuthorizeApp() 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_org_freedesktop_geo_clue2_agent_get_max_accuracy_level
Gets the value of the “MaxAccuracyLevel” D-Bus property.
phosh_geo_clue_dbus_org_freedesktop_geo_clue2_agent_set_max_accuracy_level
Sets the “MaxAccuracyLevel” D-Bus property to value
.
Properties
Phosh.GeoClueDBusOrgFreedesktopGeoClue2Agent:max-accuracy-level
Represents the D-Bus property “MaxAccuracyLevel”.
Signals
Phosh.GeoClueDBusOrgFreedesktopGeoClue2Agent::handle-authorize-app
Signal emitted when a remote caller is invoking the AuthorizeApp() D-Bus method.
Interface structure
struct PhoshGeoClueDBusOrgFreedesktopGeoClue2AgentIface {
GTypeInterface parent_iface;
gboolean (* handle_authorize_app) (
PhoshGeoClueDBusOrgFreedesktopGeoClue2Agent* object,
GDBusMethodInvocation* invocation,
const gchar* arg_desktop_id,
guint arg_req_accuracy_level
);
guint (* get_max_accuracy_level) (
PhoshGeoClueDBusOrgFreedesktopGeoClue2Agent* object
);
}
Virtual table for the D-Bus interface org.freedesktop.GeoClue2.Agent.
Interface members
parent_iface |
|
The parent interface. |
|
handle_authorize_app |
|
Handler for the |
|
get_max_accuracy_level |
|
Getter for the |
Virtual methods
Phosh.GeoClueDBusOrgFreedesktopGeoClue2Agent.get_max_accuracy_level
Gets the value of the “MaxAccuracyLevel” D-Bus property.
Phosh.GeoClueDBusOrgFreedesktopGeoClue2Agent.handle_authorize_app
Handler for the PhoshGeoClueDBusOrgFreedesktopGeoClue2Agent::handle-authorize-app
signal.