Class ManagerProxy

All Implemented Interfaces:
PointerInterface

public class ManagerProxy extends DBusProxy
The #GClueManagerProxy structure contains only private data and should only be accessed using the provided API.

https://www.freedesktop.org/software/geoclue/docs/libgeoclue/

  • Constructor Details

  • Method Details

    • getClassHandler

      public static ClassHandler getClassHandler()
    • newFinishManagerProxy

      public static ManagerProxy newFinishManagerProxy(@Nonnull AsyncResult res) throws AllocationError
      Finishes an operation started with gclue_manager_proxy_new().
      Parameters:
      res - The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gclue_manager_proxy_new().
      Returns:
      The constructed proxy object or %NULL if @error is set.
      Throws:
      AllocationError
    • newForBusFinishManagerProxy

      public static ManagerProxy newForBusFinishManagerProxy(@Nonnull AsyncResult res) throws AllocationError
      Finishes an operation started with gclue_manager_proxy_new_for_bus().
      Parameters:
      res - The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gclue_manager_proxy_new_for_bus().
      Returns:
      The constructed proxy object or %NULL if @error is set.
      Throws:
      AllocationError
    • newForBusSyncManagerProxy

      public static ManagerProxy newForBusSyncManagerProxy(int bus_type, int flags, @Nonnull Str name, @Nonnull Str object_path, @Nullable Cancellable cancellable) throws AllocationError
      Like gclue_manager_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection.

      The calling thread is blocked until a reply is received.

      See gclue_manager_proxy_new_for_bus() for the asynchronous version of this constructor.
      Parameters:
      bus_type - A #GBusType.
      flags - Flags from the #GDBusProxyFlags enumeration.
      name - A bus name (well-known or unique).
      object_path - An object path.
      cancellable - A #GCancellable or %NULL.
      Returns:
      The constructed proxy object or %NULL if @error is set.
      Throws:
      AllocationError
    • newForBusSyncManagerProxy

      public static ManagerProxy newForBusSyncManagerProxy(int bus_type, int flags, String name, String object_path, @Nullable Cancellable cancellable) throws AllocationError
      Like gclue_manager_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection.

      The calling thread is blocked until a reply is received.

      See gclue_manager_proxy_new_for_bus() for the asynchronous version of this constructor.
      Parameters:
      bus_type - A #GBusType.
      flags - Flags from the #GDBusProxyFlags enumeration.
      name - A bus name (well-known or unique).
      object_path - An object path.
      cancellable - A #GCancellable or %NULL.
      Returns:
      The constructed proxy object or %NULL if @error is set.
      Throws:
      AllocationError
    • newSyncManagerProxy

      public static ManagerProxy newSyncManagerProxy(@Nonnull DBusConnection connection, int flags, @Nullable Str name, @Nonnull Str object_path, @Nullable Cancellable cancellable) throws AllocationError
      Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-GeoClue2-Manager.top_of_page">org.freedesktop.GeoClue2.Manager</link>. See g_dbus_proxy_new_sync() for more details.

      The calling thread is blocked until a reply is received.

      See gclue_manager_proxy_new() for the asynchronous version of this constructor.
      Parameters:
      connection - A #GDBusConnection.
      flags - Flags from the #GDBusProxyFlags enumeration.
      name - A bus name (well-known or unique) or %NULL if @connection is not a message bus connection.
      object_path - An object path.
      cancellable - A #GCancellable or %NULL.
      Returns:
      The constructed proxy object or %NULL if @error is set.
      Throws:
      AllocationError
    • newSyncManagerProxy

      public static ManagerProxy newSyncManagerProxy(@Nonnull DBusConnection connection, int flags, String name, String object_path, @Nullable Cancellable cancellable) throws AllocationError
      Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-GeoClue2-Manager.top_of_page">org.freedesktop.GeoClue2.Manager</link>. See g_dbus_proxy_new_sync() for more details.

      The calling thread is blocked until a reply is received.

      See gclue_manager_proxy_new() for the asynchronous version of this constructor.
      Parameters:
      connection - A #GDBusConnection.
      flags - Flags from the #GDBusProxyFlags enumeration.
      name - A bus name (well-known or unique) or %NULL if @connection is not a message bus connection.
      object_path - An object path.
      cancellable - A #GCancellable or %NULL.
      Returns:
      The constructed proxy object or %NULL if @error is set.
      Throws:
      AllocationError
    • _new

      public static void _new(@Nonnull DBusConnection connection, int flags, @Nullable Str name, @Nonnull Str object_path, @Nullable Cancellable cancellable, ManagerProxy.OnAsyncReadyCallback callback, @Nullable Pointer user_data)
      Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-GeoClue2-Manager.top_of_page">org.freedesktop.GeoClue2.Manager</link>. See g_dbus_proxy_new() for more details.

      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_proxy_new_finish() to get the result of the operation.

      See gclue_manager_proxy_new_sync() for the synchronous, blocking version of this constructor.
      Parameters:
      connection - A #GDBusConnection.
      flags - Flags from the #GDBusProxyFlags enumeration.
      name - A bus name (well-known or unique) or %NULL if @connection is not a message bus connection.
      object_path - An object path.
      cancellable - A #GCancellable or %NULL.
      callback - A #GAsyncReadyCallback to call when the request is satisfied.
      user_data - User data to pass to @callback.
    • newForBus

      public static void newForBus(int bus_type, int flags, @Nonnull Str name, @Nonnull Str object_path, @Nullable Cancellable cancellable, ManagerProxy.OnAsyncReadyCallback callback, @Nullable Pointer user_data)
      Like gclue_manager_proxy_new() but takes a #GBusType instead of a #GDBusConnection.

      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_proxy_new_for_bus_finish() to get the result of the operation.

      See gclue_manager_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor.
      Parameters:
      bus_type - A #GBusType.
      flags - Flags from the #GDBusProxyFlags enumeration.
      name - A bus name (well-known or unique).
      object_path - An object path.
      cancellable - A #GCancellable or %NULL.
      callback - A #GAsyncReadyCallback to call when the request is satisfied.
      user_data - User data to pass to @callback.
    • asManager

      public Manager asManager()
      Implements interface Manager. Call this to get access to interface functions.
      Returns:
      Manager
    • asAsyncInitable

      public AsyncInitable asAsyncInitable()
      Implements interface AsyncInitable. Call this to get access to interface functions.
      Overrides:
      asAsyncInitable in class DBusProxy
      Returns:
      AsyncInitable
    • asDBusInterface

      public DBusInterface asDBusInterface()
      Implements interface DBusInterface. Call this to get access to interface functions.
      Overrides:
      asDBusInterface in class DBusProxy
      Returns:
      DBusInterface
    • asInitable

      public Initable asInitable()
      Implements interface Initable. Call this to get access to interface functions.
      Overrides:
      asInitable in class DBusProxy
      Returns:
      Initable
    • 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()