@girs/geoclue-2.0 2.0.0-3.2.6 → 2.0.0-3.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/geoclue-2.0.d.cts +49 -49
- package/geoclue-2.0.d.ts +49 -49
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|

|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
GJS TypeScript type definitions for Geoclue-2.0, generated from library version 2.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.
|
|
8
|
+
GJS TypeScript type definitions for Geoclue-2.0, generated from library version 2.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.7.
|
|
9
9
|
|
|
10
10
|
GeoClue is a D-Bus geoinformation service. The goal of the Geoclue project is to make creating location-aware applications as simple as possible.
|
|
11
11
|
|
package/geoclue-2.0.d.cts
CHANGED
|
@@ -297,13 +297,13 @@ export interface Client {
|
|
|
297
297
|
* @param arg_old Argument to pass with the signal.
|
|
298
298
|
* @param arg_new Argument to pass with the signal.
|
|
299
299
|
*/
|
|
300
|
-
emit_location_updated(arg_old: string
|
|
300
|
+
emit_location_updated(arg_old: string, arg_new: string): void
|
|
301
301
|
|
|
302
302
|
// Own virtual methods of Geoclue-2.0.Geoclue.Client
|
|
303
303
|
|
|
304
304
|
vfunc_handle_start(invocation: Gio.DBusMethodInvocation): boolean
|
|
305
305
|
vfunc_handle_stop(invocation: Gio.DBusMethodInvocation): boolean
|
|
306
|
-
vfunc_location_updated(arg_old: string
|
|
306
|
+
vfunc_location_updated(arg_old: string, arg_new: string): void
|
|
307
307
|
|
|
308
308
|
// Own signals of Geoclue-2.0.Geoclue.Client
|
|
309
309
|
|
|
@@ -656,7 +656,7 @@ export interface Manager {
|
|
|
656
656
|
* @param cancellable A #GCancellable or %NULL.
|
|
657
657
|
* @param callback A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
|
|
658
658
|
*/
|
|
659
|
-
call_add_agent(arg_id: string
|
|
659
|
+
call_add_agent(arg_id: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
660
660
|
/**
|
|
661
661
|
* Finishes an operation started with gclue_manager_call_add_agent().
|
|
662
662
|
* @param res The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gclue_manager_call_add_agent().
|
|
@@ -671,7 +671,7 @@ export interface Manager {
|
|
|
671
671
|
* @param cancellable A #GCancellable or %NULL.
|
|
672
672
|
* @returns %TRUE if the call succeeded, %FALSE if @error is set.
|
|
673
673
|
*/
|
|
674
|
-
call_add_agent_sync(arg_id: string
|
|
674
|
+
call_add_agent_sync(arg_id: string, cancellable: Gio.Cancellable | null): boolean
|
|
675
675
|
/**
|
|
676
676
|
* Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-GeoClue2-Manager.CreateClient">CreateClient()</link> D-Bus method on `proxy`.
|
|
677
677
|
* 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()).
|
|
@@ -687,7 +687,7 @@ export interface Manager {
|
|
|
687
687
|
* @param res The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gclue_manager_call_create_client().
|
|
688
688
|
* @returns %TRUE if the call succeeded, %FALSE if @error is set.
|
|
689
689
|
*/
|
|
690
|
-
call_create_client_finish(res: Gio.AsyncResult): [ /* returnType */ boolean, /* out_client */ string
|
|
690
|
+
call_create_client_finish(res: Gio.AsyncResult): [ /* returnType */ boolean, /* out_client */ string ]
|
|
691
691
|
/**
|
|
692
692
|
* Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-GeoClue2-Manager.CreateClient">CreateClient()</link> D-Bus method on `proxy`. The calling thread is blocked until a reply is received.
|
|
693
693
|
*
|
|
@@ -695,7 +695,7 @@ export interface Manager {
|
|
|
695
695
|
* @param cancellable A #GCancellable or %NULL.
|
|
696
696
|
* @returns %TRUE if the call succeeded, %FALSE if @error is set.
|
|
697
697
|
*/
|
|
698
|
-
call_create_client_sync(cancellable: Gio.Cancellable | null): [ /* returnType */ boolean, /* out_client */ string
|
|
698
|
+
call_create_client_sync(cancellable: Gio.Cancellable | null): [ /* returnType */ boolean, /* out_client */ string ]
|
|
699
699
|
/**
|
|
700
700
|
* Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-GeoClue2-Manager.DeleteClient">DeleteClient()</link> D-Bus method on `proxy`.
|
|
701
701
|
* 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()).
|
|
@@ -706,7 +706,7 @@ export interface Manager {
|
|
|
706
706
|
* @param cancellable A #GCancellable or %NULL.
|
|
707
707
|
* @param callback A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
|
|
708
708
|
*/
|
|
709
|
-
call_delete_client(arg_client: string
|
|
709
|
+
call_delete_client(arg_client: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
710
710
|
/**
|
|
711
711
|
* Finishes an operation started with gclue_manager_call_delete_client().
|
|
712
712
|
* @param res The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gclue_manager_call_delete_client().
|
|
@@ -721,7 +721,7 @@ export interface Manager {
|
|
|
721
721
|
* @param cancellable A #GCancellable or %NULL.
|
|
722
722
|
* @returns %TRUE if the call succeeded, %FALSE if @error is set.
|
|
723
723
|
*/
|
|
724
|
-
call_delete_client_sync(arg_client: string
|
|
724
|
+
call_delete_client_sync(arg_client: string, cancellable: Gio.Cancellable | null): boolean
|
|
725
725
|
/**
|
|
726
726
|
* Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-GeoClue2-Manager.GetClient">GetClient()</link> D-Bus method on `proxy`.
|
|
727
727
|
* 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()).
|
|
@@ -737,7 +737,7 @@ export interface Manager {
|
|
|
737
737
|
* @param res The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gclue_manager_call_get_client().
|
|
738
738
|
* @returns %TRUE if the call succeeded, %FALSE if @error is set.
|
|
739
739
|
*/
|
|
740
|
-
call_get_client_finish(res: Gio.AsyncResult): [ /* returnType */ boolean, /* out_client */ string
|
|
740
|
+
call_get_client_finish(res: Gio.AsyncResult): [ /* returnType */ boolean, /* out_client */ string ]
|
|
741
741
|
/**
|
|
742
742
|
* Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-GeoClue2-Manager.GetClient">GetClient()</link> D-Bus method on `proxy`. The calling thread is blocked until a reply is received.
|
|
743
743
|
*
|
|
@@ -745,7 +745,7 @@ export interface Manager {
|
|
|
745
745
|
* @param cancellable A #GCancellable or %NULL.
|
|
746
746
|
* @returns %TRUE if the call succeeded, %FALSE if @error is set.
|
|
747
747
|
*/
|
|
748
|
-
call_get_client_sync(cancellable: Gio.Cancellable | null): [ /* returnType */ boolean, /* out_client */ string
|
|
748
|
+
call_get_client_sync(cancellable: Gio.Cancellable | null): [ /* returnType */ boolean, /* out_client */ string ]
|
|
749
749
|
/**
|
|
750
750
|
* 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.
|
|
751
751
|
*
|
|
@@ -760,7 +760,7 @@ export interface Manager {
|
|
|
760
760
|
* @param invocation A #GDBusMethodInvocation.
|
|
761
761
|
* @param client Parameter to return.
|
|
762
762
|
*/
|
|
763
|
-
complete_create_client(invocation: Gio.DBusMethodInvocation, client: string
|
|
763
|
+
complete_create_client(invocation: Gio.DBusMethodInvocation, client: string): void
|
|
764
764
|
/**
|
|
765
765
|
* 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.
|
|
766
766
|
*
|
|
@@ -775,13 +775,13 @@ export interface Manager {
|
|
|
775
775
|
* @param invocation A #GDBusMethodInvocation.
|
|
776
776
|
* @param client Parameter to return.
|
|
777
777
|
*/
|
|
778
|
-
complete_get_client(invocation: Gio.DBusMethodInvocation, client: string
|
|
778
|
+
complete_get_client(invocation: Gio.DBusMethodInvocation, client: string): void
|
|
779
779
|
|
|
780
780
|
// Own virtual methods of Geoclue-2.0.Geoclue.Manager
|
|
781
781
|
|
|
782
|
-
vfunc_handle_add_agent(invocation: Gio.DBusMethodInvocation, arg_id: string
|
|
782
|
+
vfunc_handle_add_agent(invocation: Gio.DBusMethodInvocation, arg_id: string): boolean
|
|
783
783
|
vfunc_handle_create_client(invocation: Gio.DBusMethodInvocation): boolean
|
|
784
|
-
vfunc_handle_delete_client(invocation: Gio.DBusMethodInvocation, arg_client: string
|
|
784
|
+
vfunc_handle_delete_client(invocation: Gio.DBusMethodInvocation, arg_client: string): boolean
|
|
785
785
|
vfunc_handle_get_client(invocation: Gio.DBusMethodInvocation): boolean
|
|
786
786
|
|
|
787
787
|
// Own signals of Geoclue-2.0.Geoclue.Manager
|
|
@@ -969,7 +969,7 @@ export class ClientProxy extends Gio.DBusProxy {
|
|
|
969
969
|
* @param cancellable A #GCancellable or %NULL.
|
|
970
970
|
* @returns The constructed proxy object or %NULL if @error is set.
|
|
971
971
|
*/
|
|
972
|
-
static new_for_bus_sync(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, name: string
|
|
972
|
+
static new_for_bus_sync(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, name: string, object_path: string, cancellable: Gio.Cancellable | null): ClientProxy
|
|
973
973
|
|
|
974
974
|
// Overloads of new_for_bus_sync
|
|
975
975
|
|
|
@@ -987,7 +987,7 @@ export class ClientProxy extends Gio.DBusProxy {
|
|
|
987
987
|
* @param cancellable A #GCancellable or %NULL.
|
|
988
988
|
* @returns A #GDBusProxy or %NULL if error is set. Free with g_object_unref().
|
|
989
989
|
*/
|
|
990
|
-
static new_for_bus_sync(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string
|
|
990
|
+
static new_for_bus_sync(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string, object_path: string, interface_name: string, cancellable: Gio.Cancellable | null): Gio.DBusProxy
|
|
991
991
|
/**
|
|
992
992
|
* 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.
|
|
993
993
|
*
|
|
@@ -1002,7 +1002,7 @@ export class ClientProxy extends Gio.DBusProxy {
|
|
|
1002
1002
|
* @param cancellable A #GCancellable or %NULL.
|
|
1003
1003
|
* @returns The constructed proxy object or %NULL if @error is set.
|
|
1004
1004
|
*/
|
|
1005
|
-
static new_sync(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, name: string | null, object_path: string
|
|
1005
|
+
static new_sync(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, name: string | null, object_path: string, cancellable: Gio.Cancellable | null): ClientProxy
|
|
1006
1006
|
|
|
1007
1007
|
// Overloads of new_sync
|
|
1008
1008
|
|
|
@@ -1039,7 +1039,7 @@ export class ClientProxy extends Gio.DBusProxy {
|
|
|
1039
1039
|
* @param cancellable A #GCancellable or %NULL.
|
|
1040
1040
|
* @returns A #GDBusProxy or %NULL if error is set. Free with g_object_unref().
|
|
1041
1041
|
*/
|
|
1042
|
-
static new_sync(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string | null, object_path: string
|
|
1042
|
+
static new_sync(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string | null, object_path: string, interface_name: string, cancellable: Gio.Cancellable | null): Gio.DBusProxy
|
|
1043
1043
|
_init(config?: ClientProxy.ConstructorProperties): void
|
|
1044
1044
|
/**
|
|
1045
1045
|
* 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.
|
|
@@ -1055,7 +1055,7 @@ export class ClientProxy extends Gio.DBusProxy {
|
|
|
1055
1055
|
* @param cancellable A #GCancellable or %NULL.
|
|
1056
1056
|
* @param callback A #GAsyncReadyCallback to call when the request is satisfied.
|
|
1057
1057
|
*/
|
|
1058
|
-
static new(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, name: string | null, object_path: string
|
|
1058
|
+
static new(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, name: string | null, object_path: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<ClientProxy> | null): void
|
|
1059
1059
|
|
|
1060
1060
|
// Overloads of new
|
|
1061
1061
|
|
|
@@ -1096,7 +1096,7 @@ export class ClientProxy extends Gio.DBusProxy {
|
|
|
1096
1096
|
* @param cancellable A #GCancellable or %NULL.
|
|
1097
1097
|
* @param callback Callback function to invoke when the proxy is ready.
|
|
1098
1098
|
*/
|
|
1099
|
-
static new(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string | null, object_path: string
|
|
1099
|
+
static new(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string | null, object_path: string, interface_name: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<Gio.DBusProxy> | null): void
|
|
1100
1100
|
/**
|
|
1101
1101
|
* Like gclue_client_proxy_new() but takes a #GBusType instead of a #GDBusConnection.
|
|
1102
1102
|
*
|
|
@@ -1111,7 +1111,7 @@ export class ClientProxy extends Gio.DBusProxy {
|
|
|
1111
1111
|
* @param cancellable A #GCancellable or %NULL.
|
|
1112
1112
|
* @param callback A #GAsyncReadyCallback to call when the request is satisfied.
|
|
1113
1113
|
*/
|
|
1114
|
-
static new_for_bus(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, name: string
|
|
1114
|
+
static new_for_bus(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, name: string, object_path: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<ClientProxy> | null): void
|
|
1115
1115
|
|
|
1116
1116
|
// Overloads of new_for_bus
|
|
1117
1117
|
|
|
@@ -1128,7 +1128,7 @@ export class ClientProxy extends Gio.DBusProxy {
|
|
|
1128
1128
|
* @param cancellable A #GCancellable or %NULL.
|
|
1129
1129
|
* @param callback Callback function to invoke when the proxy is ready.
|
|
1130
1130
|
*/
|
|
1131
|
-
static new_for_bus(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string
|
|
1131
|
+
static new_for_bus(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string, object_path: string, interface_name: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<Gio.DBusProxy> | null): void
|
|
1132
1132
|
/**
|
|
1133
1133
|
* A utility function to create a #GClueClientProxy without having to deal with
|
|
1134
1134
|
* a #GClueManager. See also gclue_client_proxy_create_full() which improves
|
|
@@ -1144,7 +1144,7 @@ export class ClientProxy extends Gio.DBusProxy {
|
|
|
1144
1144
|
* @param cancellable A #GCancellable or %NULL.
|
|
1145
1145
|
* @param callback A #GAsyncReadyCallback to call when the results are ready.
|
|
1146
1146
|
*/
|
|
1147
|
-
static create(desktop_id: string
|
|
1147
|
+
static create(desktop_id: string, accuracy_level: AccuracyLevel, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<ClientProxy> | null): void
|
|
1148
1148
|
/**
|
|
1149
1149
|
* Finishes an operation started with gclue_client_proxy_create().
|
|
1150
1150
|
* @param result The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gclue_client_proxy_create().
|
|
@@ -1168,7 +1168,7 @@ export class ClientProxy extends Gio.DBusProxy {
|
|
|
1168
1168
|
* @param cancellable A #GCancellable or %NULL.
|
|
1169
1169
|
* @param callback A #GAsyncReadyCallback to call when the results are ready.
|
|
1170
1170
|
*/
|
|
1171
|
-
static create_full(desktop_id: string
|
|
1171
|
+
static create_full(desktop_id: string, accuracy_level: AccuracyLevel, flags: ClientProxyCreateFlags, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<ClientProxy> | null): void
|
|
1172
1172
|
/**
|
|
1173
1173
|
* Finishes an operation started with gclue_client_proxy_create_full().
|
|
1174
1174
|
* @param result The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gclue_client_proxy_create().
|
|
@@ -1188,7 +1188,7 @@ export class ClientProxy extends Gio.DBusProxy {
|
|
|
1188
1188
|
* @param cancellable A #GCancellable or %NULL.
|
|
1189
1189
|
* @returns The constructed proxy object or %NULL if @error is set.
|
|
1190
1190
|
*/
|
|
1191
|
-
static create_full_sync(desktop_id: string
|
|
1191
|
+
static create_full_sync(desktop_id: string, accuracy_level: AccuracyLevel, flags: ClientProxyCreateFlags, cancellable: Gio.Cancellable | null): ClientProxy
|
|
1192
1192
|
/**
|
|
1193
1193
|
* The synchronous and blocking version of #gclue_client_proxy_create().
|
|
1194
1194
|
* See also gclue_client_proxy_create_full_sync() which improves resource
|
|
@@ -1201,7 +1201,7 @@ export class ClientProxy extends Gio.DBusProxy {
|
|
|
1201
1201
|
* @param cancellable A #GCancellable or %NULL.
|
|
1202
1202
|
* @returns The constructed proxy object or %NULL if @error is set.
|
|
1203
1203
|
*/
|
|
1204
|
-
static create_sync(desktop_id: string
|
|
1204
|
+
static create_sync(desktop_id: string, accuracy_level: AccuracyLevel, cancellable: Gio.Cancellable | null): ClientProxy
|
|
1205
1205
|
}
|
|
1206
1206
|
|
|
1207
1207
|
export module ClientSkeleton {
|
|
@@ -1405,7 +1405,7 @@ export class LocationProxy extends Gio.DBusProxy {
|
|
|
1405
1405
|
* @param cancellable A #GCancellable or %NULL.
|
|
1406
1406
|
* @returns The constructed proxy object or %NULL if @error is set.
|
|
1407
1407
|
*/
|
|
1408
|
-
static new_for_bus_sync(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, name: string
|
|
1408
|
+
static new_for_bus_sync(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, name: string, object_path: string, cancellable: Gio.Cancellable | null): LocationProxy
|
|
1409
1409
|
|
|
1410
1410
|
// Overloads of new_for_bus_sync
|
|
1411
1411
|
|
|
@@ -1423,7 +1423,7 @@ export class LocationProxy extends Gio.DBusProxy {
|
|
|
1423
1423
|
* @param cancellable A #GCancellable or %NULL.
|
|
1424
1424
|
* @returns A #GDBusProxy or %NULL if error is set. Free with g_object_unref().
|
|
1425
1425
|
*/
|
|
1426
|
-
static new_for_bus_sync(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string
|
|
1426
|
+
static new_for_bus_sync(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string, object_path: string, interface_name: string, cancellable: Gio.Cancellable | null): Gio.DBusProxy
|
|
1427
1427
|
/**
|
|
1428
1428
|
* Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-GeoClue2-Location.top_of_page">org.freedesktop.GeoClue2.Location</link>. See g_dbus_proxy_new_sync() for more details.
|
|
1429
1429
|
*
|
|
@@ -1438,7 +1438,7 @@ export class LocationProxy extends Gio.DBusProxy {
|
|
|
1438
1438
|
* @param cancellable A #GCancellable or %NULL.
|
|
1439
1439
|
* @returns The constructed proxy object or %NULL if @error is set.
|
|
1440
1440
|
*/
|
|
1441
|
-
static new_sync(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, name: string | null, object_path: string
|
|
1441
|
+
static new_sync(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, name: string | null, object_path: string, cancellable: Gio.Cancellable | null): LocationProxy
|
|
1442
1442
|
|
|
1443
1443
|
// Overloads of new_sync
|
|
1444
1444
|
|
|
@@ -1475,7 +1475,7 @@ export class LocationProxy extends Gio.DBusProxy {
|
|
|
1475
1475
|
* @param cancellable A #GCancellable or %NULL.
|
|
1476
1476
|
* @returns A #GDBusProxy or %NULL if error is set. Free with g_object_unref().
|
|
1477
1477
|
*/
|
|
1478
|
-
static new_sync(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string | null, object_path: string
|
|
1478
|
+
static new_sync(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string | null, object_path: string, interface_name: string, cancellable: Gio.Cancellable | null): Gio.DBusProxy
|
|
1479
1479
|
_init(config?: LocationProxy.ConstructorProperties): void
|
|
1480
1480
|
/**
|
|
1481
1481
|
* Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-GeoClue2-Location.top_of_page">org.freedesktop.GeoClue2.Location</link>. See g_dbus_proxy_new() for more details.
|
|
@@ -1491,7 +1491,7 @@ export class LocationProxy extends Gio.DBusProxy {
|
|
|
1491
1491
|
* @param cancellable A #GCancellable or %NULL.
|
|
1492
1492
|
* @param callback A #GAsyncReadyCallback to call when the request is satisfied.
|
|
1493
1493
|
*/
|
|
1494
|
-
static new(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, name: string | null, object_path: string
|
|
1494
|
+
static new(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, name: string | null, object_path: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<LocationProxy> | null): void
|
|
1495
1495
|
|
|
1496
1496
|
// Overloads of new
|
|
1497
1497
|
|
|
@@ -1532,7 +1532,7 @@ export class LocationProxy extends Gio.DBusProxy {
|
|
|
1532
1532
|
* @param cancellable A #GCancellable or %NULL.
|
|
1533
1533
|
* @param callback Callback function to invoke when the proxy is ready.
|
|
1534
1534
|
*/
|
|
1535
|
-
static new(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string | null, object_path: string
|
|
1535
|
+
static new(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string | null, object_path: string, interface_name: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<Gio.DBusProxy> | null): void
|
|
1536
1536
|
/**
|
|
1537
1537
|
* Like gclue_location_proxy_new() but takes a #GBusType instead of a #GDBusConnection.
|
|
1538
1538
|
*
|
|
@@ -1547,7 +1547,7 @@ export class LocationProxy extends Gio.DBusProxy {
|
|
|
1547
1547
|
* @param cancellable A #GCancellable or %NULL.
|
|
1548
1548
|
* @param callback A #GAsyncReadyCallback to call when the request is satisfied.
|
|
1549
1549
|
*/
|
|
1550
|
-
static new_for_bus(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, name: string
|
|
1550
|
+
static new_for_bus(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, name: string, object_path: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<LocationProxy> | null): void
|
|
1551
1551
|
|
|
1552
1552
|
// Overloads of new_for_bus
|
|
1553
1553
|
|
|
@@ -1564,7 +1564,7 @@ export class LocationProxy extends Gio.DBusProxy {
|
|
|
1564
1564
|
* @param cancellable A #GCancellable or %NULL.
|
|
1565
1565
|
* @param callback Callback function to invoke when the proxy is ready.
|
|
1566
1566
|
*/
|
|
1567
|
-
static new_for_bus(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string
|
|
1567
|
+
static new_for_bus(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string, object_path: string, interface_name: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<Gio.DBusProxy> | null): void
|
|
1568
1568
|
}
|
|
1569
1569
|
|
|
1570
1570
|
export module LocationSkeleton {
|
|
@@ -1756,7 +1756,7 @@ export class ManagerProxy extends Gio.DBusProxy {
|
|
|
1756
1756
|
* @param cancellable A #GCancellable or %NULL.
|
|
1757
1757
|
* @returns The constructed proxy object or %NULL if @error is set.
|
|
1758
1758
|
*/
|
|
1759
|
-
static new_for_bus_sync(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, name: string
|
|
1759
|
+
static new_for_bus_sync(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, name: string, object_path: string, cancellable: Gio.Cancellable | null): ManagerProxy
|
|
1760
1760
|
|
|
1761
1761
|
// Overloads of new_for_bus_sync
|
|
1762
1762
|
|
|
@@ -1774,7 +1774,7 @@ export class ManagerProxy extends Gio.DBusProxy {
|
|
|
1774
1774
|
* @param cancellable A #GCancellable or %NULL.
|
|
1775
1775
|
* @returns A #GDBusProxy or %NULL if error is set. Free with g_object_unref().
|
|
1776
1776
|
*/
|
|
1777
|
-
static new_for_bus_sync(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string
|
|
1777
|
+
static new_for_bus_sync(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string, object_path: string, interface_name: string, cancellable: Gio.Cancellable | null): Gio.DBusProxy
|
|
1778
1778
|
/**
|
|
1779
1779
|
* 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.
|
|
1780
1780
|
*
|
|
@@ -1789,7 +1789,7 @@ export class ManagerProxy extends Gio.DBusProxy {
|
|
|
1789
1789
|
* @param cancellable A #GCancellable or %NULL.
|
|
1790
1790
|
* @returns The constructed proxy object or %NULL if @error is set.
|
|
1791
1791
|
*/
|
|
1792
|
-
static new_sync(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, name: string | null, object_path: string
|
|
1792
|
+
static new_sync(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, name: string | null, object_path: string, cancellable: Gio.Cancellable | null): ManagerProxy
|
|
1793
1793
|
|
|
1794
1794
|
// Overloads of new_sync
|
|
1795
1795
|
|
|
@@ -1826,7 +1826,7 @@ export class ManagerProxy extends Gio.DBusProxy {
|
|
|
1826
1826
|
* @param cancellable A #GCancellable or %NULL.
|
|
1827
1827
|
* @returns A #GDBusProxy or %NULL if error is set. Free with g_object_unref().
|
|
1828
1828
|
*/
|
|
1829
|
-
static new_sync(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string | null, object_path: string
|
|
1829
|
+
static new_sync(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string | null, object_path: string, interface_name: string, cancellable: Gio.Cancellable | null): Gio.DBusProxy
|
|
1830
1830
|
_init(config?: ManagerProxy.ConstructorProperties): void
|
|
1831
1831
|
/**
|
|
1832
1832
|
* 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.
|
|
@@ -1842,7 +1842,7 @@ export class ManagerProxy extends Gio.DBusProxy {
|
|
|
1842
1842
|
* @param cancellable A #GCancellable or %NULL.
|
|
1843
1843
|
* @param callback A #GAsyncReadyCallback to call when the request is satisfied.
|
|
1844
1844
|
*/
|
|
1845
|
-
static new(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, name: string | null, object_path: string
|
|
1845
|
+
static new(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, name: string | null, object_path: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<ManagerProxy> | null): void
|
|
1846
1846
|
|
|
1847
1847
|
// Overloads of new
|
|
1848
1848
|
|
|
@@ -1883,7 +1883,7 @@ export class ManagerProxy extends Gio.DBusProxy {
|
|
|
1883
1883
|
* @param cancellable A #GCancellable or %NULL.
|
|
1884
1884
|
* @param callback Callback function to invoke when the proxy is ready.
|
|
1885
1885
|
*/
|
|
1886
|
-
static new(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string | null, object_path: string
|
|
1886
|
+
static new(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string | null, object_path: string, interface_name: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<Gio.DBusProxy> | null): void
|
|
1887
1887
|
/**
|
|
1888
1888
|
* Like gclue_manager_proxy_new() but takes a #GBusType instead of a #GDBusConnection.
|
|
1889
1889
|
*
|
|
@@ -1898,7 +1898,7 @@ export class ManagerProxy extends Gio.DBusProxy {
|
|
|
1898
1898
|
* @param cancellable A #GCancellable or %NULL.
|
|
1899
1899
|
* @param callback A #GAsyncReadyCallback to call when the request is satisfied.
|
|
1900
1900
|
*/
|
|
1901
|
-
static new_for_bus(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, name: string
|
|
1901
|
+
static new_for_bus(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, name: string, object_path: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<ManagerProxy> | null): void
|
|
1902
1902
|
|
|
1903
1903
|
// Overloads of new_for_bus
|
|
1904
1904
|
|
|
@@ -1915,7 +1915,7 @@ export class ManagerProxy extends Gio.DBusProxy {
|
|
|
1915
1915
|
* @param cancellable A #GCancellable or %NULL.
|
|
1916
1916
|
* @param callback Callback function to invoke when the proxy is ready.
|
|
1917
1917
|
*/
|
|
1918
|
-
static new_for_bus(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string
|
|
1918
|
+
static new_for_bus(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string, object_path: string, interface_name: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<Gio.DBusProxy> | null): void
|
|
1919
1919
|
}
|
|
1920
1920
|
|
|
1921
1921
|
export module ManagerSkeleton {
|
|
@@ -2166,7 +2166,7 @@ export class Simple extends GObject.Object {
|
|
|
2166
2166
|
* @param cancellable A #GCancellable or %NULL.
|
|
2167
2167
|
* @returns The new #GClueSimple object or %NULL if @error is set.
|
|
2168
2168
|
*/
|
|
2169
|
-
static new_sync(desktop_id: string
|
|
2169
|
+
static new_sync(desktop_id: string, accuracy_level: AccuracyLevel, cancellable: Gio.Cancellable | null): Simple
|
|
2170
2170
|
/**
|
|
2171
2171
|
* Finishes an operation started with #gclue_simple_new_with_thresholds().
|
|
2172
2172
|
* @constructor
|
|
@@ -2184,7 +2184,7 @@ export class Simple extends GObject.Object {
|
|
|
2184
2184
|
* @param cancellable A #GCancellable or %NULL.
|
|
2185
2185
|
* @returns The new #GClueSimple object or %NULL if @error is set.
|
|
2186
2186
|
*/
|
|
2187
|
-
static new_with_thresholds_sync(desktop_id: string
|
|
2187
|
+
static new_with_thresholds_sync(desktop_id: string, accuracy_level: AccuracyLevel, time_threshold: number, distance_threshold: number, cancellable: Gio.Cancellable | null): Simple
|
|
2188
2188
|
_init(config?: Simple.ConstructorProperties): void
|
|
2189
2189
|
/**
|
|
2190
2190
|
* Asynchronously creates a #GClueSimple instance. Use
|
|
@@ -2197,7 +2197,7 @@ export class Simple extends GObject.Object {
|
|
|
2197
2197
|
* @param cancellable A #GCancellable or %NULL.
|
|
2198
2198
|
* @param callback A #GAsyncReadyCallback to call when the results are ready.
|
|
2199
2199
|
*/
|
|
2200
|
-
static new(desktop_id: string
|
|
2200
|
+
static new(desktop_id: string, accuracy_level: AccuracyLevel, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<Simple> | null): void
|
|
2201
2201
|
/**
|
|
2202
2202
|
* Asynchronously creates a #GClueSimple instance. Use
|
|
2203
2203
|
* #gclue_simple_new_with_thresholds_finish() to get the created #GClueSimple instance.
|
|
@@ -2211,7 +2211,7 @@ export class Simple extends GObject.Object {
|
|
|
2211
2211
|
* @param cancellable A #GCancellable or %NULL.
|
|
2212
2212
|
* @param callback A #GAsyncReadyCallback to call when the results are ready.
|
|
2213
2213
|
*/
|
|
2214
|
-
static new_with_thresholds(desktop_id: string
|
|
2214
|
+
static new_with_thresholds(desktop_id: string, accuracy_level: AccuracyLevel, time_threshold: number, distance_threshold: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<Simple> | null): void
|
|
2215
2215
|
}
|
|
2216
2216
|
|
|
2217
2217
|
export interface ClientIface {
|
|
@@ -2231,7 +2231,7 @@ export interface ClientIface {
|
|
|
2231
2231
|
get_location: (object: Client) => string | null
|
|
2232
2232
|
get_requested_accuracy_level: (object: Client) => number
|
|
2233
2233
|
get_time_threshold: (object: Client) => number
|
|
2234
|
-
location_updated: (object: Client, arg_old: string
|
|
2234
|
+
location_updated: (object: Client, arg_old: string, arg_new: string) => void
|
|
2235
2235
|
}
|
|
2236
2236
|
|
|
2237
2237
|
/**
|
|
@@ -2412,9 +2412,9 @@ export interface ManagerIface {
|
|
|
2412
2412
|
* @field
|
|
2413
2413
|
*/
|
|
2414
2414
|
parent_iface: GObject.TypeInterface
|
|
2415
|
-
handle_add_agent: (object: Manager, invocation: Gio.DBusMethodInvocation, arg_id: string
|
|
2415
|
+
handle_add_agent: (object: Manager, invocation: Gio.DBusMethodInvocation, arg_id: string) => boolean
|
|
2416
2416
|
handle_create_client: (object: Manager, invocation: Gio.DBusMethodInvocation) => boolean
|
|
2417
|
-
handle_delete_client: (object: Manager, invocation: Gio.DBusMethodInvocation, arg_client: string
|
|
2417
|
+
handle_delete_client: (object: Manager, invocation: Gio.DBusMethodInvocation, arg_client: string) => boolean
|
|
2418
2418
|
handle_get_client: (object: Manager, invocation: Gio.DBusMethodInvocation) => boolean
|
|
2419
2419
|
get_available_accuracy_level: (object: Manager) => number
|
|
2420
2420
|
get_in_use: (object: Manager) => boolean
|
package/geoclue-2.0.d.ts
CHANGED
|
@@ -299,13 +299,13 @@ interface Client {
|
|
|
299
299
|
* @param arg_old Argument to pass with the signal.
|
|
300
300
|
* @param arg_new Argument to pass with the signal.
|
|
301
301
|
*/
|
|
302
|
-
emit_location_updated(arg_old: string
|
|
302
|
+
emit_location_updated(arg_old: string, arg_new: string): void
|
|
303
303
|
|
|
304
304
|
// Own virtual methods of Geoclue-2.0.Geoclue.Client
|
|
305
305
|
|
|
306
306
|
vfunc_handle_start(invocation: Gio.DBusMethodInvocation): boolean
|
|
307
307
|
vfunc_handle_stop(invocation: Gio.DBusMethodInvocation): boolean
|
|
308
|
-
vfunc_location_updated(arg_old: string
|
|
308
|
+
vfunc_location_updated(arg_old: string, arg_new: string): void
|
|
309
309
|
|
|
310
310
|
// Own signals of Geoclue-2.0.Geoclue.Client
|
|
311
311
|
|
|
@@ -658,7 +658,7 @@ interface Manager {
|
|
|
658
658
|
* @param cancellable A #GCancellable or %NULL.
|
|
659
659
|
* @param callback A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
|
|
660
660
|
*/
|
|
661
|
-
call_add_agent(arg_id: string
|
|
661
|
+
call_add_agent(arg_id: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
662
662
|
/**
|
|
663
663
|
* Finishes an operation started with gclue_manager_call_add_agent().
|
|
664
664
|
* @param res The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gclue_manager_call_add_agent().
|
|
@@ -673,7 +673,7 @@ interface Manager {
|
|
|
673
673
|
* @param cancellable A #GCancellable or %NULL.
|
|
674
674
|
* @returns %TRUE if the call succeeded, %FALSE if @error is set.
|
|
675
675
|
*/
|
|
676
|
-
call_add_agent_sync(arg_id: string
|
|
676
|
+
call_add_agent_sync(arg_id: string, cancellable: Gio.Cancellable | null): boolean
|
|
677
677
|
/**
|
|
678
678
|
* Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-GeoClue2-Manager.CreateClient">CreateClient()</link> D-Bus method on `proxy`.
|
|
679
679
|
* 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()).
|
|
@@ -689,7 +689,7 @@ interface Manager {
|
|
|
689
689
|
* @param res The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gclue_manager_call_create_client().
|
|
690
690
|
* @returns %TRUE if the call succeeded, %FALSE if @error is set.
|
|
691
691
|
*/
|
|
692
|
-
call_create_client_finish(res: Gio.AsyncResult): [ /* returnType */ boolean, /* out_client */ string
|
|
692
|
+
call_create_client_finish(res: Gio.AsyncResult): [ /* returnType */ boolean, /* out_client */ string ]
|
|
693
693
|
/**
|
|
694
694
|
* Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-GeoClue2-Manager.CreateClient">CreateClient()</link> D-Bus method on `proxy`. The calling thread is blocked until a reply is received.
|
|
695
695
|
*
|
|
@@ -697,7 +697,7 @@ interface Manager {
|
|
|
697
697
|
* @param cancellable A #GCancellable or %NULL.
|
|
698
698
|
* @returns %TRUE if the call succeeded, %FALSE if @error is set.
|
|
699
699
|
*/
|
|
700
|
-
call_create_client_sync(cancellable: Gio.Cancellable | null): [ /* returnType */ boolean, /* out_client */ string
|
|
700
|
+
call_create_client_sync(cancellable: Gio.Cancellable | null): [ /* returnType */ boolean, /* out_client */ string ]
|
|
701
701
|
/**
|
|
702
702
|
* Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-GeoClue2-Manager.DeleteClient">DeleteClient()</link> D-Bus method on `proxy`.
|
|
703
703
|
* 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()).
|
|
@@ -708,7 +708,7 @@ interface Manager {
|
|
|
708
708
|
* @param cancellable A #GCancellable or %NULL.
|
|
709
709
|
* @param callback A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
|
|
710
710
|
*/
|
|
711
|
-
call_delete_client(arg_client: string
|
|
711
|
+
call_delete_client(arg_client: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
712
712
|
/**
|
|
713
713
|
* Finishes an operation started with gclue_manager_call_delete_client().
|
|
714
714
|
* @param res The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gclue_manager_call_delete_client().
|
|
@@ -723,7 +723,7 @@ interface Manager {
|
|
|
723
723
|
* @param cancellable A #GCancellable or %NULL.
|
|
724
724
|
* @returns %TRUE if the call succeeded, %FALSE if @error is set.
|
|
725
725
|
*/
|
|
726
|
-
call_delete_client_sync(arg_client: string
|
|
726
|
+
call_delete_client_sync(arg_client: string, cancellable: Gio.Cancellable | null): boolean
|
|
727
727
|
/**
|
|
728
728
|
* Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-GeoClue2-Manager.GetClient">GetClient()</link> D-Bus method on `proxy`.
|
|
729
729
|
* 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()).
|
|
@@ -739,7 +739,7 @@ interface Manager {
|
|
|
739
739
|
* @param res The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gclue_manager_call_get_client().
|
|
740
740
|
* @returns %TRUE if the call succeeded, %FALSE if @error is set.
|
|
741
741
|
*/
|
|
742
|
-
call_get_client_finish(res: Gio.AsyncResult): [ /* returnType */ boolean, /* out_client */ string
|
|
742
|
+
call_get_client_finish(res: Gio.AsyncResult): [ /* returnType */ boolean, /* out_client */ string ]
|
|
743
743
|
/**
|
|
744
744
|
* Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-GeoClue2-Manager.GetClient">GetClient()</link> D-Bus method on `proxy`. The calling thread is blocked until a reply is received.
|
|
745
745
|
*
|
|
@@ -747,7 +747,7 @@ interface Manager {
|
|
|
747
747
|
* @param cancellable A #GCancellable or %NULL.
|
|
748
748
|
* @returns %TRUE if the call succeeded, %FALSE if @error is set.
|
|
749
749
|
*/
|
|
750
|
-
call_get_client_sync(cancellable: Gio.Cancellable | null): [ /* returnType */ boolean, /* out_client */ string
|
|
750
|
+
call_get_client_sync(cancellable: Gio.Cancellable | null): [ /* returnType */ boolean, /* out_client */ string ]
|
|
751
751
|
/**
|
|
752
752
|
* 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.
|
|
753
753
|
*
|
|
@@ -762,7 +762,7 @@ interface Manager {
|
|
|
762
762
|
* @param invocation A #GDBusMethodInvocation.
|
|
763
763
|
* @param client Parameter to return.
|
|
764
764
|
*/
|
|
765
|
-
complete_create_client(invocation: Gio.DBusMethodInvocation, client: string
|
|
765
|
+
complete_create_client(invocation: Gio.DBusMethodInvocation, client: string): void
|
|
766
766
|
/**
|
|
767
767
|
* 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.
|
|
768
768
|
*
|
|
@@ -777,13 +777,13 @@ interface Manager {
|
|
|
777
777
|
* @param invocation A #GDBusMethodInvocation.
|
|
778
778
|
* @param client Parameter to return.
|
|
779
779
|
*/
|
|
780
|
-
complete_get_client(invocation: Gio.DBusMethodInvocation, client: string
|
|
780
|
+
complete_get_client(invocation: Gio.DBusMethodInvocation, client: string): void
|
|
781
781
|
|
|
782
782
|
// Own virtual methods of Geoclue-2.0.Geoclue.Manager
|
|
783
783
|
|
|
784
|
-
vfunc_handle_add_agent(invocation: Gio.DBusMethodInvocation, arg_id: string
|
|
784
|
+
vfunc_handle_add_agent(invocation: Gio.DBusMethodInvocation, arg_id: string): boolean
|
|
785
785
|
vfunc_handle_create_client(invocation: Gio.DBusMethodInvocation): boolean
|
|
786
|
-
vfunc_handle_delete_client(invocation: Gio.DBusMethodInvocation, arg_client: string
|
|
786
|
+
vfunc_handle_delete_client(invocation: Gio.DBusMethodInvocation, arg_client: string): boolean
|
|
787
787
|
vfunc_handle_get_client(invocation: Gio.DBusMethodInvocation): boolean
|
|
788
788
|
|
|
789
789
|
// Own signals of Geoclue-2.0.Geoclue.Manager
|
|
@@ -971,7 +971,7 @@ class ClientProxy extends Gio.DBusProxy {
|
|
|
971
971
|
* @param cancellable A #GCancellable or %NULL.
|
|
972
972
|
* @returns The constructed proxy object or %NULL if @error is set.
|
|
973
973
|
*/
|
|
974
|
-
static new_for_bus_sync(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, name: string
|
|
974
|
+
static new_for_bus_sync(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, name: string, object_path: string, cancellable: Gio.Cancellable | null): ClientProxy
|
|
975
975
|
|
|
976
976
|
// Overloads of new_for_bus_sync
|
|
977
977
|
|
|
@@ -989,7 +989,7 @@ class ClientProxy extends Gio.DBusProxy {
|
|
|
989
989
|
* @param cancellable A #GCancellable or %NULL.
|
|
990
990
|
* @returns A #GDBusProxy or %NULL if error is set. Free with g_object_unref().
|
|
991
991
|
*/
|
|
992
|
-
static new_for_bus_sync(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string
|
|
992
|
+
static new_for_bus_sync(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string, object_path: string, interface_name: string, cancellable: Gio.Cancellable | null): Gio.DBusProxy
|
|
993
993
|
/**
|
|
994
994
|
* 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.
|
|
995
995
|
*
|
|
@@ -1004,7 +1004,7 @@ class ClientProxy extends Gio.DBusProxy {
|
|
|
1004
1004
|
* @param cancellable A #GCancellable or %NULL.
|
|
1005
1005
|
* @returns The constructed proxy object or %NULL if @error is set.
|
|
1006
1006
|
*/
|
|
1007
|
-
static new_sync(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, name: string | null, object_path: string
|
|
1007
|
+
static new_sync(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, name: string | null, object_path: string, cancellable: Gio.Cancellable | null): ClientProxy
|
|
1008
1008
|
|
|
1009
1009
|
// Overloads of new_sync
|
|
1010
1010
|
|
|
@@ -1041,7 +1041,7 @@ class ClientProxy extends Gio.DBusProxy {
|
|
|
1041
1041
|
* @param cancellable A #GCancellable or %NULL.
|
|
1042
1042
|
* @returns A #GDBusProxy or %NULL if error is set. Free with g_object_unref().
|
|
1043
1043
|
*/
|
|
1044
|
-
static new_sync(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string | null, object_path: string
|
|
1044
|
+
static new_sync(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string | null, object_path: string, interface_name: string, cancellable: Gio.Cancellable | null): Gio.DBusProxy
|
|
1045
1045
|
_init(config?: ClientProxy.ConstructorProperties): void
|
|
1046
1046
|
/**
|
|
1047
1047
|
* 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.
|
|
@@ -1057,7 +1057,7 @@ class ClientProxy extends Gio.DBusProxy {
|
|
|
1057
1057
|
* @param cancellable A #GCancellable or %NULL.
|
|
1058
1058
|
* @param callback A #GAsyncReadyCallback to call when the request is satisfied.
|
|
1059
1059
|
*/
|
|
1060
|
-
static new(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, name: string | null, object_path: string
|
|
1060
|
+
static new(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, name: string | null, object_path: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<ClientProxy> | null): void
|
|
1061
1061
|
|
|
1062
1062
|
// Overloads of new
|
|
1063
1063
|
|
|
@@ -1098,7 +1098,7 @@ class ClientProxy extends Gio.DBusProxy {
|
|
|
1098
1098
|
* @param cancellable A #GCancellable or %NULL.
|
|
1099
1099
|
* @param callback Callback function to invoke when the proxy is ready.
|
|
1100
1100
|
*/
|
|
1101
|
-
static new(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string | null, object_path: string
|
|
1101
|
+
static new(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string | null, object_path: string, interface_name: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<Gio.DBusProxy> | null): void
|
|
1102
1102
|
/**
|
|
1103
1103
|
* Like gclue_client_proxy_new() but takes a #GBusType instead of a #GDBusConnection.
|
|
1104
1104
|
*
|
|
@@ -1113,7 +1113,7 @@ class ClientProxy extends Gio.DBusProxy {
|
|
|
1113
1113
|
* @param cancellable A #GCancellable or %NULL.
|
|
1114
1114
|
* @param callback A #GAsyncReadyCallback to call when the request is satisfied.
|
|
1115
1115
|
*/
|
|
1116
|
-
static new_for_bus(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, name: string
|
|
1116
|
+
static new_for_bus(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, name: string, object_path: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<ClientProxy> | null): void
|
|
1117
1117
|
|
|
1118
1118
|
// Overloads of new_for_bus
|
|
1119
1119
|
|
|
@@ -1130,7 +1130,7 @@ class ClientProxy extends Gio.DBusProxy {
|
|
|
1130
1130
|
* @param cancellable A #GCancellable or %NULL.
|
|
1131
1131
|
* @param callback Callback function to invoke when the proxy is ready.
|
|
1132
1132
|
*/
|
|
1133
|
-
static new_for_bus(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string
|
|
1133
|
+
static new_for_bus(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string, object_path: string, interface_name: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<Gio.DBusProxy> | null): void
|
|
1134
1134
|
/**
|
|
1135
1135
|
* A utility function to create a #GClueClientProxy without having to deal with
|
|
1136
1136
|
* a #GClueManager. See also gclue_client_proxy_create_full() which improves
|
|
@@ -1146,7 +1146,7 @@ class ClientProxy extends Gio.DBusProxy {
|
|
|
1146
1146
|
* @param cancellable A #GCancellable or %NULL.
|
|
1147
1147
|
* @param callback A #GAsyncReadyCallback to call when the results are ready.
|
|
1148
1148
|
*/
|
|
1149
|
-
static create(desktop_id: string
|
|
1149
|
+
static create(desktop_id: string, accuracy_level: AccuracyLevel, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<ClientProxy> | null): void
|
|
1150
1150
|
/**
|
|
1151
1151
|
* Finishes an operation started with gclue_client_proxy_create().
|
|
1152
1152
|
* @param result The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gclue_client_proxy_create().
|
|
@@ -1170,7 +1170,7 @@ class ClientProxy extends Gio.DBusProxy {
|
|
|
1170
1170
|
* @param cancellable A #GCancellable or %NULL.
|
|
1171
1171
|
* @param callback A #GAsyncReadyCallback to call when the results are ready.
|
|
1172
1172
|
*/
|
|
1173
|
-
static create_full(desktop_id: string
|
|
1173
|
+
static create_full(desktop_id: string, accuracy_level: AccuracyLevel, flags: ClientProxyCreateFlags, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<ClientProxy> | null): void
|
|
1174
1174
|
/**
|
|
1175
1175
|
* Finishes an operation started with gclue_client_proxy_create_full().
|
|
1176
1176
|
* @param result The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gclue_client_proxy_create().
|
|
@@ -1190,7 +1190,7 @@ class ClientProxy extends Gio.DBusProxy {
|
|
|
1190
1190
|
* @param cancellable A #GCancellable or %NULL.
|
|
1191
1191
|
* @returns The constructed proxy object or %NULL if @error is set.
|
|
1192
1192
|
*/
|
|
1193
|
-
static create_full_sync(desktop_id: string
|
|
1193
|
+
static create_full_sync(desktop_id: string, accuracy_level: AccuracyLevel, flags: ClientProxyCreateFlags, cancellable: Gio.Cancellable | null): ClientProxy
|
|
1194
1194
|
/**
|
|
1195
1195
|
* The synchronous and blocking version of #gclue_client_proxy_create().
|
|
1196
1196
|
* See also gclue_client_proxy_create_full_sync() which improves resource
|
|
@@ -1203,7 +1203,7 @@ class ClientProxy extends Gio.DBusProxy {
|
|
|
1203
1203
|
* @param cancellable A #GCancellable or %NULL.
|
|
1204
1204
|
* @returns The constructed proxy object or %NULL if @error is set.
|
|
1205
1205
|
*/
|
|
1206
|
-
static create_sync(desktop_id: string
|
|
1206
|
+
static create_sync(desktop_id: string, accuracy_level: AccuracyLevel, cancellable: Gio.Cancellable | null): ClientProxy
|
|
1207
1207
|
}
|
|
1208
1208
|
|
|
1209
1209
|
module ClientSkeleton {
|
|
@@ -1407,7 +1407,7 @@ class LocationProxy extends Gio.DBusProxy {
|
|
|
1407
1407
|
* @param cancellable A #GCancellable or %NULL.
|
|
1408
1408
|
* @returns The constructed proxy object or %NULL if @error is set.
|
|
1409
1409
|
*/
|
|
1410
|
-
static new_for_bus_sync(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, name: string
|
|
1410
|
+
static new_for_bus_sync(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, name: string, object_path: string, cancellable: Gio.Cancellable | null): LocationProxy
|
|
1411
1411
|
|
|
1412
1412
|
// Overloads of new_for_bus_sync
|
|
1413
1413
|
|
|
@@ -1425,7 +1425,7 @@ class LocationProxy extends Gio.DBusProxy {
|
|
|
1425
1425
|
* @param cancellable A #GCancellable or %NULL.
|
|
1426
1426
|
* @returns A #GDBusProxy or %NULL if error is set. Free with g_object_unref().
|
|
1427
1427
|
*/
|
|
1428
|
-
static new_for_bus_sync(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string
|
|
1428
|
+
static new_for_bus_sync(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string, object_path: string, interface_name: string, cancellable: Gio.Cancellable | null): Gio.DBusProxy
|
|
1429
1429
|
/**
|
|
1430
1430
|
* Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-GeoClue2-Location.top_of_page">org.freedesktop.GeoClue2.Location</link>. See g_dbus_proxy_new_sync() for more details.
|
|
1431
1431
|
*
|
|
@@ -1440,7 +1440,7 @@ class LocationProxy extends Gio.DBusProxy {
|
|
|
1440
1440
|
* @param cancellable A #GCancellable or %NULL.
|
|
1441
1441
|
* @returns The constructed proxy object or %NULL if @error is set.
|
|
1442
1442
|
*/
|
|
1443
|
-
static new_sync(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, name: string | null, object_path: string
|
|
1443
|
+
static new_sync(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, name: string | null, object_path: string, cancellable: Gio.Cancellable | null): LocationProxy
|
|
1444
1444
|
|
|
1445
1445
|
// Overloads of new_sync
|
|
1446
1446
|
|
|
@@ -1477,7 +1477,7 @@ class LocationProxy extends Gio.DBusProxy {
|
|
|
1477
1477
|
* @param cancellable A #GCancellable or %NULL.
|
|
1478
1478
|
* @returns A #GDBusProxy or %NULL if error is set. Free with g_object_unref().
|
|
1479
1479
|
*/
|
|
1480
|
-
static new_sync(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string | null, object_path: string
|
|
1480
|
+
static new_sync(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string | null, object_path: string, interface_name: string, cancellable: Gio.Cancellable | null): Gio.DBusProxy
|
|
1481
1481
|
_init(config?: LocationProxy.ConstructorProperties): void
|
|
1482
1482
|
/**
|
|
1483
1483
|
* Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-GeoClue2-Location.top_of_page">org.freedesktop.GeoClue2.Location</link>. See g_dbus_proxy_new() for more details.
|
|
@@ -1493,7 +1493,7 @@ class LocationProxy extends Gio.DBusProxy {
|
|
|
1493
1493
|
* @param cancellable A #GCancellable or %NULL.
|
|
1494
1494
|
* @param callback A #GAsyncReadyCallback to call when the request is satisfied.
|
|
1495
1495
|
*/
|
|
1496
|
-
static new(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, name: string | null, object_path: string
|
|
1496
|
+
static new(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, name: string | null, object_path: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<LocationProxy> | null): void
|
|
1497
1497
|
|
|
1498
1498
|
// Overloads of new
|
|
1499
1499
|
|
|
@@ -1534,7 +1534,7 @@ class LocationProxy extends Gio.DBusProxy {
|
|
|
1534
1534
|
* @param cancellable A #GCancellable or %NULL.
|
|
1535
1535
|
* @param callback Callback function to invoke when the proxy is ready.
|
|
1536
1536
|
*/
|
|
1537
|
-
static new(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string | null, object_path: string
|
|
1537
|
+
static new(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string | null, object_path: string, interface_name: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<Gio.DBusProxy> | null): void
|
|
1538
1538
|
/**
|
|
1539
1539
|
* Like gclue_location_proxy_new() but takes a #GBusType instead of a #GDBusConnection.
|
|
1540
1540
|
*
|
|
@@ -1549,7 +1549,7 @@ class LocationProxy extends Gio.DBusProxy {
|
|
|
1549
1549
|
* @param cancellable A #GCancellable or %NULL.
|
|
1550
1550
|
* @param callback A #GAsyncReadyCallback to call when the request is satisfied.
|
|
1551
1551
|
*/
|
|
1552
|
-
static new_for_bus(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, name: string
|
|
1552
|
+
static new_for_bus(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, name: string, object_path: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<LocationProxy> | null): void
|
|
1553
1553
|
|
|
1554
1554
|
// Overloads of new_for_bus
|
|
1555
1555
|
|
|
@@ -1566,7 +1566,7 @@ class LocationProxy extends Gio.DBusProxy {
|
|
|
1566
1566
|
* @param cancellable A #GCancellable or %NULL.
|
|
1567
1567
|
* @param callback Callback function to invoke when the proxy is ready.
|
|
1568
1568
|
*/
|
|
1569
|
-
static new_for_bus(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string
|
|
1569
|
+
static new_for_bus(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string, object_path: string, interface_name: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<Gio.DBusProxy> | null): void
|
|
1570
1570
|
}
|
|
1571
1571
|
|
|
1572
1572
|
module LocationSkeleton {
|
|
@@ -1758,7 +1758,7 @@ class ManagerProxy extends Gio.DBusProxy {
|
|
|
1758
1758
|
* @param cancellable A #GCancellable or %NULL.
|
|
1759
1759
|
* @returns The constructed proxy object or %NULL if @error is set.
|
|
1760
1760
|
*/
|
|
1761
|
-
static new_for_bus_sync(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, name: string
|
|
1761
|
+
static new_for_bus_sync(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, name: string, object_path: string, cancellable: Gio.Cancellable | null): ManagerProxy
|
|
1762
1762
|
|
|
1763
1763
|
// Overloads of new_for_bus_sync
|
|
1764
1764
|
|
|
@@ -1776,7 +1776,7 @@ class ManagerProxy extends Gio.DBusProxy {
|
|
|
1776
1776
|
* @param cancellable A #GCancellable or %NULL.
|
|
1777
1777
|
* @returns A #GDBusProxy or %NULL if error is set. Free with g_object_unref().
|
|
1778
1778
|
*/
|
|
1779
|
-
static new_for_bus_sync(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string
|
|
1779
|
+
static new_for_bus_sync(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string, object_path: string, interface_name: string, cancellable: Gio.Cancellable | null): Gio.DBusProxy
|
|
1780
1780
|
/**
|
|
1781
1781
|
* 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.
|
|
1782
1782
|
*
|
|
@@ -1791,7 +1791,7 @@ class ManagerProxy extends Gio.DBusProxy {
|
|
|
1791
1791
|
* @param cancellable A #GCancellable or %NULL.
|
|
1792
1792
|
* @returns The constructed proxy object or %NULL if @error is set.
|
|
1793
1793
|
*/
|
|
1794
|
-
static new_sync(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, name: string | null, object_path: string
|
|
1794
|
+
static new_sync(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, name: string | null, object_path: string, cancellable: Gio.Cancellable | null): ManagerProxy
|
|
1795
1795
|
|
|
1796
1796
|
// Overloads of new_sync
|
|
1797
1797
|
|
|
@@ -1828,7 +1828,7 @@ class ManagerProxy extends Gio.DBusProxy {
|
|
|
1828
1828
|
* @param cancellable A #GCancellable or %NULL.
|
|
1829
1829
|
* @returns A #GDBusProxy or %NULL if error is set. Free with g_object_unref().
|
|
1830
1830
|
*/
|
|
1831
|
-
static new_sync(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string | null, object_path: string
|
|
1831
|
+
static new_sync(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string | null, object_path: string, interface_name: string, cancellable: Gio.Cancellable | null): Gio.DBusProxy
|
|
1832
1832
|
_init(config?: ManagerProxy.ConstructorProperties): void
|
|
1833
1833
|
/**
|
|
1834
1834
|
* 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.
|
|
@@ -1844,7 +1844,7 @@ class ManagerProxy extends Gio.DBusProxy {
|
|
|
1844
1844
|
* @param cancellable A #GCancellable or %NULL.
|
|
1845
1845
|
* @param callback A #GAsyncReadyCallback to call when the request is satisfied.
|
|
1846
1846
|
*/
|
|
1847
|
-
static new(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, name: string | null, object_path: string
|
|
1847
|
+
static new(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, name: string | null, object_path: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<ManagerProxy> | null): void
|
|
1848
1848
|
|
|
1849
1849
|
// Overloads of new
|
|
1850
1850
|
|
|
@@ -1885,7 +1885,7 @@ class ManagerProxy extends Gio.DBusProxy {
|
|
|
1885
1885
|
* @param cancellable A #GCancellable or %NULL.
|
|
1886
1886
|
* @param callback Callback function to invoke when the proxy is ready.
|
|
1887
1887
|
*/
|
|
1888
|
-
static new(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string | null, object_path: string
|
|
1888
|
+
static new(connection: Gio.DBusConnection, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string | null, object_path: string, interface_name: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<Gio.DBusProxy> | null): void
|
|
1889
1889
|
/**
|
|
1890
1890
|
* Like gclue_manager_proxy_new() but takes a #GBusType instead of a #GDBusConnection.
|
|
1891
1891
|
*
|
|
@@ -1900,7 +1900,7 @@ class ManagerProxy extends Gio.DBusProxy {
|
|
|
1900
1900
|
* @param cancellable A #GCancellable or %NULL.
|
|
1901
1901
|
* @param callback A #GAsyncReadyCallback to call when the request is satisfied.
|
|
1902
1902
|
*/
|
|
1903
|
-
static new_for_bus(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, name: string
|
|
1903
|
+
static new_for_bus(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, name: string, object_path: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<ManagerProxy> | null): void
|
|
1904
1904
|
|
|
1905
1905
|
// Overloads of new_for_bus
|
|
1906
1906
|
|
|
@@ -1917,7 +1917,7 @@ class ManagerProxy extends Gio.DBusProxy {
|
|
|
1917
1917
|
* @param cancellable A #GCancellable or %NULL.
|
|
1918
1918
|
* @param callback Callback function to invoke when the proxy is ready.
|
|
1919
1919
|
*/
|
|
1920
|
-
static new_for_bus(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string
|
|
1920
|
+
static new_for_bus(bus_type: Gio.BusType, flags: Gio.DBusProxyFlags, info: Gio.DBusInterfaceInfo | null, name: string, object_path: string, interface_name: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<Gio.DBusProxy> | null): void
|
|
1921
1921
|
}
|
|
1922
1922
|
|
|
1923
1923
|
module ManagerSkeleton {
|
|
@@ -2168,7 +2168,7 @@ class Simple extends GObject.Object {
|
|
|
2168
2168
|
* @param cancellable A #GCancellable or %NULL.
|
|
2169
2169
|
* @returns The new #GClueSimple object or %NULL if @error is set.
|
|
2170
2170
|
*/
|
|
2171
|
-
static new_sync(desktop_id: string
|
|
2171
|
+
static new_sync(desktop_id: string, accuracy_level: AccuracyLevel, cancellable: Gio.Cancellable | null): Simple
|
|
2172
2172
|
/**
|
|
2173
2173
|
* Finishes an operation started with #gclue_simple_new_with_thresholds().
|
|
2174
2174
|
* @constructor
|
|
@@ -2186,7 +2186,7 @@ class Simple extends GObject.Object {
|
|
|
2186
2186
|
* @param cancellable A #GCancellable or %NULL.
|
|
2187
2187
|
* @returns The new #GClueSimple object or %NULL if @error is set.
|
|
2188
2188
|
*/
|
|
2189
|
-
static new_with_thresholds_sync(desktop_id: string
|
|
2189
|
+
static new_with_thresholds_sync(desktop_id: string, accuracy_level: AccuracyLevel, time_threshold: number, distance_threshold: number, cancellable: Gio.Cancellable | null): Simple
|
|
2190
2190
|
_init(config?: Simple.ConstructorProperties): void
|
|
2191
2191
|
/**
|
|
2192
2192
|
* Asynchronously creates a #GClueSimple instance. Use
|
|
@@ -2199,7 +2199,7 @@ class Simple extends GObject.Object {
|
|
|
2199
2199
|
* @param cancellable A #GCancellable or %NULL.
|
|
2200
2200
|
* @param callback A #GAsyncReadyCallback to call when the results are ready.
|
|
2201
2201
|
*/
|
|
2202
|
-
static new(desktop_id: string
|
|
2202
|
+
static new(desktop_id: string, accuracy_level: AccuracyLevel, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<Simple> | null): void
|
|
2203
2203
|
/**
|
|
2204
2204
|
* Asynchronously creates a #GClueSimple instance. Use
|
|
2205
2205
|
* #gclue_simple_new_with_thresholds_finish() to get the created #GClueSimple instance.
|
|
@@ -2213,7 +2213,7 @@ class Simple extends GObject.Object {
|
|
|
2213
2213
|
* @param cancellable A #GCancellable or %NULL.
|
|
2214
2214
|
* @param callback A #GAsyncReadyCallback to call when the results are ready.
|
|
2215
2215
|
*/
|
|
2216
|
-
static new_with_thresholds(desktop_id: string
|
|
2216
|
+
static new_with_thresholds(desktop_id: string, accuracy_level: AccuracyLevel, time_threshold: number, distance_threshold: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<Simple> | null): void
|
|
2217
2217
|
}
|
|
2218
2218
|
|
|
2219
2219
|
interface ClientIface {
|
|
@@ -2233,7 +2233,7 @@ interface ClientIface {
|
|
|
2233
2233
|
get_location: (object: Client) => string | null
|
|
2234
2234
|
get_requested_accuracy_level: (object: Client) => number
|
|
2235
2235
|
get_time_threshold: (object: Client) => number
|
|
2236
|
-
location_updated: (object: Client, arg_old: string
|
|
2236
|
+
location_updated: (object: Client, arg_old: string, arg_new: string) => void
|
|
2237
2237
|
}
|
|
2238
2238
|
|
|
2239
2239
|
/**
|
|
@@ -2414,9 +2414,9 @@ interface ManagerIface {
|
|
|
2414
2414
|
* @field
|
|
2415
2415
|
*/
|
|
2416
2416
|
parent_iface: GObject.TypeInterface
|
|
2417
|
-
handle_add_agent: (object: Manager, invocation: Gio.DBusMethodInvocation, arg_id: string
|
|
2417
|
+
handle_add_agent: (object: Manager, invocation: Gio.DBusMethodInvocation, arg_id: string) => boolean
|
|
2418
2418
|
handle_create_client: (object: Manager, invocation: Gio.DBusMethodInvocation) => boolean
|
|
2419
|
-
handle_delete_client: (object: Manager, invocation: Gio.DBusMethodInvocation, arg_client: string
|
|
2419
|
+
handle_delete_client: (object: Manager, invocation: Gio.DBusMethodInvocation, arg_client: string) => boolean
|
|
2420
2420
|
handle_get_client: (object: Manager, invocation: Gio.DBusMethodInvocation) => boolean
|
|
2421
2421
|
get_available_accuracy_level: (object: Manager) => number
|
|
2422
2422
|
get_in_use: (object: Manager) => boolean
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/geoclue-2.0",
|
|
3
|
-
"version": "2.0.0-3.2.
|
|
3
|
+
"version": "2.0.0-3.2.7",
|
|
4
4
|
"description": "GJS TypeScript type definitions for Geoclue-2.0, generated from library version 2.0.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "geoclue-2.0.js",
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
"test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit geoclue-2.0.d.cts"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@girs/gio-2.0": "^2.78.0-3.2.
|
|
29
|
-
"@girs/gjs": "^3.2.
|
|
30
|
-
"@girs/glib-2.0": "^2.78.0-3.2.
|
|
31
|
-
"@girs/gobject-2.0": "^2.78.0-3.2.
|
|
28
|
+
"@girs/gio-2.0": "^2.78.0-3.2.7",
|
|
29
|
+
"@girs/gjs": "^3.2.7",
|
|
30
|
+
"@girs/glib-2.0": "^2.78.0-3.2.7",
|
|
31
|
+
"@girs/gobject-2.0": "^2.78.0-3.2.7"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"typescript": "*"
|