Package ch.bailu.gtk.geoclue
Class Simple
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.gobject.Object
ch.bailu.gtk.geoclue.Simple
- All Implemented Interfaces:
PointerInterface
-
Nested Class Summary
Nested classes/interfaces inherited from class ch.bailu.gtk.gobject.Object
Object.OnBindingTransformFunc, Object.OnDestroyNotify, Object.OnDuplicateFunc, Object.OnNotify, Object.OnToggleNotify, Object.OnWeakNotify
-
Field Summary
Fields inherited from class ch.bailu.gtk.gobject.Object
SIGNAL_ON_NOTIFY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
_new
(Str desktop_id, int accuracy_level, Cancellable cancellable, Simple.OnAsyncReadyCallback callback, Pointer user_data) Asynchronously creates a #GClueSimple instance.Implements interfaceAsyncInitable
.static ClassHandler
Gets the client proxy, or %NULL if @simple is not using a client proxy (i-e
when inside the Flatpak sandbox).static int
Gets the current location.static long
static TypeSystem.TypeSize
static long
static TypeSystem.TypeSize
static Simple
newFinishSimple
(AsyncResult result) Finishes an operation started with #gclue_simple_new().static Simple
newSyncSimple
(Str desktop_id, int accuracy_level, Cancellable cancellable) The synchronous and blocking version of #gclue_simple_new().static Simple
newSyncSimple
(String desktop_id, int accuracy_level, Cancellable cancellable) The synchronous and blocking version of #gclue_simple_new().static void
newWithThresholds
(Str desktop_id, int accuracy_level, int time_threshold, int distance_threshold, Cancellable cancellable, Simple.OnAsyncReadyCallback callback, Pointer user_data) Asynchronously creates a #GClueSimple instance.static Simple
Finishes an operation started with #gclue_simple_new_with_thresholds().static Simple
newWithThresholdsSyncSimple
(Str desktop_id, int accuracy_level, int time_threshold, int distance_threshold, Cancellable cancellable) The synchronous and blocking version of #gclue_simple_new_with_thresholds().static Simple
newWithThresholdsSyncSimple
(String desktop_id, int accuracy_level, int time_threshold, int distance_threshold, Cancellable cancellable) The synchronous and blocking version of #gclue_simple_new_with_thresholds().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, weakUnref
Methods inherited from class ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacks
Methods inherited from class ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Constructor Details
-
Simple
-
-
Method Details
-
getClassHandler
-
newFinishSimple
Finishes an operation started with #gclue_simple_new().- Parameters:
result
- The #GAsyncResult obtained from the #GAsyncReadyCallback passed to #gclue_simple_new().- Returns:
- The constructed proxy object or %NULL if @error is set.
- Throws:
AllocationError
-
newSyncSimple
public static Simple newSyncSimple(@Nonnull Str desktop_id, int accuracy_level, @Nullable Cancellable cancellable) throws AllocationError The synchronous and blocking version of #gclue_simple_new().- Parameters:
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.- Returns:
- The new #GClueSimple object or %NULL if @error is set.
- Throws:
AllocationError
-
newSyncSimple
public static Simple newSyncSimple(String desktop_id, int accuracy_level, @Nullable Cancellable cancellable) throws AllocationError The synchronous and blocking version of #gclue_simple_new().- Parameters:
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.- Returns:
- The new #GClueSimple object or %NULL if @error is set.
- Throws:
AllocationError
-
newWithThresholdsFinishSimple
public static Simple newWithThresholdsFinishSimple(@Nonnull AsyncResult result) throws AllocationError Finishes an operation started with #gclue_simple_new_with_thresholds().- Parameters:
result
- The #GAsyncResult obtained from the #GAsyncReadyCallback passed to #gclue_simple_new_with_thresholds().- Returns:
- The constructed proxy object or %NULL if @error is set.
- Throws:
AllocationError
-
newWithThresholdsSyncSimple
public static Simple newWithThresholdsSyncSimple(@Nonnull Str desktop_id, int accuracy_level, int time_threshold, int distance_threshold, @Nullable Cancellable cancellable) throws AllocationError The synchronous and blocking version of #gclue_simple_new_with_thresholds().- Parameters:
desktop_id
- The desktop file id (the basename of the desktop file).accuracy_level
- The requested accuracy level as #GClueAccuracyLevel.time_threshold
- Time threshold in seconds, 0 for no limit.distance_threshold
- Distance threshold in meters, 0 for no limit.cancellable
- A #GCancellable or %NULL.- Returns:
- The new #GClueSimple object or %NULL if @error is set.
- Throws:
AllocationError
-
newWithThresholdsSyncSimple
public static Simple newWithThresholdsSyncSimple(String desktop_id, int accuracy_level, int time_threshold, int distance_threshold, @Nullable Cancellable cancellable) throws AllocationError The synchronous and blocking version of #gclue_simple_new_with_thresholds().- Parameters:
desktop_id
- The desktop file id (the basename of the desktop file).accuracy_level
- The requested accuracy level as #GClueAccuracyLevel.time_threshold
- Time threshold in seconds, 0 for no limit.distance_threshold
- Distance threshold in meters, 0 for no limit.cancellable
- A #GCancellable or %NULL.- Returns:
- The new #GClueSimple object or %NULL if @error is set.
- Throws:
AllocationError
-
getClient
Gets the client proxy, or %NULL if @simple is not using a client proxy (i-e
when inside the Flatpak sandbox).- Returns:
- The client object.
-
getLocation
Gets the current location.- Returns:
- The last known location as #GClueLocation.
-
_new
public static void _new(@Nonnull Str desktop_id, int accuracy_level, @Nullable Cancellable cancellable, Simple.OnAsyncReadyCallback callback, @Nullable Pointer user_data) Asynchronously creates a #GClueSimple instance. Use
#gclue_simple_new_finish() to get the created #GClueSimple instance.
See #gclue_simple_new_sync() for the synchronous, blocking version
of this function.- Parameters:
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.
-
newWithThresholds
public static void newWithThresholds(@Nonnull Str desktop_id, int accuracy_level, int time_threshold, int distance_threshold, @Nullable Cancellable cancellable, Simple.OnAsyncReadyCallback callback, @Nullable Pointer user_data) Asynchronously creates a #GClueSimple instance. Use
#gclue_simple_new_with_thresholds_finish() to get the created #GClueSimple instance.
See #gclue_simple_new_with_thresholds_sync() for the synchronous,
blocking version of this function.- Parameters:
desktop_id
- The desktop file id (the basename of the desktop file).accuracy_level
- The requested accuracy level as #GClueAccuracyLevel.time_threshold
- Time threshold in seconds, 0 for no limit.distance_threshold
- Distance threshold in meters, 0 for no limit.cancellable
- A #GCancellable or %NULL.callback
- A #GAsyncReadyCallback to call when the results are ready.user_data
- User data to pass to @callback.
-
asAsyncInitable
Implements interfaceAsyncInitable
. Call this to get access to interface functions.- Returns:
AsyncInitable
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-