@girs/tracker-2.0 2.0.0-3.0.0-beta.12

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.
@@ -0,0 +1,1179 @@
1
+
2
+ /*
3
+ * Type Definitions for Gjs (https://gjs.guide/)
4
+ *
5
+ * These type definitions are automatically generated, do not edit them by hand.
6
+ * If you found a bug fix it in `ts-for-gir` or create a bug report on https://github.com/gjsify/ts-for-gjs
7
+ */
8
+ /**
9
+ * Tracker-2.0
10
+ */
11
+
12
+ import type Gio from '@girs/gio-2.0';
13
+ import type GObject from '@girs/gobject-2.0';
14
+ import type GLib from '@girs/glib-2.0';
15
+
16
+ export namespace Tracker {
17
+
18
+ /**
19
+ * Notifier event types.
20
+ */
21
+ enum NotifierEventType {
22
+ /**
23
+ * An element was created.
24
+ */
25
+ CREATE,
26
+ /**
27
+ * An element was deleted.
28
+ */
29
+ DELETE,
30
+ /**
31
+ * An element was updated.
32
+ */
33
+ UPDATE,
34
+ }
35
+ enum SparqlConnectionFlags {
36
+ NONE,
37
+ READONLY,
38
+ }
39
+ enum SparqlValueType {
40
+ UNBOUND,
41
+ URI,
42
+ STRING,
43
+ INTEGER,
44
+ DOUBLE,
45
+ DATETIME,
46
+ BLANK_NODE,
47
+ BOOLEAN,
48
+ }
49
+ enum SparqlError {
50
+ PARSE,
51
+ UNKNOWN_CLASS,
52
+ UNKNOWN_PROPERTY,
53
+ TYPE,
54
+ CONSTRAINT,
55
+ NO_SPACE,
56
+ INTERNAL,
57
+ UNSUPPORTED,
58
+ }
59
+ enum SparqlBuilderState {
60
+ UPDATE,
61
+ INSERT,
62
+ DELETE,
63
+ SUBJECT,
64
+ PREDICATE,
65
+ OBJECT,
66
+ BLANK,
67
+ WHERE,
68
+ EMBEDDED_INSERT,
69
+ GRAPH,
70
+ }
71
+ /**
72
+ * Flags affecting #TrackerNotifier behavior.
73
+ * @bitfield
74
+ */
75
+ enum NotifierFlags {
76
+ /**
77
+ * No flags
78
+ */
79
+ NONE,
80
+ /**
81
+ * Query URN of notified elements
82
+ */
83
+ QUERY_URN,
84
+ /**
85
+ * Query location of notified elements
86
+ */
87
+ QUERY_LOCATION,
88
+ /**
89
+ * Added/updated Elements are
90
+ * notified in 2 steps (a CREATE/UPDATE event after the file is first
91
+ * known, and an UPDATE event after metadata is extracted). The default
92
+ * #TrackerNotifier behavior coalesces those events in one.
93
+ */
94
+ NOTIFY_UNEXTRACTED,
95
+ }
96
+ const DBUS_SERVICE: string | null
97
+ const DBUS_INTERFACE_RESOURCES: string | null
98
+ const DBUS_OBJECT_RESOURCES: string | null
99
+ const DBUS_INTERFACE_STATISTICS: string | null
100
+ const DBUS_OBJECT_STATISTICS: string | null
101
+ const DBUS_INTERFACE_STATUS: string | null
102
+ const DBUS_OBJECT_STATUS: string | null
103
+ const DBUS_INTERFACE_STEROIDS: string | null
104
+ const DBUS_OBJECT_STEROIDS: string | null
105
+ /**
106
+ * Checks that the Tracker library in use is compatible with the
107
+ * given version. Generally you would pass in the constants
108
+ * #TRACKER_MAJOR_VERSION, #TRACKER_MINOR_VERSION, #TRACKER_MICRO_VERSION
109
+ * as the three arguments to this function; that produces
110
+ * a check that the library in use is compatible with
111
+ * the version of Tracker the application or module was compiled
112
+ * against.
113
+ *
114
+ * Compatibility is defined by two things: first the version
115
+ * of the running library is newer than the version
116
+ * `required_major`.required_minor.`required_micro`. Second
117
+ * the running library must be binary compatible with the
118
+ * version `required_major`.required_minor.`required_micro`
119
+ * (same major version.)
120
+ * @param required_major the required major version.
121
+ * @param required_minor the required minor version.
122
+ * @param required_micro the required micro version.
123
+ * @returns %NULL if the Tracker library is compatible with the given version, or a string describing the version mismatch. The returned string is owned by Tracker and must not be modified or freed.
124
+ */
125
+ function check_version(required_major: number, required_minor: number, required_micro: number): string | null
126
+ function sparql_escape_uri(uri: string | null): string | null
127
+ function sparql_escape_string(literal: string | null): string | null
128
+ function sparql_get_uuid_urn(): string | null
129
+ module NamespaceManager {
130
+
131
+ // Constructor properties interface
132
+
133
+ interface ConstructorProperties extends GObject.Object.ConstructorProperties {
134
+ }
135
+
136
+ }
137
+
138
+ interface NamespaceManager {
139
+
140
+ // Owm methods of Tracker-2.0.Tracker.NamespaceManager
141
+
142
+ /**
143
+ * Adds `prefix` as the recognised abbreviaton of `namespace`.
144
+ *
145
+ * Only one prefix is allowed for a given namespace, and all prefixes must
146
+ * be unique.
147
+ * @param prefix a short, unique prefix to identify `namespace`
148
+ * @param ns the URL of the given namespace
149
+ */
150
+ add_prefix(prefix: string | null, ns: string | null): void
151
+ /**
152
+ * If `compact_uri` begins with one of the prefixes known to this
153
+ * #TrackerNamespaceManager, then the return value will be the
154
+ * expanded URI. Otherwise, a copy of `compact_uri` will be returned.
155
+ * @param compact_uri a URI or compact URI
156
+ * @returns a newly-allocated string
157
+ */
158
+ expand_uri(compact_uri: string | null): string | null
159
+ /**
160
+ * Calls `func` for each known prefix / URI pair.
161
+ * @param func the function to call for each prefix / URI pair
162
+ */
163
+ foreach(func: GLib.HFunc): void
164
+ has_prefix(prefix: string | null): boolean
165
+ /**
166
+ * Looks up the namespace URI corresponding to `prefix,` or %NULL if the prefix
167
+ * is not known.
168
+ * @param prefix a string
169
+ * @returns a string owned by the #TrackerNamespaceManager, or %NULL
170
+ */
171
+ lookup_prefix(prefix: string | null): string | null
172
+ /**
173
+ * Writes out all namespaces as Turtle `prefix` statements.
174
+ * @returns a newly-allocated string
175
+ */
176
+ print_turtle(): string | null
177
+
178
+ // Class property signals of Tracker-2.0.Tracker.NamespaceManager
179
+
180
+ connect(sigName: string, callback: (...args: any[]) => void): number
181
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
182
+ emit(sigName: string, ...args: any[]): void
183
+ disconnect(id: number): void
184
+ }
185
+
186
+ class NamespaceManager extends GObject.Object {
187
+
188
+ // Own properties of Tracker-2.0.Tracker.NamespaceManager
189
+
190
+ static name: string
191
+ static $gtype: GObject.GType<NamespaceManager>
192
+
193
+ // Constructors of Tracker-2.0.Tracker.NamespaceManager
194
+
195
+ constructor(config?: NamespaceManager.ConstructorProperties)
196
+ /**
197
+ * Creates a new #TrackerNamespaceManager instance.
198
+ * @constructor
199
+ * @returns a new #TrackerNamespaceManager instance
200
+ */
201
+ constructor()
202
+ /**
203
+ * Creates a new #TrackerNamespaceManager instance.
204
+ * @constructor
205
+ * @returns a new #TrackerNamespaceManager instance
206
+ */
207
+ static new(): NamespaceManager
208
+ _init(config?: NamespaceManager.ConstructorProperties): void
209
+ /**
210
+ * Returns the global #TrackerNamespaceManager that contains a set of well-known
211
+ * namespaces and prefixes, such as rdf:, rdfs:, nie:, tracker:, etc.
212
+ *
213
+ * Note that the list of prefixes and namespaces is hardcoded in
214
+ * libtracker-sparql. It may not correspond with the installed set of
215
+ * ontologies, if they have been modified since they were installed.
216
+ * @returns a global, shared #TrackerNamespaceManager instance
217
+ */
218
+ static get_default(): NamespaceManager
219
+ }
220
+
221
+ module Notifier {
222
+
223
+ // Signal callback interfaces
224
+
225
+ /**
226
+ * Signal callback interface for `events`
227
+ */
228
+ interface EventsSignalCallback {
229
+ ($obj: Notifier, events: NotifierEvent[]): void
230
+ }
231
+
232
+
233
+ // Constructor properties interface
234
+
235
+ interface ConstructorProperties extends Gio.Initable.ConstructorProperties, GObject.Object.ConstructorProperties {
236
+
237
+ // Own constructor properties of Tracker-2.0.Tracker.Notifier
238
+
239
+ /**
240
+ * RDF classes to listen notifications about.
241
+ */
242
+ classes?: string[] | null
243
+ }
244
+
245
+ }
246
+
247
+ interface Notifier extends Gio.Initable {
248
+
249
+ // Own properties of Tracker-2.0.Tracker.Notifier
250
+
251
+ /**
252
+ * RDF classes to listen notifications about.
253
+ */
254
+ readonly classes: string[]
255
+
256
+ // Own fields of Tracker-2.0.Tracker.Notifier
257
+
258
+ parent_instance: GObject.Object
259
+
260
+ // Own signals of Tracker-2.0.Tracker.Notifier
261
+
262
+ connect(sigName: "events", callback: Notifier.EventsSignalCallback): number
263
+ connect_after(sigName: "events", callback: Notifier.EventsSignalCallback): number
264
+ emit(sigName: "events", events: NotifierEvent[], ...args: any[]): void
265
+
266
+ // Class property signals of Tracker-2.0.Tracker.Notifier
267
+
268
+ connect(sigName: "notify::classes", callback: (($obj: Notifier, pspec: GObject.ParamSpec) => void)): number
269
+ connect_after(sigName: "notify::classes", callback: (($obj: Notifier, pspec: GObject.ParamSpec) => void)): number
270
+ emit(sigName: "notify::classes", ...args: any[]): void
271
+ connect(sigName: string, callback: (...args: any[]) => void): number
272
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
273
+ emit(sigName: string, ...args: any[]): void
274
+ disconnect(id: number): void
275
+ }
276
+
277
+ class Notifier extends GObject.Object {
278
+
279
+ // Own properties of Tracker-2.0.Tracker.Notifier
280
+
281
+ static name: string
282
+ static $gtype: GObject.GType<Notifier>
283
+
284
+ // Constructors of Tracker-2.0.Tracker.Notifier
285
+
286
+ constructor(config?: Notifier.ConstructorProperties)
287
+ /**
288
+ * Creates a new notifier, events can be listened through the
289
+ * TrackerNotifier::events signal.
290
+ * @constructor
291
+ * @param classes Array of RDF classes to receive notifications from, or %NULL for all.
292
+ * @param flags flags affecting the notifier behavior
293
+ * @param cancellable Cancellable for the operation
294
+ * @returns a newly created #TrackerNotifier, %NULL on error.
295
+ */
296
+ constructor(classes: string[] | null, flags: NotifierFlags, cancellable: Gio.Cancellable | null)
297
+ /**
298
+ * Creates a new notifier, events can be listened through the
299
+ * TrackerNotifier::events signal.
300
+ * @constructor
301
+ * @param classes Array of RDF classes to receive notifications from, or %NULL for all.
302
+ * @param flags flags affecting the notifier behavior
303
+ * @param cancellable Cancellable for the operation
304
+ * @returns a newly created #TrackerNotifier, %NULL on error.
305
+ */
306
+ static new(classes: string[] | null, flags: NotifierFlags, cancellable: Gio.Cancellable | null): Notifier
307
+ _init(config?: Notifier.ConstructorProperties): void
308
+ }
309
+
310
+ module Resource {
311
+
312
+ // Constructor properties interface
313
+
314
+ interface ConstructorProperties extends GObject.Object.ConstructorProperties {
315
+
316
+ // Own constructor properties of Tracker-2.0.Tracker.Resource
317
+
318
+ /**
319
+ * The URI identifier for this class, or %NULL for a
320
+ * blank node.
321
+ */
322
+ identifier?: string | null
323
+ }
324
+
325
+ }
326
+
327
+ interface Resource {
328
+
329
+ // Own properties of Tracker-2.0.Tracker.Resource
330
+
331
+ /**
332
+ * The URI identifier for this class, or %NULL for a
333
+ * blank node.
334
+ */
335
+ identifier: string | null
336
+
337
+ // Own fields of Tracker-2.0.Tracker.Resource
338
+
339
+ parent_instance: GObject.Object
340
+
341
+ // Owm methods of Tracker-2.0.Tracker.Resource
342
+
343
+ /**
344
+ * Adds a boolean object to a multi-valued property.
345
+ * @param property_uri a string identifying the property to modify
346
+ * @param value the property object
347
+ */
348
+ add_boolean(property_uri: string | null, value: boolean): void
349
+ /**
350
+ * Adds a double object to a multi-valued property.
351
+ * @param property_uri a string identifying the property to modify
352
+ * @param value the property object
353
+ */
354
+ add_double(property_uri: string | null, value: number): void
355
+ /**
356
+ * Add 'value' to the list of values for given property.
357
+ *
358
+ * You can pass any kind of GValue for `value,` but serialization functions will
359
+ * normally only be able to serialize URIs/relationships and fundamental value
360
+ * types (string, int, etc.).
361
+ * @param property_uri a string identifying the property to set
362
+ * @param value an initialised #GValue
363
+ */
364
+ add_gvalue(property_uri: string | null, value: any): void
365
+ /**
366
+ * Adds an integer object to a multi-valued property.
367
+ * @param property_uri a string identifying the property to modify
368
+ * @param value the property object
369
+ */
370
+ add_int(property_uri: string | null, value: number): void
371
+ /**
372
+ * Adds an integer object to a multi-valued property.
373
+ * @param property_uri a string identifying the property to modify
374
+ * @param value the property object
375
+ */
376
+ add_int64(property_uri: string | null, value: number): void
377
+ /**
378
+ * Adds a resource object to a multi-valued property. This
379
+ * function produces similar RDF to tracker_resource_add_uri(),
380
+ * although in this function the URI will depend on the identifier
381
+ * set on `resource`.
382
+ * @param property_uri a string identifying the property to modify
383
+ * @param resource the property object
384
+ */
385
+ add_relation(property_uri: string | null, resource: Resource): void
386
+ /**
387
+ * Adds a string object to a multi-valued property.
388
+ * @param property_uri a string identifying the property to modify
389
+ * @param value the property object
390
+ */
391
+ add_string(property_uri: string | null, value: string | null): void
392
+ /**
393
+ * Adds a resource object to a multi-valued property. This function
394
+ * produces similar RDF to tracker_resource_add_relation(), although
395
+ * it requires that the URI is previously known.
396
+ * @param property_uri a string identifying the property to modify
397
+ * @param value the property object
398
+ */
399
+ add_uri(property_uri: string | null, value: string | null): void
400
+ /**
401
+ * Returns the first boolean object previously assigned to a property.
402
+ * @param property_uri a string identifying the property to look up
403
+ * @returns the first boolean object
404
+ */
405
+ get_first_boolean(property_uri: string | null): boolean
406
+ /**
407
+ * Returns the first double object previously assigned to a property.
408
+ * @param property_uri a string identifying the property to look up
409
+ * @returns the first double object
410
+ */
411
+ get_first_double(property_uri: string | null): number
412
+ /**
413
+ * Returns the first integer object previously assigned to a property.
414
+ * @param property_uri a string identifying the property to look up
415
+ * @returns the first integer object
416
+ */
417
+ get_first_int(property_uri: string | null): number
418
+ /**
419
+ * Returns the first integer object previously assigned to a property.
420
+ * @param property_uri a string identifying the property to look up
421
+ * @returns the first integer object
422
+ */
423
+ get_first_int64(property_uri: string | null): number
424
+ /**
425
+ * Returns the first resource object previously assigned to a property.
426
+ * @param property_uri a string identifying the property to look up
427
+ * @returns the first resource object
428
+ */
429
+ get_first_relation(property_uri: string | null): Resource
430
+ /**
431
+ * Returns the first string object previously assigned to a property.
432
+ * @param property_uri a string identifying the property to look up
433
+ * @returns the first string object
434
+ */
435
+ get_first_string(property_uri: string | null): string | null
436
+ /**
437
+ * Returns the first resource object previously assigned to a property.
438
+ * @param property_uri a string identifying the property to look up
439
+ * @returns the first resource object as an URI.
440
+ */
441
+ get_first_uri(property_uri: string | null): string | null
442
+ /**
443
+ * Returns the identifier of a resource.
444
+ *
445
+ * If the identifier was set to NULL, the identifier returned will be a unique
446
+ * SPARQL blank node identifier, such as "_:123".
447
+ * @returns a string owned by the resource
448
+ */
449
+ get_identifier(): string | null
450
+ /**
451
+ * Returns the list of all known values of the given property.
452
+ * @param property_uri a string identifying the property to look up
453
+ * @returns a #GList of #GValue instances, which must be freed by the caller.
454
+ */
455
+ get_values(property_uri: string | null): any[]
456
+ identifier_compare_func(identifier: string | null): number
457
+ /**
458
+ * Serialize all the information in `resource` as a JSON-LD document.
459
+ *
460
+ * See <http://www.jsonld.org/> for more information on the JSON-LD
461
+ * serialization format.
462
+ *
463
+ * The `namespaces` object is used to expand any compact URI values. In most
464
+ * cases you should pass %NULL, which means the set of namespaces returned by
465
+ * tracker_namespace_manager_get_default() will be used. This defines the
466
+ * usual prefixes for all of the ontologies that Tracker ships with by default.
467
+ * @param namespaces a set of prefixed URLs, or %NULL to use the default set
468
+ * @returns a newly-allocated string containing JSON-LD data.
469
+ */
470
+ print_jsonld(namespaces: NamespaceManager | null): string | null
471
+ /**
472
+ * Generates a SPARQL command to update a database with the information
473
+ * stored in `resource`.
474
+ *
475
+ * The `namespaces` object is used to expand any compact URI values. In most
476
+ * cases you should pass %NULL, which means the set of namespaces returned by
477
+ * tracker_namespace_manager_get_default() will be used. This defines the
478
+ * usual prefixes for all of the ontologies that Tracker ships with by default.
479
+ * @param namespaces a set of prefixed URLs, or %NULL to use the default set
480
+ * @param graph_id the URN of the graph the data should be added to, or %NULL
481
+ * @returns a newly-allocated string containing a SPARQL update command.
482
+ */
483
+ print_sparql_update(namespaces: NamespaceManager | null, graph_id: string | null): string | null
484
+ /**
485
+ * Serialize all the information in `resource` as a Turtle document.
486
+ *
487
+ * The generated Turtle should correspond to this standard:
488
+ * <https://www.w3.org/TR/2014/REC-turtle-20140225/>
489
+ *
490
+ * The `namespaces` object is used to expand any compact URI values. In most
491
+ * cases you should pass %NULL, which means the set of namespaces returned by
492
+ * tracker_namespace_manager_get_default() will be used. This defines the
493
+ * usual prefixes for all of the ontologies that Tracker ships with by default.
494
+ * @param namespaces a set of prefixed URLs, or %NULL to use the default set
495
+ * @returns a newly-allocated string
496
+ */
497
+ print_turtle(namespaces: NamespaceManager | null): string | null
498
+ /**
499
+ * Sets a single-valued boolean object.
500
+ * @param property_uri a string identifying the property to modify
501
+ * @param value the property object
502
+ */
503
+ set_boolean(property_uri: string | null, value: boolean): void
504
+ /**
505
+ * Sets a single-valued double object.
506
+ * @param property_uri a string identifying the property to modify
507
+ * @param value the property object
508
+ */
509
+ set_double(property_uri: string | null, value: number): void
510
+ /**
511
+ * State that the only value for the given property is 'value'. Any existing
512
+ * values for 'property' will be removed.
513
+ *
514
+ * When serialising to SPARQL, any properties that were set with this function
515
+ * will get a corresponding DELETE statement to remove any existing values in
516
+ * the database.
517
+ *
518
+ * You can pass any kind of GValue for `value,` but serialization functions will
519
+ * normally only be able to serialize URIs/relationships and fundamental value
520
+ * types (string, int, etc.).
521
+ * @param property_uri a string identifying the property to set
522
+ * @param value an initialised #GValue
523
+ */
524
+ set_gvalue(property_uri: string | null, value: any): void
525
+ /**
526
+ * Changes the identifier of a #TrackerResource. The identifier should be a
527
+ * URI or compact URI, but this is not necessarily enforced. Invalid
528
+ * identifiers may cause errors when serializing the resource or trying to
529
+ * insert the results in a database.
530
+ *
531
+ * If the identifier is set to NULL, a SPARQL blank node identifier such as
532
+ * "_:123" is assigned to the resource.
533
+ * @param identifier a string identifying the resource
534
+ */
535
+ set_identifier(identifier: string | null): void
536
+ /**
537
+ * Sets a single-valued integer object.
538
+ * @param property_uri a string identifying the property to modify
539
+ * @param value the property object
540
+ */
541
+ set_int(property_uri: string | null, value: number): void
542
+ /**
543
+ * Sets a single-valued integer object.
544
+ * @param property_uri a string identifying the property to modify
545
+ * @param value the property object
546
+ */
547
+ set_int64(property_uri: string | null, value: number): void
548
+ /**
549
+ * Sets a single-valued resource object as a #TrackerResource. This
550
+ * function produces similar RDF to tracker_resource_set_uri(),
551
+ * although in this function the URI will depend on the identifier
552
+ * set on `resource`.
553
+ * @param property_uri a string identifying the property to modify
554
+ * @param resource the property object
555
+ */
556
+ set_relation(property_uri: string | null, resource: Resource): void
557
+ /**
558
+ * Sets a single-valued string object.
559
+ * @param property_uri a string identifying the property to modify
560
+ * @param value the property object
561
+ */
562
+ set_string(property_uri: string | null, value: string | null): void
563
+ /**
564
+ * Sets a single-valued resource object as a string URI. This function
565
+ * produces similar RDF to tracker_resource_set_relation(), although
566
+ * it requires that the URI is previously known.
567
+ * @param property_uri a string identifying the property to modify
568
+ * @param value the property object
569
+ */
570
+ set_uri(property_uri: string | null, value: string | null): void
571
+
572
+ // Class property signals of Tracker-2.0.Tracker.Resource
573
+
574
+ connect(sigName: "notify::identifier", callback: (($obj: Resource, pspec: GObject.ParamSpec) => void)): number
575
+ connect_after(sigName: "notify::identifier", callback: (($obj: Resource, pspec: GObject.ParamSpec) => void)): number
576
+ emit(sigName: "notify::identifier", ...args: any[]): void
577
+ connect(sigName: string, callback: (...args: any[]) => void): number
578
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
579
+ emit(sigName: string, ...args: any[]): void
580
+ disconnect(id: number): void
581
+ }
582
+
583
+ /**
584
+ * The <structname>TrackerResource</structname> object represents information
585
+ * about a given resource.
586
+ * @class
587
+ */
588
+ class Resource extends GObject.Object {
589
+
590
+ // Own properties of Tracker-2.0.Tracker.Resource
591
+
592
+ static name: string
593
+ static $gtype: GObject.GType<Resource>
594
+
595
+ // Constructors of Tracker-2.0.Tracker.Resource
596
+
597
+ constructor(config?: Resource.ConstructorProperties)
598
+ /**
599
+ * Creates a TrackerResource instance.
600
+ * @constructor
601
+ * @param identifier A string containing a URI
602
+ * @returns a newly created #TrackerResource. Free with g_object_unref() when done
603
+ */
604
+ constructor(identifier: string | null)
605
+ /**
606
+ * Creates a TrackerResource instance.
607
+ * @constructor
608
+ * @param identifier A string containing a URI
609
+ * @returns a newly created #TrackerResource. Free with g_object_unref() when done
610
+ */
611
+ static new(identifier: string | null): Resource
612
+ _init(config?: Resource.ConstructorProperties): void
613
+ }
614
+
615
+ module SparqlBuilder {
616
+
617
+ // Constructor properties interface
618
+
619
+ interface ConstructorProperties extends GObject.Object.ConstructorProperties {
620
+
621
+ // Own constructor properties of Tracker-2.0.Tracker.SparqlBuilder
622
+
623
+ length?: number | null
624
+ }
625
+
626
+ }
627
+
628
+ interface SparqlBuilder {
629
+
630
+ // Own properties of Tracker-2.0.Tracker.SparqlBuilder
631
+
632
+ readonly result: string | null
633
+ length: number
634
+ readonly state: any
635
+
636
+ // Owm methods of Tracker-2.0.Tracker.SparqlBuilder
637
+
638
+ insert_open(graph: string | null): void
639
+ insert_silent_open(graph: string | null): void
640
+ insert_close(): void
641
+ delete_open(graph: string | null): void
642
+ delete_close(): void
643
+ graph_open(graph: string | null): void
644
+ graph_close(): void
645
+ where_open(): void
646
+ where_close(): void
647
+ subject_variable(var_name: string | null): void
648
+ object_variable(var_name: string | null): void
649
+ subject_iri(iri: string | null): void
650
+ subject(s: string | null): void
651
+ predicate_iri(iri: string | null): void
652
+ predicate(s: string | null): void
653
+ object_iri(iri: string | null): void
654
+ object(s: string | null): void
655
+ object_string(literal: string | null): void
656
+ object_unvalidated(value: string | null): void
657
+ object_boolean(literal: boolean): void
658
+ object_int64(literal: number): void
659
+ object_date(literal: number): /* literal */ number
660
+ object_double(literal: number): void
661
+ object_blank_open(): void
662
+ object_blank_close(): void
663
+ prepend(raw: string | null): void
664
+ append(raw: string | null): void
665
+ get_result(): string | null
666
+ get_length(): number
667
+ get_state(): any
668
+
669
+ // Class property signals of Tracker-2.0.Tracker.SparqlBuilder
670
+
671
+ connect(sigName: "notify::result", callback: (($obj: SparqlBuilder, pspec: GObject.ParamSpec) => void)): number
672
+ connect_after(sigName: "notify::result", callback: (($obj: SparqlBuilder, pspec: GObject.ParamSpec) => void)): number
673
+ emit(sigName: "notify::result", ...args: any[]): void
674
+ connect(sigName: "notify::length", callback: (($obj: SparqlBuilder, pspec: GObject.ParamSpec) => void)): number
675
+ connect_after(sigName: "notify::length", callback: (($obj: SparqlBuilder, pspec: GObject.ParamSpec) => void)): number
676
+ emit(sigName: "notify::length", ...args: any[]): void
677
+ connect(sigName: "notify::state", callback: (($obj: SparqlBuilder, pspec: GObject.ParamSpec) => void)): number
678
+ connect_after(sigName: "notify::state", callback: (($obj: SparqlBuilder, pspec: GObject.ParamSpec) => void)): number
679
+ emit(sigName: "notify::state", ...args: any[]): void
680
+ connect(sigName: string, callback: (...args: any[]) => void): number
681
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
682
+ emit(sigName: string, ...args: any[]): void
683
+ disconnect(id: number): void
684
+ }
685
+
686
+ class SparqlBuilder extends GObject.Object {
687
+
688
+ // Own properties of Tracker-2.0.Tracker.SparqlBuilder
689
+
690
+ static name: string
691
+ static $gtype: GObject.GType<SparqlBuilder>
692
+
693
+ // Constructors of Tracker-2.0.Tracker.SparqlBuilder
694
+
695
+ constructor(config?: SparqlBuilder.ConstructorProperties)
696
+ static update(): SparqlBuilder
697
+ static embedded_insert(): SparqlBuilder
698
+ constructor()
699
+ static new(): SparqlBuilder
700
+ _init(config?: SparqlBuilder.ConstructorProperties): void
701
+ }
702
+
703
+ module SparqlConnection {
704
+
705
+ // Constructor properties interface
706
+
707
+ interface ConstructorProperties extends GObject.Object.ConstructorProperties {
708
+ }
709
+
710
+ }
711
+
712
+ interface SparqlConnection {
713
+
714
+ // Owm methods of Tracker-2.0.Tracker.SparqlConnection
715
+
716
+ query(sparql: string | null, cancellable: Gio.Cancellable | null): any
717
+ query_async(sparql: string | null, cancellable: Gio.Cancellable | null, _callback_: Gio.AsyncReadyCallback<this> | null): void
718
+ query_finish(_res_: Gio.AsyncResult): any
719
+ update(sparql: string | null, priority: number, cancellable: Gio.Cancellable | null): void
720
+ update_async(sparql: string | null, priority: number, cancellable: Gio.Cancellable | null, _callback_: Gio.AsyncReadyCallback<this> | null): void
721
+ update_finish(_res_: Gio.AsyncResult): void
722
+ update_array_async(sparql: string[], priority: number, cancellable: Gio.Cancellable | null, _callback_: Gio.AsyncReadyCallback<this> | null): void
723
+ update_array_finish(_res_: Gio.AsyncResult): any[] | null
724
+ update_blank(sparql: string | null, priority: number, cancellable: Gio.Cancellable | null): GLib.Variant | null
725
+ update_blank_async(sparql: string | null, priority: number, cancellable: Gio.Cancellable | null, _callback_: Gio.AsyncReadyCallback<this> | null): void
726
+ update_blank_finish(_res_: Gio.AsyncResult): GLib.Variant | null
727
+ load(file: Gio.File, cancellable: Gio.Cancellable | null): void
728
+ load_async(file: Gio.File, cancellable: Gio.Cancellable | null, _callback_: Gio.AsyncReadyCallback<this> | null): void
729
+ load_finish(_res_: Gio.AsyncResult): void
730
+ statistics(cancellable: Gio.Cancellable | null): any | null
731
+ statistics_async(cancellable: Gio.Cancellable | null, _callback_: Gio.AsyncReadyCallback<this> | null): void
732
+ statistics_finish(_res_: Gio.AsyncResult): any | null
733
+ get_namespace_manager(): NamespaceManager | null
734
+ query_statement(sparql: string | null, cancellable: Gio.Cancellable | null): any | null
735
+
736
+ // Own virtual methods of Tracker-2.0.Tracker.SparqlConnection
737
+
738
+ vfunc_query(sparql: string | null, cancellable: Gio.Cancellable | null): any
739
+ vfunc_query_async(sparql: string | null, cancellable: Gio.Cancellable | null, _callback_: Gio.AsyncReadyCallback<this> | null): void
740
+ vfunc_query_finish(_res_: Gio.AsyncResult): any
741
+ vfunc_update(sparql: string | null, priority: number, cancellable: Gio.Cancellable | null): void
742
+ vfunc_update_async(sparql: string | null, priority: number, cancellable: Gio.Cancellable | null, _callback_: Gio.AsyncReadyCallback<this> | null): void
743
+ vfunc_update_finish(_res_: Gio.AsyncResult): void
744
+ vfunc_update_array_async(sparql: string[], priority: number, cancellable: Gio.Cancellable | null, _callback_: Gio.AsyncReadyCallback<this> | null): void
745
+ vfunc_update_array_finish(_res_: Gio.AsyncResult): any[] | null
746
+ vfunc_update_blank(sparql: string | null, priority: number, cancellable: Gio.Cancellable | null): GLib.Variant | null
747
+ vfunc_update_blank_async(sparql: string | null, priority: number, cancellable: Gio.Cancellable | null, _callback_: Gio.AsyncReadyCallback<this> | null): void
748
+ vfunc_update_blank_finish(_res_: Gio.AsyncResult): GLib.Variant | null
749
+ vfunc_load(file: Gio.File, cancellable: Gio.Cancellable | null): void
750
+ vfunc_load_async(file: Gio.File, cancellable: Gio.Cancellable | null, _callback_: Gio.AsyncReadyCallback<this> | null): void
751
+ vfunc_load_finish(_res_: Gio.AsyncResult): void
752
+ vfunc_statistics(cancellable: Gio.Cancellable | null): any | null
753
+ vfunc_statistics_async(cancellable: Gio.Cancellable | null, _callback_: Gio.AsyncReadyCallback<this> | null): void
754
+ vfunc_statistics_finish(_res_: Gio.AsyncResult): any | null
755
+ vfunc_get_namespace_manager(): NamespaceManager | null
756
+ vfunc_query_statement(sparql: string | null, cancellable: Gio.Cancellable | null): any | null
757
+
758
+ // Class property signals of Tracker-2.0.Tracker.SparqlConnection
759
+
760
+ connect(sigName: string, callback: (...args: any[]) => void): number
761
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
762
+ emit(sigName: string, ...args: any[]): void
763
+ disconnect(id: number): void
764
+ }
765
+
766
+ class SparqlConnection extends GObject.Object {
767
+
768
+ // Own properties of Tracker-2.0.Tracker.SparqlConnection
769
+
770
+ static name: string
771
+ static $gtype: GObject.GType<SparqlConnection>
772
+
773
+ // Constructors of Tracker-2.0.Tracker.SparqlConnection
774
+
775
+ constructor(config?: SparqlConnection.ConstructorProperties)
776
+ _init(config?: SparqlConnection.ConstructorProperties): void
777
+ static get_async(cancellable: Gio.Cancellable | null, _callback_: Gio.AsyncReadyCallback<SparqlConnection> | null): void
778
+ static get_finish(_res_: Gio.AsyncResult): any
779
+ static get(cancellable: Gio.Cancellable | null): any
780
+ static remote_new(uri_base: string | null): any
781
+ static local_new(flags: any, store: Gio.File, journal: Gio.File | null, ontology: Gio.File | null, cancellable: Gio.Cancellable | null): any
782
+ static local_new_async(flags: any, store: Gio.File, journal: Gio.File | null, ontology: Gio.File | null, cancellable: Gio.Cancellable | null, _callback_: Gio.AsyncReadyCallback<SparqlConnection> | null): void
783
+ static local_new_finish(_res_: Gio.AsyncResult): any
784
+ static set_domain(domain: string | null): void
785
+ static get_domain(): string | null
786
+ static set_dbus_connection(dbus_connection: Gio.DBusConnection): void
787
+ static get_dbus_connection(): Gio.DBusConnection | null
788
+ }
789
+
790
+ module SparqlCursor {
791
+
792
+ // Constructor properties interface
793
+
794
+ interface ConstructorProperties extends GObject.Object.ConstructorProperties {
795
+
796
+ // Own constructor properties of Tracker-2.0.Tracker.SparqlCursor
797
+
798
+ connection?: any | null
799
+ }
800
+
801
+ }
802
+
803
+ interface SparqlCursor {
804
+
805
+ // Own properties of Tracker-2.0.Tracker.SparqlCursor
806
+
807
+ connection: any
808
+ readonly n_columns: number
809
+
810
+ // Owm methods of Tracker-2.0.Tracker.SparqlCursor
811
+
812
+ get_value_type(column: number): any
813
+ get_variable_name(column: number): string | null
814
+ get_string(column: number): [ /* returnType */ string | null, /* length */ number ]
815
+ next(cancellable: Gio.Cancellable | null): boolean
816
+ next_async(cancellable: Gio.Cancellable | null, _callback_: Gio.AsyncReadyCallback<this> | null): void
817
+ next_finish(_res_: Gio.AsyncResult): boolean
818
+ rewind(): void
819
+ close(): void
820
+ get_integer(column: number): number
821
+ get_double(column: number): number
822
+ get_boolean(column: number): boolean
823
+ is_bound(column: number): boolean
824
+ get_connection(): any
825
+ set_connection(value: any): void
826
+ get_n_columns(): number
827
+
828
+ // Own virtual methods of Tracker-2.0.Tracker.SparqlCursor
829
+
830
+ vfunc_get_value_type(column: number): any
831
+ vfunc_get_variable_name(column: number): string | null
832
+ vfunc_get_string(column: number): [ /* returnType */ string | null, /* length */ number ]
833
+ vfunc_next(cancellable: Gio.Cancellable | null): boolean
834
+ vfunc_next_async(cancellable: Gio.Cancellable | null, _callback_: Gio.AsyncReadyCallback<this> | null): void
835
+ vfunc_next_finish(_res_: Gio.AsyncResult): boolean
836
+ vfunc_rewind(): void
837
+ vfunc_close(): void
838
+ vfunc_get_integer(column: number): number
839
+ vfunc_get_double(column: number): number
840
+ vfunc_get_boolean(column: number): boolean
841
+ vfunc_is_bound(column: number): boolean
842
+ vfunc_get_n_columns(): number
843
+
844
+ // Class property signals of Tracker-2.0.Tracker.SparqlCursor
845
+
846
+ connect(sigName: "notify::connection", callback: (($obj: SparqlCursor, pspec: GObject.ParamSpec) => void)): number
847
+ connect_after(sigName: "notify::connection", callback: (($obj: SparqlCursor, pspec: GObject.ParamSpec) => void)): number
848
+ emit(sigName: "notify::connection", ...args: any[]): void
849
+ connect(sigName: "notify::n-columns", callback: (($obj: SparqlCursor, pspec: GObject.ParamSpec) => void)): number
850
+ connect_after(sigName: "notify::n-columns", callback: (($obj: SparqlCursor, pspec: GObject.ParamSpec) => void)): number
851
+ emit(sigName: "notify::n-columns", ...args: any[]): void
852
+ connect(sigName: string, callback: (...args: any[]) => void): number
853
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
854
+ emit(sigName: string, ...args: any[]): void
855
+ disconnect(id: number): void
856
+ }
857
+
858
+ class SparqlCursor extends GObject.Object {
859
+
860
+ // Own properties of Tracker-2.0.Tracker.SparqlCursor
861
+
862
+ static name: string
863
+ static $gtype: GObject.GType<SparqlCursor>
864
+
865
+ // Constructors of Tracker-2.0.Tracker.SparqlCursor
866
+
867
+ constructor(config?: SparqlCursor.ConstructorProperties)
868
+ _init(config?: SparqlCursor.ConstructorProperties): void
869
+ }
870
+
871
+ module SparqlStatement {
872
+
873
+ // Constructor properties interface
874
+
875
+ interface ConstructorProperties extends GObject.Object.ConstructorProperties {
876
+
877
+ // Own constructor properties of Tracker-2.0.Tracker.SparqlStatement
878
+
879
+ sparql?: string | null
880
+ connection?: any | null
881
+ }
882
+
883
+ }
884
+
885
+ interface SparqlStatement {
886
+
887
+ // Own properties of Tracker-2.0.Tracker.SparqlStatement
888
+
889
+ sparql: string | null
890
+ connection: any
891
+
892
+ // Owm methods of Tracker-2.0.Tracker.SparqlStatement
893
+
894
+ bind_int(name: string | null, value: number): void
895
+ bind_boolean(name: string | null, value: boolean): void
896
+ bind_string(name: string | null, value: string | null): void
897
+ bind_double(name: string | null, value: number): void
898
+ execute(cancellable: Gio.Cancellable | null): any
899
+ execute_async(cancellable: Gio.Cancellable | null, _callback_: Gio.AsyncReadyCallback<this> | null): void
900
+ execute_finish(_res_: Gio.AsyncResult): any
901
+ get_sparql(): string | null
902
+ set_sparql(value: string | null): void
903
+ get_connection(): any
904
+ set_connection(value: any): void
905
+
906
+ // Own virtual methods of Tracker-2.0.Tracker.SparqlStatement
907
+
908
+ vfunc_bind_int(name: string | null, value: number): void
909
+ vfunc_bind_boolean(name: string | null, value: boolean): void
910
+ vfunc_bind_string(name: string | null, value: string | null): void
911
+ vfunc_bind_double(name: string | null, value: number): void
912
+ vfunc_execute(cancellable: Gio.Cancellable | null): any
913
+ vfunc_execute_async(cancellable: Gio.Cancellable | null, _callback_: Gio.AsyncReadyCallback<this> | null): void
914
+ vfunc_execute_finish(_res_: Gio.AsyncResult): any
915
+
916
+ // Class property signals of Tracker-2.0.Tracker.SparqlStatement
917
+
918
+ connect(sigName: "notify::sparql", callback: (($obj: SparqlStatement, pspec: GObject.ParamSpec) => void)): number
919
+ connect_after(sigName: "notify::sparql", callback: (($obj: SparqlStatement, pspec: GObject.ParamSpec) => void)): number
920
+ emit(sigName: "notify::sparql", ...args: any[]): void
921
+ connect(sigName: "notify::connection", callback: (($obj: SparqlStatement, pspec: GObject.ParamSpec) => void)): number
922
+ connect_after(sigName: "notify::connection", callback: (($obj: SparqlStatement, pspec: GObject.ParamSpec) => void)): number
923
+ emit(sigName: "notify::connection", ...args: any[]): void
924
+ connect(sigName: string, callback: (...args: any[]) => void): number
925
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
926
+ emit(sigName: string, ...args: any[]): void
927
+ disconnect(id: number): void
928
+ }
929
+
930
+ class SparqlStatement extends GObject.Object {
931
+
932
+ // Own properties of Tracker-2.0.Tracker.SparqlStatement
933
+
934
+ static name: string
935
+ static $gtype: GObject.GType<SparqlStatement>
936
+
937
+ // Constructors of Tracker-2.0.Tracker.SparqlStatement
938
+
939
+ constructor(config?: SparqlStatement.ConstructorProperties)
940
+ _init(config?: SparqlStatement.ConstructorProperties): void
941
+ }
942
+
943
+ interface NamespaceManagerClass {
944
+
945
+ // Own fields of Tracker-2.0.Tracker.NamespaceManagerClass
946
+
947
+ parent_class: GObject.ObjectClass
948
+ }
949
+
950
+ abstract class NamespaceManagerClass {
951
+
952
+ // Own properties of Tracker-2.0.Tracker.NamespaceManagerClass
953
+
954
+ static name: string
955
+ }
956
+
957
+ interface NotifierClass {
958
+
959
+ // Own fields of Tracker-2.0.Tracker.NotifierClass
960
+
961
+ parent_class: GObject.ObjectClass
962
+ padding: any[]
963
+ }
964
+
965
+ abstract class NotifierClass {
966
+
967
+ // Own properties of Tracker-2.0.Tracker.NotifierClass
968
+
969
+ static name: string
970
+ }
971
+
972
+ interface NotifierEvent {
973
+
974
+ // Owm methods of Tracker-2.0.Tracker.NotifierEvent
975
+
976
+ /**
977
+ * Returns the event type.
978
+ * @returns The event type
979
+ */
980
+ get_event_type(): NotifierEventType
981
+ /**
982
+ * Returns the tracker:id of the element being notified upon.
983
+ * @returns the resource ID
984
+ */
985
+ get_id(): number
986
+ /**
987
+ * Returns the location (e.g. an URI) of the element if the notifier
988
+ * has the flag %TRACKER_NOTIFIER_FLAG_QUERY_LOCATION, and it can
989
+ * be obtained at the time of emission.
990
+ * @returns The element location, or %NULL
991
+ */
992
+ get_location(): string | null
993
+ /**
994
+ * Returns the RDF type that this notification event relates to, in their
995
+ * expanded forms (for example,
996
+ * <http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#Audio>).
997
+ *
998
+ * A resource may have multiple RDF types. In the case of changes to a
999
+ * resource with multiple types, one event will be notified for each
1000
+ * RDF type the notifier is subscribed to.
1001
+ *
1002
+ * For performance reasons, Tracker only sends notifications for events that
1003
+ * are explicitly marked with the tracker:notify property in their ontology.
1004
+ * @returns the RDF type of the element
1005
+ */
1006
+ get_type(): string | null
1007
+ /**
1008
+ * Returns the Uniform Resource Name of the element if the
1009
+ * notifier has the flag %TRACKER_NOTIFIER_FLAG_QUERY_URN enabled.
1010
+ *
1011
+ * This URN is an unique string identifier for the resource being
1012
+ * notified upon, typically of the form "urn:uuid:...".
1013
+ * @returns The element URN
1014
+ */
1015
+ get_urn(): string | null
1016
+ }
1017
+
1018
+ class NotifierEvent {
1019
+
1020
+ // Own properties of Tracker-2.0.Tracker.NotifierEvent
1021
+
1022
+ static name: string
1023
+ }
1024
+
1025
+ interface ResourceClass {
1026
+
1027
+ // Own fields of Tracker-2.0.Tracker.ResourceClass
1028
+
1029
+ parent_class: GObject.ObjectClass
1030
+ }
1031
+
1032
+ abstract class ResourceClass {
1033
+
1034
+ // Own properties of Tracker-2.0.Tracker.ResourceClass
1035
+
1036
+ static name: string
1037
+ }
1038
+
1039
+ interface SparqlBuilderClass {
1040
+ }
1041
+
1042
+ abstract class SparqlBuilderClass {
1043
+
1044
+ // Own properties of Tracker-2.0.Tracker.SparqlBuilderClass
1045
+
1046
+ static name: string
1047
+ }
1048
+
1049
+ interface SparqlBuilderPrivate {
1050
+ }
1051
+
1052
+ class SparqlBuilderPrivate {
1053
+
1054
+ // Own properties of Tracker-2.0.Tracker.SparqlBuilderPrivate
1055
+
1056
+ static name: string
1057
+ }
1058
+
1059
+ interface SparqlConnectionClass {
1060
+
1061
+ // Own fields of Tracker-2.0.Tracker.SparqlConnectionClass
1062
+
1063
+ query: (self: any, sparql: string | null, cancellable: Gio.Cancellable | null) => any
1064
+ query_async: (self: any, sparql: string | null, cancellable: Gio.Cancellable | null, _callback_: Gio.AsyncReadyCallback | null) => void
1065
+ query_finish: (self: any, _res_: Gio.AsyncResult) => any
1066
+ update: (self: any, sparql: string | null, priority: number, cancellable: Gio.Cancellable | null) => void
1067
+ update_async: (self: any, sparql: string | null, priority: number, cancellable: Gio.Cancellable | null, _callback_: Gio.AsyncReadyCallback | null) => void
1068
+ update_finish: (self: any, _res_: Gio.AsyncResult) => void
1069
+ update_array_async: (self: any, sparql: string[], priority: number, cancellable: Gio.Cancellable | null, _callback_: Gio.AsyncReadyCallback | null) => void
1070
+ update_array_finish: (self: any, _res_: Gio.AsyncResult) => any[] | null
1071
+ update_blank: (self: any, sparql: string | null, priority: number, cancellable: Gio.Cancellable | null) => GLib.Variant | null
1072
+ update_blank_async: (self: any, sparql: string | null, priority: number, cancellable: Gio.Cancellable | null, _callback_: Gio.AsyncReadyCallback | null) => void
1073
+ update_blank_finish: (self: any, _res_: Gio.AsyncResult) => GLib.Variant | null
1074
+ load: (self: any, file: Gio.File, cancellable: Gio.Cancellable | null) => void
1075
+ load_async: (self: any, file: Gio.File, cancellable: Gio.Cancellable | null, _callback_: Gio.AsyncReadyCallback | null) => void
1076
+ load_finish: (self: any, _res_: Gio.AsyncResult) => void
1077
+ statistics: (self: any, cancellable: Gio.Cancellable | null) => any | null
1078
+ statistics_async: (self: any, cancellable: Gio.Cancellable | null, _callback_: Gio.AsyncReadyCallback | null) => void
1079
+ statistics_finish: (self: any, _res_: Gio.AsyncResult) => any | null
1080
+ get_namespace_manager: (self: any) => NamespaceManager | null
1081
+ query_statement: (self: any, sparql: string | null, cancellable: Gio.Cancellable | null) => any | null
1082
+ }
1083
+
1084
+ abstract class SparqlConnectionClass {
1085
+
1086
+ // Own properties of Tracker-2.0.Tracker.SparqlConnectionClass
1087
+
1088
+ static name: string
1089
+ }
1090
+
1091
+ interface SparqlConnectionPrivate {
1092
+ }
1093
+
1094
+ class SparqlConnectionPrivate {
1095
+
1096
+ // Own properties of Tracker-2.0.Tracker.SparqlConnectionPrivate
1097
+
1098
+ static name: string
1099
+ }
1100
+
1101
+ interface SparqlCursorClass {
1102
+
1103
+ // Own fields of Tracker-2.0.Tracker.SparqlCursorClass
1104
+
1105
+ get_value_type: (self: any, column: number) => any
1106
+ get_variable_name: (self: any, column: number) => string | null
1107
+ get_string: (self: any, column: number) => [ /* returnType */ string | null, /* length */ number ]
1108
+ next: (self: any, cancellable: Gio.Cancellable | null) => boolean
1109
+ next_async: (self: any, cancellable: Gio.Cancellable | null, _callback_: Gio.AsyncReadyCallback | null) => void
1110
+ next_finish: (self: any, _res_: Gio.AsyncResult) => boolean
1111
+ rewind: (self: any) => void
1112
+ close: (self: any) => void
1113
+ get_integer: (self: any, column: number) => number
1114
+ get_double: (self: any, column: number) => number
1115
+ get_boolean: (self: any, column: number) => boolean
1116
+ is_bound: (self: any, column: number) => boolean
1117
+ }
1118
+
1119
+ abstract class SparqlCursorClass {
1120
+
1121
+ // Own properties of Tracker-2.0.Tracker.SparqlCursorClass
1122
+
1123
+ static name: string
1124
+ }
1125
+
1126
+ interface SparqlCursorPrivate {
1127
+ }
1128
+
1129
+ class SparqlCursorPrivate {
1130
+
1131
+ // Own properties of Tracker-2.0.Tracker.SparqlCursorPrivate
1132
+
1133
+ static name: string
1134
+ }
1135
+
1136
+ interface SparqlStatementClass {
1137
+
1138
+ // Own fields of Tracker-2.0.Tracker.SparqlStatementClass
1139
+
1140
+ bind_int: (self: any, name: string | null, value: number) => void
1141
+ bind_boolean: (self: any, name: string | null, value: boolean) => void
1142
+ bind_string: (self: any, name: string | null, value: string | null) => void
1143
+ bind_double: (self: any, name: string | null, value: number) => void
1144
+ execute: (self: any, cancellable: Gio.Cancellable | null) => any
1145
+ execute_async: (self: any, cancellable: Gio.Cancellable | null, _callback_: Gio.AsyncReadyCallback | null) => void
1146
+ execute_finish: (self: any, _res_: Gio.AsyncResult) => any
1147
+ }
1148
+
1149
+ abstract class SparqlStatementClass {
1150
+
1151
+ // Own properties of Tracker-2.0.Tracker.SparqlStatementClass
1152
+
1153
+ static name: string
1154
+ }
1155
+
1156
+ interface SparqlStatementPrivate {
1157
+ }
1158
+
1159
+ class SparqlStatementPrivate {
1160
+
1161
+ // Own properties of Tracker-2.0.Tracker.SparqlStatementPrivate
1162
+
1163
+ static name: string
1164
+ }
1165
+
1166
+ /**
1167
+ * Name of the imported GIR library
1168
+ * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
1169
+ */
1170
+ const __name__: string
1171
+ /**
1172
+ * Version of the imported GIR library
1173
+ * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
1174
+ */
1175
+ const __version__: string
1176
+ }
1177
+
1178
+ export default Tracker;
1179
+ // END