Class Manager

All Implemented Interfaces:
PointerInterface

public class Manager extends Interface
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/

  • Field Details

  • Constructor Details

  • Method Details

    • getClassHandler

      public static ClassHandler 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

      public boolean callAddAgentFinish(@Nonnull AsyncResult res) throws AllocationError
      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

      public boolean callDeleteClientFinish(@Nonnull AsyncResult res) throws AllocationError
      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

      public void completeAddAgent(@Nonnull 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. 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

      public void completeCreateClient(@Nonnull DBusMethodInvocation invocation, @Nonnull 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. 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

      public void completeCreateClient(@Nonnull 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. 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

      public void completeDeleteClient(@Nonnull 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. 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

      public void completeGetClient(@Nonnull DBusMethodInvocation invocation, @Nonnull 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. 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

      public void completeGetClient(@Nonnull 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. 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

      public SignalHandler onHandleAddAgent(Manager.OnHandleAddAgent signal)
      Connect to signal "handle-add-agent".
      See Manager.OnHandleAddAgent.onHandleAddAgent(ch.bailu.gtk.gio.DBusMethodInvocation, ch.bailu.gtk.type.Str) for signal description.
      Field SIGNAL_ON_HANDLE_ADD_AGENT contains 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

      public SignalHandler onHandleCreateClient(Manager.OnHandleCreateClient signal)
      Connect to signal "handle-create-client".
      See Manager.OnHandleCreateClient.onHandleCreateClient(ch.bailu.gtk.gio.DBusMethodInvocation) for signal description.
      Field SIGNAL_ON_HANDLE_CREATE_CLIENT contains 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

      public SignalHandler onHandleDeleteClient(Manager.OnHandleDeleteClient signal)
      Connect to signal "handle-delete-client".
      See Manager.OnHandleDeleteClient.onHandleDeleteClient(ch.bailu.gtk.gio.DBusMethodInvocation, ch.bailu.gtk.type.Str) for signal description.
      Field SIGNAL_ON_HANDLE_DELETE_CLIENT contains 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

      public SignalHandler onHandleGetClient(Manager.OnHandleGetClient signal)
      Connect to signal "handle-get-client".
      See Manager.OnHandleGetClient.onHandleGetClient(ch.bailu.gtk.gio.DBusMethodInvocation) for signal description.
      Field SIGNAL_ON_HANDLE_GET_CLIENT contains 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

      public static DBusInterfaceInfo 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

      public static int overrideProperties(@Nonnull ObjectClass klass, int property_id_begin)
      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

      public static TypeSystem.TypeSize getTypeSize()
    • getParentTypeSize

      public static TypeSystem.TypeSize getParentTypeSize()
    • getInstanceSize

      public static int getInstanceSize()