Package ch.bailu.gtk.geoclue
Klasse ClientProxy
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.gobject.Object
ch.bailu.gtk.type.PropertyHolder
ch.bailu.gtk.gio.DBusProxy
ch.bailu.gtk.geoclue.ClientProxy
- Alle implementierten Schnittstellen:
PointerInterface
The #GClueClientProxy structure contains only private data and should only be accessed using the provided API.
https://www.freedesktop.org/software/geoclue/docs/libgeoclue/
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenVon Klasse geerbte verschachtelte Klassen/Schnittstellen ch.bailu.gtk.gio.DBusProxy
DBusProxy.OnGSignal
Von Klasse geerbte verschachtelte Klassen/Schnittstellen ch.bailu.gtk.gobject.Object
Object.OnBindingTransformFunc, Object.OnDestroyNotify, Object.OnDuplicateFunc, Object.OnNotify, Object.OnToggleNotify, Object.OnWeakNotify
-
Feldübersicht
Von Klasse geerbte Felder ch.bailu.gtk.gio.DBusProxy
SIGNAL_ON_G_SIGNAL
Von Klasse geerbte Felder ch.bailu.gtk.gobject.Object
SIGNAL_ON_NOTIFY
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic void
_new
(DBusConnection connection, int flags, Str name, Str object_path, Cancellable cancellable, ClientProxy.OnAsyncReadyCallback callback, Pointer user_data) Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-GeoClue2-Client.top_of_page">org.freedesktop.GeoClue2.Client</link>.Implements interfaceAsyncInitable
.asClient()
Implements interfaceClient
.Implements interfaceDBusInterface
.Implements interfaceInitable
.static void
create
(Str desktop_id, int accuracy_level, Cancellable cancellable, ClientProxy.OnAsyncReadyCallback callback, Pointer user_data) A utility function to create a #GClueClientProxy without having to deal with
a #GClueManager.static ClientProxy
createFinish
(AsyncResult result) Finishes an operation started with gclue_client_proxy_create().static void
createFull
(Str desktop_id, int accuracy_level, int flags, Cancellable cancellable, ClientProxy.OnAsyncReadyCallback callback, Pointer user_data) A utility function to create a #GClueClientProxy without having to deal with
a #GClueManager.static ClientProxy
createFullFinish
(AsyncResult result) Finishes an operation started with gclue_client_proxy_create_full().static ClientProxy
createFullSync
(Str desktop_id, int accuracy_level, int flags, Cancellable cancellable) The synchronous and blocking version of #gclue_client_proxy_create_full().static ClientProxy
createSync
(Str desktop_id, int accuracy_level, Cancellable cancellable) The synchronous and blocking version of #gclue_client_proxy_create().static ClassHandler
static int
static long
static TypeSystem.TypeSize
static long
static TypeSystem.TypeSize
static ClientProxy
Finishes an operation started with gclue_client_proxy_new().static void
newForBus
(int bus_type, int flags, Str name, Str object_path, Cancellable cancellable, ClientProxy.OnAsyncReadyCallback callback, Pointer user_data) Like gclue_client_proxy_new() but takes a #GBusType instead of a #GDBusConnection.static ClientProxy
Finishes an operation started with gclue_client_proxy_new_for_bus().static ClientProxy
newForBusSyncClientProxy
(int bus_type, int flags, Str name, Str object_path, Cancellable cancellable) Like gclue_client_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection.static ClientProxy
newForBusSyncClientProxy
(int bus_type, int flags, String name, String object_path, Cancellable cancellable) Like gclue_client_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection.static ClientProxy
newSyncClientProxy
(DBusConnection connection, int flags, Str name, Str object_path, Cancellable cancellable) Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-GeoClue2-Client.top_of_page">org.freedesktop.GeoClue2.Client</link>.static ClientProxy
newSyncClientProxy
(DBusConnection connection, int flags, String name, String object_path, Cancellable cancellable) Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-GeoClue2-Client.top_of_page">org.freedesktop.GeoClue2.Client</link>.Von Klasse geerbte Methoden ch.bailu.gtk.gio.DBusProxy
_new, call, call, callFinish, callSync, callSync, callWithUnixFdList, callWithUnixFdList, getCachedProperty, getCachedProperty, getConnection, getDefaultTimeout, getFlags, getInterfaceInfo, getInterfaceName, getName, getNameOwner, getObjectPath, newFinishDBusProxy, newForBus, newForBusFinishDBusProxy, newForBusSyncDBusProxy, newForBusSyncDBusProxy, newSyncDBusProxy, newSyncDBusProxy, onGSignal, setCachedProperty, setCachedProperty, setDefaultTimeout, setInterfaceInfo
Von Klasse geerbte Methoden ch.bailu.gtk.type.PropertyHolder
getBooleanProperty, getIntProperty, getObjectProperty, getStringProperty, getStrProperty, setBooleanProperty, setIntProperty, setObjectProperty, setStringProperty, setStrProperty
Von Klasse geerbte Methoden 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, weakUnref
Von Klasse geerbte Methoden ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacks
Von Klasse geerbte Methoden ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Von Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Konstruktordetails
-
ClientProxy
-
-
Methodendetails
-
getClassHandler
-
newFinishClientProxy
Finishes an operation started with gclue_client_proxy_new().- Parameter:
res
- The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gclue_client_proxy_new().- Gibt zurück:
- The constructed proxy object or %NULL if @error is set.
- Löst aus:
AllocationError
-
newForBusFinishClientProxy
public static ClientProxy newForBusFinishClientProxy(@Nonnull AsyncResult res) throws AllocationError Finishes an operation started with gclue_client_proxy_new_for_bus().- Parameter:
res
- The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gclue_client_proxy_new_for_bus().- Gibt zurück:
- The constructed proxy object or %NULL if @error is set.
- Löst aus:
AllocationError
-
newForBusSyncClientProxy
public static ClientProxy newForBusSyncClientProxy(int bus_type, int flags, @Nonnull Str name, @Nonnull Str object_path, @Nullable Cancellable cancellable) throws AllocationError Like gclue_client_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection.
The calling thread is blocked until a reply is received.
See gclue_client_proxy_new_for_bus() for the asynchronous version of this constructor.- Parameter:
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.- Gibt zurück:
- The constructed proxy object or %NULL if @error is set.
- Löst aus:
AllocationError
-
newForBusSyncClientProxy
public static ClientProxy newForBusSyncClientProxy(int bus_type, int flags, String name, String object_path, @Nullable Cancellable cancellable) throws AllocationError Like gclue_client_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection.
The calling thread is blocked until a reply is received.
See gclue_client_proxy_new_for_bus() for the asynchronous version of this constructor.- Parameter:
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.- Gibt zurück:
- The constructed proxy object or %NULL if @error is set.
- Löst aus:
AllocationError
-
newSyncClientProxy
public static ClientProxy newSyncClientProxy(@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-Client.top_of_page">org.freedesktop.GeoClue2.Client</link>. See g_dbus_proxy_new_sync() for more details.
The calling thread is blocked until a reply is received.
See gclue_client_proxy_new() for the asynchronous version of this constructor.- Parameter:
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.- Gibt zurück:
- The constructed proxy object or %NULL if @error is set.
- Löst aus:
AllocationError
-
newSyncClientProxy
public static ClientProxy newSyncClientProxy(@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-Client.top_of_page">org.freedesktop.GeoClue2.Client</link>. See g_dbus_proxy_new_sync() for more details.
The calling thread is blocked until a reply is received.
See gclue_client_proxy_new() for the asynchronous version of this constructor.- Parameter:
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.- Gibt zurück:
- The constructed proxy object or %NULL if @error is set.
- Löst aus:
AllocationError
-
create
public static void create(@Nonnull Str desktop_id, int accuracy_level, @Nullable Cancellable cancellable, ClientProxy.OnAsyncReadyCallback callback, @Nullable Pointer user_data) A utility function to create a #GClueClientProxy without having to deal with
a #GClueManager. See also gclue_client_proxy_create_full() which improves
resource management.
This is identitcal to calling gclue_client_proxy_create_full() without any
flags set.
See #gclue_client_proxy_create_sync() for the synchronous, blocking version
of this function.- Parameter:
desktop_id
- The desktop file id (the basename of the desktop file).accuracy_level
- The requested accuracy level as #GClueAccuracyLevel.cancellable
- A #GCancellable or %NULL.callback
- A #GAsyncReadyCallback to call when the results are ready.user_data
- User data to pass to @callback.
-
createFinish
Finishes an operation started with gclue_client_proxy_create().- Parameter:
result
- The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gclue_client_proxy_create().- Gibt zurück:
- The constructed proxy object or %NULL if @error is set.
- Löst aus:
AllocationError
-
createFull
public static void createFull(@Nonnull Str desktop_id, int accuracy_level, int flags, @Nullable Cancellable cancellable, ClientProxy.OnAsyncReadyCallback callback, @Nullable Pointer user_data) A utility function to create a #GClueClientProxy without having to deal with
a #GClueManager.
By setting the #GCLUE_CLIENT_PROXY_CREATE_AUTO_DELETE flag you can ensure
that the client will be deleted again from the geoclue service when
it is destroyed. This flag should be used unless you are doing explicit
resource management.
See #gclue_client_proxy_create_full_sync() for the synchronous, blocking
version of this function.- Parameter:
desktop_id
- The desktop file id (the basename of the desktop file).accuracy_level
- The requested accuracy level as #GClueAccuracyLevel.flags
- #GClueClientProxyCreateFlags to modify the creation.cancellable
- A #GCancellable or %NULL.callback
- A #GAsyncReadyCallback to call when the results are ready.user_data
- User data to pass to @callback.
-
createFullFinish
Finishes an operation started with gclue_client_proxy_create_full().- Parameter:
result
- The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gclue_client_proxy_create().- Gibt zurück:
- The constructed proxy object or %NULL if @error is set.
- Löst aus:
AllocationError
-
createFullSync
public static ClientProxy createFullSync(@Nonnull Str desktop_id, int accuracy_level, int flags, @Nullable Cancellable cancellable) throws AllocationError The synchronous and blocking version of #gclue_client_proxy_create_full().
By setting the #GCLUE_CLIENT_PROXY_CREATE_AUTO_DELETE flag you can ensure
that the client will be deleted again from the geoclue service when
it is destroyed. This flag should be used unless you are doing explicit
resource management.- Parameter:
desktop_id
- The desktop file id (the basename of the desktop file).accuracy_level
- The requested accuracy level as #GClueAccuracyLevel.flags
- #GClueClientProxyCreateFlags to modify the creation.cancellable
- A #GCancellable or %NULL.- Gibt zurück:
- The constructed proxy object or %NULL if @error is set.
- Löst aus:
AllocationError
-
createSync
public static ClientProxy createSync(@Nonnull Str desktop_id, int accuracy_level, @Nullable Cancellable cancellable) throws AllocationError The synchronous and blocking version of #gclue_client_proxy_create().
See also gclue_client_proxy_create_full_sync() which improves resource
management.
This function is identical to calling gclue_client_proxy_create_full_sync()
without any flags set.- Parameter:
desktop_id
- The desktop file id (the basename of the desktop file).accuracy_level
- The requested accuracy level as #GClueAccuracyLevel.cancellable
- A #GCancellable or %NULL.- Gibt zurück:
- The constructed proxy object or %NULL if @error is set.
- Löst aus:
AllocationError
-
_new
public static void _new(@Nonnull DBusConnection connection, int flags, @Nullable Str name, @Nonnull Str object_path, @Nullable Cancellable cancellable, ClientProxy.OnAsyncReadyCallback callback, @Nullable Pointer user_data) Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-GeoClue2-Client.top_of_page">org.freedesktop.GeoClue2.Client</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_client_proxy_new_finish() to get the result of the operation.
See gclue_client_proxy_new_sync() for the synchronous, blocking version of this constructor.- Parameter:
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, ClientProxy.OnAsyncReadyCallback callback, @Nullable Pointer user_data) Like gclue_client_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_client_proxy_new_for_bus_finish() to get the result of the operation.
See gclue_client_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor.- Parameter:
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.
-
asClient
Implements interfaceClient
. Call this to get access to interface functions.- Gibt zurück:
Client
-
asAsyncInitable
Implements interfaceAsyncInitable
. Call this to get access to interface functions.- Setzt außer Kraft:
asAsyncInitable
in KlasseDBusProxy
- Gibt zurück:
AsyncInitable
-
asDBusInterface
Implements interfaceDBusInterface
. Call this to get access to interface functions.- Setzt außer Kraft:
asDBusInterface
in KlasseDBusProxy
- Gibt zurück:
DBusInterface
-
asInitable
Implements interfaceInitable
. Call this to get access to interface functions.- Setzt außer Kraft:
asInitable
in KlasseDBusProxy
- Gibt zurück:
Initable
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-