Package ch.bailu.gtk.geoclue
Class Manager
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.gobject.Object
ch.bailu.gtk.type.Interface
ch.bailu.gtk.geoclue.Manager
- All Implemented Interfaces:
PointerInterface
Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-GeoClue2-Manager.top_of_page">org.freedesktop.GeoClue2.Manager</link>.
https://www.freedesktop.org/software/geoclue/docs/libgeoclue/
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interfacestatic interfacestatic interfacestatic interfaceNested classes/interfaces inherited from class ch.bailu.gtk.gobject.Object
Object.OnBindingTransformFunc, Object.OnDestroyNotify, Object.OnDuplicateFunc, Object.OnNotify, Object.OnToggleNotify, Object.OnWeakNotify -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class ch.bailu.gtk.gobject.Object
SIGNAL_ON_NOTIFY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcallAddAgent(Str arg_id, Cancellable cancellable, Manager.OnAsyncReadyCallback callback, Pointer user_data) Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-GeoClue2-Manager.AddAgent">AddAgent()</link> D-Bus method on @proxy.voidcallAddAgent(String arg_id, Cancellable cancellable, Manager.OnAsyncReadyCallback callback, Pointer user_data) Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-GeoClue2-Manager.AddAgent">AddAgent()</link> D-Bus method on @proxy.booleanFinishes an operation started with gclue_manager_call_add_agent().booleancallAddAgentSync(Str arg_id, Cancellable cancellable) Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-GeoClue2-Manager.AddAgent">AddAgent()</link> D-Bus method on @proxy.booleancallAddAgentSync(String arg_id, Cancellable cancellable) Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-GeoClue2-Manager.AddAgent">AddAgent()</link> D-Bus method on @proxy.voidcallCreateClient(Cancellable cancellable, Manager.OnAsyncReadyCallback callback, Pointer user_data) Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-GeoClue2-Manager.CreateClient">CreateClient()</link> D-Bus method on @proxy.voidcallDeleteClient(Str arg_client, Cancellable cancellable, Manager.OnAsyncReadyCallback callback, Pointer user_data) Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-GeoClue2-Manager.DeleteClient">DeleteClient()</link> D-Bus method on @proxy.voidcallDeleteClient(String arg_client, Cancellable cancellable, Manager.OnAsyncReadyCallback callback, Pointer user_data) Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-GeoClue2-Manager.DeleteClient">DeleteClient()</link> D-Bus method on @proxy.booleanFinishes an operation started with gclue_manager_call_delete_client().booleancallDeleteClientSync(Str arg_client, Cancellable cancellable) Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-GeoClue2-Manager.DeleteClient">DeleteClient()</link> D-Bus method on @proxy.booleancallDeleteClientSync(String arg_client, Cancellable cancellable) Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-GeoClue2-Manager.DeleteClient">DeleteClient()</link> D-Bus method on @proxy.voidcallGetClient(Cancellable cancellable, Manager.OnAsyncReadyCallback callback, Pointer user_data) Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-GeoClue2-Manager.GetClient">GetClient()</link> D-Bus method on @proxy.voidcompleteAddAgent(DBusMethodInvocation invocation) Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-GeoClue2-Manager.AddAgent">AddAgent()</link> D-Bus method.voidcompleteCreateClient(DBusMethodInvocation invocation, Str client) Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-GeoClue2-Manager.CreateClient">CreateClient()</link> D-Bus method.voidcompleteCreateClient(DBusMethodInvocation invocation, String client) Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-GeoClue2-Manager.CreateClient">CreateClient()</link> D-Bus method.voidcompleteDeleteClient(DBusMethodInvocation invocation) Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-GeoClue2-Manager.DeleteClient">DeleteClient()</link> D-Bus method.voidcompleteGetClient(DBusMethodInvocation invocation, Str client) Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-GeoClue2-Manager.GetClient">GetClient()</link> D-Bus method.voidcompleteGetClient(DBusMethodInvocation invocation, String client) Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-GeoClue2-Manager.GetClient">GetClient()</link> D-Bus method.intGets the value of the <link linkend="gdbus-property-org-freedesktop-GeoClue2-Manager.AvailableAccuracyLevel">"AvailableAccuracyLevel"</link> D-Bus property.static ClassHandlerstatic intbooleangetInUse()Gets the value of the <link linkend="gdbus-property-org-freedesktop-GeoClue2-Manager.InUse">"InUse"</link> D-Bus property.static longstatic TypeSystem.TypeSizestatic longstatic TypeSystem.TypeSizestatic DBusInterfaceInfoGets a machine-readable description of the <link linkend="gdbus-interface-org-freedesktop-GeoClue2-Manager.top_of_page">org.freedesktop.GeoClue2.Manager</link> D-Bus interface.Connect to signal "handle-add-agent".Connect to signal "handle-create-client".Connect to signal "handle-delete-client".Connect to signal "handle-get-client".static intoverrideProperties(ObjectClass klass, int property_id_begin) Overrides all #GObject properties in the #GClueManager interface for a concrete class.voidsetAvailableAccuracyLevel(int value) Sets the <link linkend="gdbus-property-org-freedesktop-GeoClue2-Manager.AvailableAccuracyLevel">"AvailableAccuracyLevel"</link> D-Bus property to @value.voidsetInUse(boolean value) Sets the <link linkend="gdbus-property-org-freedesktop-GeoClue2-Manager.InUse">"InUse"</link> D-Bus property to @value.Methods inherited from class ch.bailu.gtk.gobject.Object
addToggleRef, bindProperty, bindProperty, bindPropertyFull, bindPropertyFull, bindPropertyWithClosures, bindPropertyWithClosures, compatControl, connect, connect, disconnect, disconnect, dupData, dupData, dupQdata, forceFloating, freezeNotify, get, get, getData, getData, getProperty, getProperty, getQdata, interfaceFindProperty, interfaceInstallProperty, isFloating, notify, notify, notifyByPspec, onNotify, ref, refSink, removeToggleRef, replaceData, replaceData, replaceQdata, runDispose, set, set, setData, setData, setDataFull, setDataFull, setProperty, setProperty, setQdata, setQdataFull, stealData, stealData, stealQdata, takeRef, thawNotify, unref, watchClosure, weakRef, weakUnrefMethods inherited from class ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacksMethods inherited from class ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNullMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Field Details
-
SIGNAL_ON_HANDLE_ADD_AGENT
- See Also:
-
SIGNAL_ON_HANDLE_CREATE_CLIENT
- See Also:
-
SIGNAL_ON_HANDLE_DELETE_CLIENT
- See Also:
-
SIGNAL_ON_HANDLE_GET_CLIENT
- See Also:
-
-
Constructor Details
-
Manager
-
-
Method Details
-
getClassHandler
-
callAddAgent
public void callAddAgent(@Nonnull Str arg_id, @Nullable Cancellable cancellable, Manager.OnAsyncReadyCallback callback, @Nullable Pointer user_data) Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-GeoClue2-Manager.AddAgent">AddAgent()</link> 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 gclue_manager_call_add_agent_finish() to get the result of the operation.
See gclue_manager_call_add_agent_sync() for the synchronous, blocking version of this method.- Parameters:
arg_id- Argument to pass with the method invocation.cancellable- A #GCancellable or %NULL.callback- A #GAsyncReadyCallback to call when the request is satisfied or %NULL.user_data- User data to pass to @callback.
-
callAddAgent
public void callAddAgent(String arg_id, @Nullable Cancellable cancellable, Manager.OnAsyncReadyCallback callback, @Nullable Pointer user_data) Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-GeoClue2-Manager.AddAgent">AddAgent()</link> 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 gclue_manager_call_add_agent_finish() to get the result of the operation.
See gclue_manager_call_add_agent_sync() for the synchronous, blocking version of this method.- Parameters:
arg_id- Argument to pass with the method invocation.cancellable- A #GCancellable or %NULL.callback- A #GAsyncReadyCallback to call when the request is satisfied or %NULL.user_data- User data to pass to @callback.
-
callAddAgentFinish
Finishes an operation started with gclue_manager_call_add_agent().- Parameters:
res- The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gclue_manager_call_add_agent().- Returns:
- %TRUE if the call succeeded, %FALSE if @error is set.
- Throws:
AllocationError
-
callAddAgentSync
public boolean callAddAgentSync(@Nonnull Str arg_id, @Nullable Cancellable cancellable) throws AllocationError Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-GeoClue2-Manager.AddAgent">AddAgent()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
See gclue_manager_call_add_agent() for the asynchronous version of this method.- Parameters:
arg_id- Argument to pass with the method invocation.cancellable- A #GCancellable or %NULL.- Returns:
- %TRUE if the call succeeded, %FALSE if @error is set.
- Throws:
AllocationError
-
callAddAgentSync
public boolean callAddAgentSync(String arg_id, @Nullable Cancellable cancellable) throws AllocationError Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-GeoClue2-Manager.AddAgent">AddAgent()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
See gclue_manager_call_add_agent() for the asynchronous version of this method.- Parameters:
arg_id- Argument to pass with the method invocation.cancellable- A #GCancellable or %NULL.- Returns:
- %TRUE if the call succeeded, %FALSE if @error is set.
- Throws:
AllocationError
-
callCreateClient
public void callCreateClient(@Nullable Cancellable cancellable, Manager.OnAsyncReadyCallback callback, @Nullable Pointer user_data) Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-GeoClue2-Manager.CreateClient">CreateClient()</link> 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 gclue_manager_call_create_client_finish() to get the result of the operation.
See gclue_manager_call_create_client_sync() for the synchronous, blocking version of this method.- Parameters:
cancellable- A #GCancellable or %NULL.callback- A #GAsyncReadyCallback to call when the request is satisfied or %NULL.user_data- User data to pass to @callback.
-
callDeleteClient
public void callDeleteClient(@Nonnull Str arg_client, @Nullable Cancellable cancellable, Manager.OnAsyncReadyCallback callback, @Nullable Pointer user_data) Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-GeoClue2-Manager.DeleteClient">DeleteClient()</link> 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 gclue_manager_call_delete_client_finish() to get the result of the operation.
See gclue_manager_call_delete_client_sync() for the synchronous, blocking version of this method.- Parameters:
arg_client- Argument to pass with the method invocation.cancellable- A #GCancellable or %NULL.callback- A #GAsyncReadyCallback to call when the request is satisfied or %NULL.user_data- User data to pass to @callback.
-
callDeleteClient
public void callDeleteClient(String arg_client, @Nullable Cancellable cancellable, Manager.OnAsyncReadyCallback callback, @Nullable Pointer user_data) Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-GeoClue2-Manager.DeleteClient">DeleteClient()</link> 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 gclue_manager_call_delete_client_finish() to get the result of the operation.
See gclue_manager_call_delete_client_sync() for the synchronous, blocking version of this method.- Parameters:
arg_client- Argument to pass with the method invocation.cancellable- A #GCancellable or %NULL.callback- A #GAsyncReadyCallback to call when the request is satisfied or %NULL.user_data- User data to pass to @callback.
-
callDeleteClientFinish
Finishes an operation started with gclue_manager_call_delete_client().- Parameters:
res- The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gclue_manager_call_delete_client().- Returns:
- %TRUE if the call succeeded, %FALSE if @error is set.
- Throws:
AllocationError
-
callDeleteClientSync
public boolean callDeleteClientSync(@Nonnull Str arg_client, @Nullable Cancellable cancellable) throws AllocationError Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-GeoClue2-Manager.DeleteClient">DeleteClient()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
See gclue_manager_call_delete_client() for the asynchronous version of this method.- Parameters:
arg_client- Argument to pass with the method invocation.cancellable- A #GCancellable or %NULL.- Returns:
- %TRUE if the call succeeded, %FALSE if @error is set.
- Throws:
AllocationError
-
callDeleteClientSync
public boolean callDeleteClientSync(String arg_client, @Nullable Cancellable cancellable) throws AllocationError Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-GeoClue2-Manager.DeleteClient">DeleteClient()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
See gclue_manager_call_delete_client() for the asynchronous version of this method.- Parameters:
arg_client- Argument to pass with the method invocation.cancellable- A #GCancellable or %NULL.- Returns:
- %TRUE if the call succeeded, %FALSE if @error is set.
- Throws:
AllocationError
-
callGetClient
public void callGetClient(@Nullable Cancellable cancellable, Manager.OnAsyncReadyCallback callback, @Nullable Pointer user_data) Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-GeoClue2-Manager.GetClient">GetClient()</link> 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 gclue_manager_call_get_client_finish() to get the result of the operation.
See gclue_manager_call_get_client_sync() for the synchronous, blocking version of this method.- Parameters:
cancellable- A #GCancellable or %NULL.callback- A #GAsyncReadyCallback to call when the request is satisfied or %NULL.user_data- User data to pass to @callback.
-
completeAddAgent
Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-GeoClue2-Manager.AddAgent">AddAgent()</link> 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.- Parameters:
invocation- A #GDBusMethodInvocation.
-
completeCreateClient
Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-GeoClue2-Manager.CreateClient">CreateClient()</link> 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.- Parameters:
invocation- A #GDBusMethodInvocation.client- Parameter to return.
-
completeCreateClient
Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-GeoClue2-Manager.CreateClient">CreateClient()</link> 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.- Parameters:
invocation- A #GDBusMethodInvocation.client- Parameter to return.
-
completeDeleteClient
Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-GeoClue2-Manager.DeleteClient">DeleteClient()</link> 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.- Parameters:
invocation- A #GDBusMethodInvocation.
-
completeGetClient
Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-GeoClue2-Manager.GetClient">GetClient()</link> 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.- Parameters:
invocation- A #GDBusMethodInvocation.client- Parameter to return.
-
completeGetClient
Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-GeoClue2-Manager.GetClient">GetClient()</link> 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.- Parameters:
invocation- A #GDBusMethodInvocation.client- Parameter to return.
-
getAvailableAccuracyLevel
public int getAvailableAccuracyLevel()Gets the value of the <link linkend="gdbus-property-org-freedesktop-GeoClue2-Manager.AvailableAccuracyLevel">"AvailableAccuracyLevel"</link> D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.- Returns:
- The property value.
-
getInUse
public boolean getInUse()Gets the value of the <link linkend="gdbus-property-org-freedesktop-GeoClue2-Manager.InUse">"InUse"</link> D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.- Returns:
- The property value.
-
setAvailableAccuracyLevel
public void setAvailableAccuracyLevel(int value) Sets the <link linkend="gdbus-property-org-freedesktop-GeoClue2-Manager.AvailableAccuracyLevel">"AvailableAccuracyLevel"</link> D-Bus property to @value.
Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.- Parameters:
value- The value to set.
-
setInUse
public void setInUse(boolean value) Sets the <link linkend="gdbus-property-org-freedesktop-GeoClue2-Manager.InUse">"InUse"</link> D-Bus property to @value.
Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.- Parameters:
value- The value to set.
-
onHandleAddAgent
Connect to signal "handle-add-agent".
SeeManager.OnHandleAddAgent.onHandleAddAgent(ch.bailu.gtk.gio.DBusMethodInvocation, ch.bailu.gtk.type.Str)for signal description.
FieldSIGNAL_ON_HANDLE_ADD_AGENTcontains original signal name and can be used as resource reference.- Parameters:
signal- callback function (lambda).- Returns:
SignalHandler. Can be used to disconnect signal and to release callback function.
-
onHandleCreateClient
Connect to signal "handle-create-client".
SeeManager.OnHandleCreateClient.onHandleCreateClient(ch.bailu.gtk.gio.DBusMethodInvocation)for signal description.
FieldSIGNAL_ON_HANDLE_CREATE_CLIENTcontains original signal name and can be used as resource reference.- Parameters:
signal- callback function (lambda).- Returns:
SignalHandler. Can be used to disconnect signal and to release callback function.
-
onHandleDeleteClient
Connect to signal "handle-delete-client".
SeeManager.OnHandleDeleteClient.onHandleDeleteClient(ch.bailu.gtk.gio.DBusMethodInvocation, ch.bailu.gtk.type.Str)for signal description.
FieldSIGNAL_ON_HANDLE_DELETE_CLIENTcontains original signal name and can be used as resource reference.- Parameters:
signal- callback function (lambda).- Returns:
SignalHandler. Can be used to disconnect signal and to release callback function.
-
onHandleGetClient
Connect to signal "handle-get-client".
SeeManager.OnHandleGetClient.onHandleGetClient(ch.bailu.gtk.gio.DBusMethodInvocation)for signal description.
FieldSIGNAL_ON_HANDLE_GET_CLIENTcontains original signal name and can be used as resource reference.- Parameters:
signal- callback function (lambda).- Returns:
SignalHandler. Can be used to disconnect signal and to release callback function.
-
interfaceInfo
Gets a machine-readable description of the <link linkend="gdbus-interface-org-freedesktop-GeoClue2-Manager.top_of_page">org.freedesktop.GeoClue2.Manager</link> D-Bus interface.- Returns:
- A #GDBusInterfaceInfo. Do not free.
-
overrideProperties
Overrides all #GObject properties in the #GClueManager interface for a concrete class.
The properties are overridden in the order they are defined.- Parameters:
klass- The class structure for a #GObject derived class.property_id_begin- The property id to assign to the first overridden property.- Returns:
- The last property id.
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-