@girs/trackerminer-1.0 1.0.0-3.2.6 → 1.0.0-3.2.8
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/package.json +16 -10
- package/trackerminer-1.0-ambient.js +2 -0
- package/trackerminer-1.0-import.js +3 -0
- package/trackerminer-1.0.d.cts +28 -55
- package/trackerminer-1.0.d.ts +28 -55
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|

|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
GJS TypeScript type definitions for TrackerMiner-1.0, generated from library version 1.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.
|
|
8
|
+
GJS TypeScript type definitions for TrackerMiner-1.0, generated from library version 1.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.8.
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
## Install
|
package/package.json
CHANGED
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/trackerminer-1.0",
|
|
3
|
-
"version": "1.0.0-3.2.
|
|
3
|
+
"version": "1.0.0-3.2.8",
|
|
4
4
|
"description": "GJS TypeScript type definitions for TrackerMiner-1.0, generated from library version 1.0.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "trackerminer-1.0.js",
|
|
7
7
|
"main": "trackerminer-1.0.js",
|
|
8
8
|
"exports": {
|
|
9
|
-
"./ambient":
|
|
10
|
-
|
|
9
|
+
"./ambient": {
|
|
10
|
+
"types": "./trackerminer-1.0-ambient.d.ts",
|
|
11
|
+
"default": "./trackerminer-1.0-ambient.js"
|
|
12
|
+
},
|
|
13
|
+
"./import": {
|
|
14
|
+
"types": "./trackerminer-1.0-import.d.ts",
|
|
15
|
+
"default": "./trackerminer-1.0-import.js"
|
|
16
|
+
},
|
|
11
17
|
".": {
|
|
12
18
|
"import": {
|
|
13
19
|
"types": "./trackerminer-1.0.d.ts",
|
|
@@ -25,12 +31,12 @@
|
|
|
25
31
|
"test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit trackerminer-1.0.d.cts"
|
|
26
32
|
},
|
|
27
33
|
"dependencies": {
|
|
28
|
-
"@girs/gio-2.0": "^2.
|
|
29
|
-
"@girs/gjs": "^3.2.
|
|
30
|
-
"@girs/glib-2.0": "^2.
|
|
31
|
-
"@girs/gmodule-2.0": "^2.0.0-3.2.
|
|
32
|
-
"@girs/gobject-2.0": "^2.
|
|
33
|
-
"@girs/tracker-1.0": "^1.0.0-3.2.
|
|
34
|
+
"@girs/gio-2.0": "^2.77.0-3.2.8",
|
|
35
|
+
"@girs/gjs": "^3.2.8",
|
|
36
|
+
"@girs/glib-2.0": "^2.77.0-3.2.8",
|
|
37
|
+
"@girs/gmodule-2.0": "^2.0.0-3.2.8",
|
|
38
|
+
"@girs/gobject-2.0": "^2.77.0-3.2.8",
|
|
39
|
+
"@girs/tracker-1.0": "^1.0.0-3.2.8"
|
|
34
40
|
},
|
|
35
41
|
"devDependencies": {
|
|
36
42
|
"typescript": "*"
|
|
@@ -47,7 +53,7 @@
|
|
|
47
53
|
"license": "MIT",
|
|
48
54
|
"repository": {
|
|
49
55
|
"type": "git",
|
|
50
|
-
"url": "git+https://github.com/gjsify/
|
|
56
|
+
"url": "git+https://github.com/gjsify/ts-for-gir.git"
|
|
51
57
|
},
|
|
52
58
|
"bugs": {
|
|
53
59
|
"url": "https://github.com/gjsify/ts-for-gir/issues"
|
package/trackerminer-1.0.d.cts
CHANGED
|
@@ -119,25 +119,25 @@ export enum DirectoryFlags {
|
|
|
119
119
|
* The name of the D-Bus interface to use for all data miners that
|
|
120
120
|
* inter-operate with Tracker.
|
|
121
121
|
*/
|
|
122
|
-
export const MINER_DBUS_INTERFACE: string
|
|
122
|
+
export const MINER_DBUS_INTERFACE: string
|
|
123
123
|
/**
|
|
124
124
|
* D-Bus name prefix to use for all data miners. This allows custom
|
|
125
125
|
* miners to be written using `TRACKER_MINER_DBUS_NAME_PREFIX` + "Files" for
|
|
126
126
|
* example and would show up on D-Bus under
|
|
127
127
|
* "org.freedesktop.Tracker1.Miner.Files".
|
|
128
128
|
*/
|
|
129
|
-
export const MINER_DBUS_NAME_PREFIX: string
|
|
129
|
+
export const MINER_DBUS_NAME_PREFIX: string
|
|
130
130
|
/**
|
|
131
131
|
* D-Bus path prefix to use for all data miners. This allows custom
|
|
132
132
|
* miners to be written using `TRACKER_MINER_DBUS_PATH_PREFIX` + "Files" for
|
|
133
133
|
* example and would show up on D-Bus under
|
|
134
134
|
* "/org/freedesktop/Tracker1/Miner/Files".
|
|
135
135
|
*/
|
|
136
|
-
export const MINER_DBUS_PATH_PREFIX: string
|
|
136
|
+
export const MINER_DBUS_PATH_PREFIX: string
|
|
137
137
|
/**
|
|
138
138
|
* Used as the domain for any #GErrors reported by `TrackerMiner` objects.
|
|
139
139
|
*/
|
|
140
|
-
export const MINER_ERROR_DOMAIN: string
|
|
140
|
+
export const MINER_ERROR_DOMAIN: string
|
|
141
141
|
export module DataProvider {
|
|
142
142
|
|
|
143
143
|
// Constructor properties interface
|
|
@@ -171,7 +171,7 @@ export interface DataProvider {
|
|
|
171
171
|
* @param cancellable optional #GCancellable object, %NULL to ignore.
|
|
172
172
|
* @returns a #TrackerEnumerator or %NULL on failure. This must be freed with g_object_unref().
|
|
173
173
|
*/
|
|
174
|
-
begin(url: Gio.File, attributes: string
|
|
174
|
+
begin(url: Gio.File, attributes: string, flags: DirectoryFlags, cancellable: Gio.Cancellable | null): Enumerator
|
|
175
175
|
/**
|
|
176
176
|
* Precisely the same operation as tracker_data_provider_begin()
|
|
177
177
|
* is performing, but asynchronously.
|
|
@@ -200,7 +200,7 @@ export interface DataProvider {
|
|
|
200
200
|
* @param cancellable optional #GCancellable object, %NULL to ignore
|
|
201
201
|
* @param callback a #GAsyncReadyCallback to call when the request is satisfied
|
|
202
202
|
*/
|
|
203
|
-
begin_async(url: Gio.File, attributes: string
|
|
203
|
+
begin_async(url: Gio.File, attributes: string, flags: DirectoryFlags, io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
204
204
|
|
|
205
205
|
// Overloads of begin_async
|
|
206
206
|
|
|
@@ -234,7 +234,7 @@ export interface DataProvider {
|
|
|
234
234
|
* @param cancellable optional #GCancellable object, %NULL to ignore
|
|
235
235
|
* @returns A Promise of: a #TrackerEnumerator or %NULL on failure. This must be freed with g_object_unref().
|
|
236
236
|
*/
|
|
237
|
-
begin_async(url: Gio.File, attributes: string
|
|
237
|
+
begin_async(url: Gio.File, attributes: string, flags: DirectoryFlags, io_priority: number, cancellable: Gio.Cancellable | null): globalThis.Promise<Enumerator>
|
|
238
238
|
/**
|
|
239
239
|
* Finishes the asynchronous operation started with
|
|
240
240
|
* tracker_data_provider_begin_async().
|
|
@@ -351,7 +351,7 @@ export interface DataProvider {
|
|
|
351
351
|
* @param cancellable optional #GCancellable object, %NULL to ignore.
|
|
352
352
|
* @returns a #TrackerEnumerator or %NULL on failure. This must be freed with g_object_unref().
|
|
353
353
|
*/
|
|
354
|
-
vfunc_begin(url: Gio.File, attributes: string
|
|
354
|
+
vfunc_begin(url: Gio.File, attributes: string, flags: DirectoryFlags, cancellable: Gio.Cancellable | null): Enumerator
|
|
355
355
|
/**
|
|
356
356
|
* Precisely the same operation as tracker_data_provider_begin()
|
|
357
357
|
* is performing, but asynchronously.
|
|
@@ -381,7 +381,7 @@ export interface DataProvider {
|
|
|
381
381
|
* @param cancellable optional #GCancellable object, %NULL to ignore
|
|
382
382
|
* @param callback a #GAsyncReadyCallback to call when the request is satisfied
|
|
383
383
|
*/
|
|
384
|
-
vfunc_begin_async(url: Gio.File, attributes: string
|
|
384
|
+
vfunc_begin_async(url: Gio.File, attributes: string, flags: DirectoryFlags, io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
385
385
|
/**
|
|
386
386
|
* Finishes the asynchronous operation started with
|
|
387
387
|
* tracker_data_provider_begin_async().
|
|
@@ -644,10 +644,6 @@ export module Decorator {
|
|
|
644
644
|
|
|
645
645
|
// Own constructor properties of TrackerMiner-1.0.TrackerMiner.Decorator
|
|
646
646
|
|
|
647
|
-
class_names?: string[] | null
|
|
648
|
-
commit_batch_size?: number | null
|
|
649
|
-
data_source?: string | null
|
|
650
|
-
priority_rdf_types?: string[] | null
|
|
651
647
|
classNames?: string[] | null
|
|
652
648
|
commitBatchSize?: number | null
|
|
653
649
|
dataSource?: string | null
|
|
@@ -660,13 +656,9 @@ export interface Decorator extends Gio.Initable {
|
|
|
660
656
|
|
|
661
657
|
// Own properties of TrackerMiner-1.0.TrackerMiner.Decorator
|
|
662
658
|
|
|
663
|
-
class_names: string[]
|
|
664
659
|
classNames: string[]
|
|
665
|
-
commit_batch_size: number
|
|
666
660
|
commitBatchSize: number
|
|
667
|
-
readonly data_source: string | null
|
|
668
661
|
readonly dataSource: string | null
|
|
669
|
-
priority_rdf_types: string[]
|
|
670
662
|
priorityRdfTypes: string[]
|
|
671
663
|
|
|
672
664
|
// Own fields of TrackerMiner-1.0.TrackerMiner.Decorator
|
|
@@ -695,7 +687,7 @@ export interface Decorator extends Gio.Initable {
|
|
|
695
687
|
* so it's clear WHO has extracted this extended metadata.
|
|
696
688
|
* @returns a const gchar* or #NULL if an error happened.
|
|
697
689
|
*/
|
|
698
|
-
get_data_source(): string
|
|
690
|
+
get_data_source(): string
|
|
699
691
|
/**
|
|
700
692
|
* Get the number of items left in the queue to be processed. This
|
|
701
693
|
* indicates content that may already exist in Tracker but is waiting
|
|
@@ -738,7 +730,7 @@ export interface Decorator extends Gio.Initable {
|
|
|
738
730
|
* standard time it would take to index content.
|
|
739
731
|
* @param rdf_types a string array of rdf types
|
|
740
732
|
*/
|
|
741
|
-
set_priority_rdf_types(rdf_types: string
|
|
733
|
+
set_priority_rdf_types(rdf_types: string): void
|
|
742
734
|
|
|
743
735
|
// Own virtual methods of TrackerMiner-1.0.TrackerMiner.Decorator
|
|
744
736
|
|
|
@@ -935,9 +927,8 @@ export module IndexingTree {
|
|
|
935
927
|
|
|
936
928
|
// Own constructor properties of TrackerMiner-1.0.TrackerMiner.IndexingTree
|
|
937
929
|
|
|
938
|
-
filter_hidden?: boolean | null
|
|
939
|
-
root?: Gio.File | null
|
|
940
930
|
filterHidden?: boolean | null
|
|
931
|
+
root?: Gio.File | null
|
|
941
932
|
}
|
|
942
933
|
|
|
943
934
|
}
|
|
@@ -946,7 +937,6 @@ export interface IndexingTree {
|
|
|
946
937
|
|
|
947
938
|
// Own properties of TrackerMiner-1.0.TrackerMiner.IndexingTree
|
|
948
939
|
|
|
949
|
-
filter_hidden: boolean
|
|
950
940
|
filterHidden: boolean
|
|
951
941
|
readonly root: Gio.File
|
|
952
942
|
|
|
@@ -969,7 +959,7 @@ export interface IndexingTree {
|
|
|
969
959
|
* @param filter filter type
|
|
970
960
|
* @param glob_string glob-style string for the filter
|
|
971
961
|
*/
|
|
972
|
-
add_filter(filter: FilterType, glob_string: string
|
|
962
|
+
add_filter(filter: FilterType, glob_string: string): void
|
|
973
963
|
/**
|
|
974
964
|
* Clears all filters of a given type.
|
|
975
965
|
* @param type filter type to clear
|
|
@@ -1237,15 +1227,12 @@ export module Miner {
|
|
|
1237
1227
|
|
|
1238
1228
|
// Own constructor properties of TrackerMiner-1.0.TrackerMiner.Miner
|
|
1239
1229
|
|
|
1240
|
-
introspection_handler?: any | null
|
|
1241
|
-
introspection_xml?: string | null
|
|
1242
|
-
name?: string | null
|
|
1243
|
-
progress?: number | null
|
|
1244
|
-
remaining_time?: number | null
|
|
1245
|
-
status?: string | null
|
|
1246
1230
|
introspectionHandler?: any | null
|
|
1247
1231
|
introspectionXml?: string | null
|
|
1232
|
+
name?: string | null
|
|
1233
|
+
progress?: number | null
|
|
1248
1234
|
remainingTime?: number | null
|
|
1235
|
+
status?: string | null
|
|
1249
1236
|
}
|
|
1250
1237
|
|
|
1251
1238
|
}
|
|
@@ -1254,13 +1241,10 @@ export interface Miner extends Gio.Initable {
|
|
|
1254
1241
|
|
|
1255
1242
|
// Own properties of TrackerMiner-1.0.TrackerMiner.Miner
|
|
1256
1243
|
|
|
1257
|
-
introspection_handler: any
|
|
1258
1244
|
introspectionHandler: any
|
|
1259
|
-
introspection_xml: string | null
|
|
1260
1245
|
introspectionXml: string | null
|
|
1261
1246
|
readonly name: string | null
|
|
1262
1247
|
progress: number
|
|
1263
|
-
remaining_time: number
|
|
1264
1248
|
remainingTime: number
|
|
1265
1249
|
status: string | null
|
|
1266
1250
|
|
|
@@ -1285,12 +1269,12 @@ export interface Miner extends Gio.Initable {
|
|
|
1285
1269
|
* Gets the DBus name registered by `miner`
|
|
1286
1270
|
* @returns a constant string which should not be modified by the caller.
|
|
1287
1271
|
*/
|
|
1288
|
-
get_dbus_full_name(): string
|
|
1272
|
+
get_dbus_full_name(): string
|
|
1289
1273
|
/**
|
|
1290
1274
|
* Gets the DBus path registered by `miner`
|
|
1291
1275
|
* @returns a constant string which should not be modified by the caller.
|
|
1292
1276
|
*/
|
|
1293
|
-
get_dbus_full_path(): string
|
|
1277
|
+
get_dbus_full_path(): string
|
|
1294
1278
|
/**
|
|
1295
1279
|
* Returns the number of pause reasons holding `miner` from
|
|
1296
1280
|
* indexing contents.
|
|
@@ -1319,7 +1303,7 @@ export interface Miner extends Gio.Initable {
|
|
|
1319
1303
|
* @param reason reason to pause
|
|
1320
1304
|
* @returns The pause cookie ID.
|
|
1321
1305
|
*/
|
|
1322
|
-
pause(reason: string
|
|
1306
|
+
pause(reason: string): number
|
|
1323
1307
|
/**
|
|
1324
1308
|
* Asks the miner to resume processing. The cookie must be something
|
|
1325
1309
|
* returned by tracker_miner_pause(). The miner won't actually resume
|
|
@@ -1346,7 +1330,7 @@ export interface Miner extends Gio.Initable {
|
|
|
1346
1330
|
*/
|
|
1347
1331
|
vfunc_ignore_next_update(urls: string[]): void
|
|
1348
1332
|
vfunc_paused(): void
|
|
1349
|
-
vfunc_progress(status: string
|
|
1333
|
+
vfunc_progress(status: string, progress: number): void
|
|
1350
1334
|
vfunc_resumed(): void
|
|
1351
1335
|
vfunc_started(): void
|
|
1352
1336
|
vfunc_stopped(): void
|
|
@@ -1481,18 +1465,13 @@ export module MinerFS {
|
|
|
1481
1465
|
|
|
1482
1466
|
// Own constructor properties of TrackerMiner-1.0.TrackerMiner.MinerFS
|
|
1483
1467
|
|
|
1484
|
-
data_provider?: DataProvider | null
|
|
1485
|
-
initial_crawling?: boolean | null
|
|
1486
|
-
mtime_checking?: boolean | null
|
|
1487
|
-
processing_pool_ready_limit?: number | null
|
|
1488
|
-
processing_pool_wait_limit?: number | null
|
|
1489
|
-
root?: Gio.File | null
|
|
1490
|
-
throttle?: number | null
|
|
1491
1468
|
dataProvider?: DataProvider | null
|
|
1492
1469
|
initialCrawling?: boolean | null
|
|
1493
1470
|
mtimeChecking?: boolean | null
|
|
1494
1471
|
processingPoolReadyLimit?: number | null
|
|
1495
1472
|
processingPoolWaitLimit?: number | null
|
|
1473
|
+
root?: Gio.File | null
|
|
1474
|
+
throttle?: number | null
|
|
1496
1475
|
}
|
|
1497
1476
|
|
|
1498
1477
|
}
|
|
@@ -1501,15 +1480,10 @@ export interface MinerFS extends Gio.Initable {
|
|
|
1501
1480
|
|
|
1502
1481
|
// Own properties of TrackerMiner-1.0.TrackerMiner.MinerFS
|
|
1503
1482
|
|
|
1504
|
-
readonly data_provider: DataProvider
|
|
1505
1483
|
readonly dataProvider: DataProvider
|
|
1506
|
-
initial_crawling: boolean
|
|
1507
1484
|
initialCrawling: boolean
|
|
1508
|
-
mtime_checking: boolean
|
|
1509
1485
|
mtimeChecking: boolean
|
|
1510
|
-
processing_pool_ready_limit: number
|
|
1511
1486
|
processingPoolReadyLimit: number
|
|
1512
|
-
processing_pool_wait_limit: number
|
|
1513
1487
|
processingPoolWaitLimit: number
|
|
1514
1488
|
readonly root: Gio.File
|
|
1515
1489
|
throttle: number
|
|
@@ -1871,7 +1845,6 @@ export interface MinerOnline extends Gio.Initable {
|
|
|
1871
1845
|
|
|
1872
1846
|
// Own properties of TrackerMiner-1.0.TrackerMiner.MinerOnline
|
|
1873
1847
|
|
|
1874
|
-
readonly network_type: NetworkType
|
|
1875
1848
|
readonly networkType: NetworkType
|
|
1876
1849
|
|
|
1877
1850
|
// Own fields of TrackerMiner-1.0.TrackerMiner.MinerOnline
|
|
@@ -1955,8 +1928,8 @@ export interface DataProviderIface {
|
|
|
1955
1928
|
* @field
|
|
1956
1929
|
*/
|
|
1957
1930
|
g_iface: GObject.TypeInterface
|
|
1958
|
-
begin: (data_provider: DataProvider, url: Gio.File, attributes: string
|
|
1959
|
-
begin_async: (data_provider: DataProvider, url: Gio.File, attributes: string
|
|
1931
|
+
begin: (data_provider: DataProvider, url: Gio.File, attributes: string, flags: DirectoryFlags, cancellable: Gio.Cancellable | null) => Enumerator
|
|
1932
|
+
begin_async: (data_provider: DataProvider, url: Gio.File, attributes: string, flags: DirectoryFlags, io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null) => void
|
|
1960
1933
|
begin_finish: (data_provider: DataProvider, result: Gio.AsyncResult) => Enumerator
|
|
1961
1934
|
end: (data_provider: DataProvider, enumerator: Enumerator, cancellable: Gio.Cancellable | null) => boolean
|
|
1962
1935
|
end_async: (data_provider: DataProvider, enumerator: Enumerator, io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null) => void
|
|
@@ -2046,7 +2019,7 @@ export interface DecoratorInfo {
|
|
|
2046
2019
|
* ¹: http://en.wikipedia.org/wiki/MIME
|
|
2047
2020
|
* @returns the MIME type for #TrackerDecoratorInfo on success or #NULL on error.
|
|
2048
2021
|
*/
|
|
2049
|
-
get_mimetype(): string
|
|
2022
|
+
get_mimetype(): string
|
|
2050
2023
|
/**
|
|
2051
2024
|
* A #TrackerSparqlBuilder allows the caller to extract the final
|
|
2052
2025
|
* SPARQL used to insert the extracted metadata into the database for
|
|
@@ -2073,13 +2046,13 @@ export interface DecoratorInfo {
|
|
|
2073
2046
|
* with a resource in the database. For example, 'file:///tmp/foo.txt'.
|
|
2074
2047
|
* @returns the URL for #TrackerDecoratorInfo on success or #NULL on error.
|
|
2075
2048
|
*/
|
|
2076
|
-
get_url(): string
|
|
2049
|
+
get_url(): string
|
|
2077
2050
|
/**
|
|
2078
2051
|
* A URN is a Uniform Resource Name and should be a unique identifier
|
|
2079
2052
|
* for a resource in the database.
|
|
2080
2053
|
* @returns the URN for #TrackerDecoratorInfo on success or #NULL on error.
|
|
2081
2054
|
*/
|
|
2082
|
-
get_urn(): string
|
|
2055
|
+
get_urn(): string
|
|
2083
2056
|
/**
|
|
2084
2057
|
* Increases the reference count of `info` by 1.
|
|
2085
2058
|
* @returns the same @info passed in, or %NULL on error.
|
|
@@ -2168,7 +2141,7 @@ export interface MinerClass {
|
|
|
2168
2141
|
stopped: (miner: Miner) => void
|
|
2169
2142
|
paused: (miner: Miner) => void
|
|
2170
2143
|
resumed: (miner: Miner) => void
|
|
2171
|
-
progress: (miner: Miner, status: string
|
|
2144
|
+
progress: (miner: Miner, status: string, progress: number) => void
|
|
2172
2145
|
ignore_next_update: (miner: Miner, urls: string[]) => void
|
|
2173
2146
|
/**
|
|
2174
2147
|
* Reserved for future API improvements.
|
package/trackerminer-1.0.d.ts
CHANGED
|
@@ -121,25 +121,25 @@ enum DirectoryFlags {
|
|
|
121
121
|
* The name of the D-Bus interface to use for all data miners that
|
|
122
122
|
* inter-operate with Tracker.
|
|
123
123
|
*/
|
|
124
|
-
const MINER_DBUS_INTERFACE: string
|
|
124
|
+
const MINER_DBUS_INTERFACE: string
|
|
125
125
|
/**
|
|
126
126
|
* D-Bus name prefix to use for all data miners. This allows custom
|
|
127
127
|
* miners to be written using `TRACKER_MINER_DBUS_NAME_PREFIX` + "Files" for
|
|
128
128
|
* example and would show up on D-Bus under
|
|
129
129
|
* "org.freedesktop.Tracker1.Miner.Files".
|
|
130
130
|
*/
|
|
131
|
-
const MINER_DBUS_NAME_PREFIX: string
|
|
131
|
+
const MINER_DBUS_NAME_PREFIX: string
|
|
132
132
|
/**
|
|
133
133
|
* D-Bus path prefix to use for all data miners. This allows custom
|
|
134
134
|
* miners to be written using `TRACKER_MINER_DBUS_PATH_PREFIX` + "Files" for
|
|
135
135
|
* example and would show up on D-Bus under
|
|
136
136
|
* "/org/freedesktop/Tracker1/Miner/Files".
|
|
137
137
|
*/
|
|
138
|
-
const MINER_DBUS_PATH_PREFIX: string
|
|
138
|
+
const MINER_DBUS_PATH_PREFIX: string
|
|
139
139
|
/**
|
|
140
140
|
* Used as the domain for any #GErrors reported by `TrackerMiner` objects.
|
|
141
141
|
*/
|
|
142
|
-
const MINER_ERROR_DOMAIN: string
|
|
142
|
+
const MINER_ERROR_DOMAIN: string
|
|
143
143
|
module DataProvider {
|
|
144
144
|
|
|
145
145
|
// Constructor properties interface
|
|
@@ -173,7 +173,7 @@ interface DataProvider {
|
|
|
173
173
|
* @param cancellable optional #GCancellable object, %NULL to ignore.
|
|
174
174
|
* @returns a #TrackerEnumerator or %NULL on failure. This must be freed with g_object_unref().
|
|
175
175
|
*/
|
|
176
|
-
begin(url: Gio.File, attributes: string
|
|
176
|
+
begin(url: Gio.File, attributes: string, flags: DirectoryFlags, cancellable: Gio.Cancellable | null): Enumerator
|
|
177
177
|
/**
|
|
178
178
|
* Precisely the same operation as tracker_data_provider_begin()
|
|
179
179
|
* is performing, but asynchronously.
|
|
@@ -202,7 +202,7 @@ interface DataProvider {
|
|
|
202
202
|
* @param cancellable optional #GCancellable object, %NULL to ignore
|
|
203
203
|
* @param callback a #GAsyncReadyCallback to call when the request is satisfied
|
|
204
204
|
*/
|
|
205
|
-
begin_async(url: Gio.File, attributes: string
|
|
205
|
+
begin_async(url: Gio.File, attributes: string, flags: DirectoryFlags, io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
206
206
|
|
|
207
207
|
// Overloads of begin_async
|
|
208
208
|
|
|
@@ -236,7 +236,7 @@ interface DataProvider {
|
|
|
236
236
|
* @param cancellable optional #GCancellable object, %NULL to ignore
|
|
237
237
|
* @returns A Promise of: a #TrackerEnumerator or %NULL on failure. This must be freed with g_object_unref().
|
|
238
238
|
*/
|
|
239
|
-
begin_async(url: Gio.File, attributes: string
|
|
239
|
+
begin_async(url: Gio.File, attributes: string, flags: DirectoryFlags, io_priority: number, cancellable: Gio.Cancellable | null): globalThis.Promise<Enumerator>
|
|
240
240
|
/**
|
|
241
241
|
* Finishes the asynchronous operation started with
|
|
242
242
|
* tracker_data_provider_begin_async().
|
|
@@ -353,7 +353,7 @@ interface DataProvider {
|
|
|
353
353
|
* @param cancellable optional #GCancellable object, %NULL to ignore.
|
|
354
354
|
* @returns a #TrackerEnumerator or %NULL on failure. This must be freed with g_object_unref().
|
|
355
355
|
*/
|
|
356
|
-
vfunc_begin(url: Gio.File, attributes: string
|
|
356
|
+
vfunc_begin(url: Gio.File, attributes: string, flags: DirectoryFlags, cancellable: Gio.Cancellable | null): Enumerator
|
|
357
357
|
/**
|
|
358
358
|
* Precisely the same operation as tracker_data_provider_begin()
|
|
359
359
|
* is performing, but asynchronously.
|
|
@@ -383,7 +383,7 @@ interface DataProvider {
|
|
|
383
383
|
* @param cancellable optional #GCancellable object, %NULL to ignore
|
|
384
384
|
* @param callback a #GAsyncReadyCallback to call when the request is satisfied
|
|
385
385
|
*/
|
|
386
|
-
vfunc_begin_async(url: Gio.File, attributes: string
|
|
386
|
+
vfunc_begin_async(url: Gio.File, attributes: string, flags: DirectoryFlags, io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
387
387
|
/**
|
|
388
388
|
* Finishes the asynchronous operation started with
|
|
389
389
|
* tracker_data_provider_begin_async().
|
|
@@ -646,10 +646,6 @@ module Decorator {
|
|
|
646
646
|
|
|
647
647
|
// Own constructor properties of TrackerMiner-1.0.TrackerMiner.Decorator
|
|
648
648
|
|
|
649
|
-
class_names?: string[] | null
|
|
650
|
-
commit_batch_size?: number | null
|
|
651
|
-
data_source?: string | null
|
|
652
|
-
priority_rdf_types?: string[] | null
|
|
653
649
|
classNames?: string[] | null
|
|
654
650
|
commitBatchSize?: number | null
|
|
655
651
|
dataSource?: string | null
|
|
@@ -662,13 +658,9 @@ interface Decorator extends Gio.Initable {
|
|
|
662
658
|
|
|
663
659
|
// Own properties of TrackerMiner-1.0.TrackerMiner.Decorator
|
|
664
660
|
|
|
665
|
-
class_names: string[]
|
|
666
661
|
classNames: string[]
|
|
667
|
-
commit_batch_size: number
|
|
668
662
|
commitBatchSize: number
|
|
669
|
-
readonly data_source: string | null
|
|
670
663
|
readonly dataSource: string | null
|
|
671
|
-
priority_rdf_types: string[]
|
|
672
664
|
priorityRdfTypes: string[]
|
|
673
665
|
|
|
674
666
|
// Own fields of TrackerMiner-1.0.TrackerMiner.Decorator
|
|
@@ -697,7 +689,7 @@ interface Decorator extends Gio.Initable {
|
|
|
697
689
|
* so it's clear WHO has extracted this extended metadata.
|
|
698
690
|
* @returns a const gchar* or #NULL if an error happened.
|
|
699
691
|
*/
|
|
700
|
-
get_data_source(): string
|
|
692
|
+
get_data_source(): string
|
|
701
693
|
/**
|
|
702
694
|
* Get the number of items left in the queue to be processed. This
|
|
703
695
|
* indicates content that may already exist in Tracker but is waiting
|
|
@@ -740,7 +732,7 @@ interface Decorator extends Gio.Initable {
|
|
|
740
732
|
* standard time it would take to index content.
|
|
741
733
|
* @param rdf_types a string array of rdf types
|
|
742
734
|
*/
|
|
743
|
-
set_priority_rdf_types(rdf_types: string
|
|
735
|
+
set_priority_rdf_types(rdf_types: string): void
|
|
744
736
|
|
|
745
737
|
// Own virtual methods of TrackerMiner-1.0.TrackerMiner.Decorator
|
|
746
738
|
|
|
@@ -937,9 +929,8 @@ module IndexingTree {
|
|
|
937
929
|
|
|
938
930
|
// Own constructor properties of TrackerMiner-1.0.TrackerMiner.IndexingTree
|
|
939
931
|
|
|
940
|
-
filter_hidden?: boolean | null
|
|
941
|
-
root?: Gio.File | null
|
|
942
932
|
filterHidden?: boolean | null
|
|
933
|
+
root?: Gio.File | null
|
|
943
934
|
}
|
|
944
935
|
|
|
945
936
|
}
|
|
@@ -948,7 +939,6 @@ interface IndexingTree {
|
|
|
948
939
|
|
|
949
940
|
// Own properties of TrackerMiner-1.0.TrackerMiner.IndexingTree
|
|
950
941
|
|
|
951
|
-
filter_hidden: boolean
|
|
952
942
|
filterHidden: boolean
|
|
953
943
|
readonly root: Gio.File
|
|
954
944
|
|
|
@@ -971,7 +961,7 @@ interface IndexingTree {
|
|
|
971
961
|
* @param filter filter type
|
|
972
962
|
* @param glob_string glob-style string for the filter
|
|
973
963
|
*/
|
|
974
|
-
add_filter(filter: FilterType, glob_string: string
|
|
964
|
+
add_filter(filter: FilterType, glob_string: string): void
|
|
975
965
|
/**
|
|
976
966
|
* Clears all filters of a given type.
|
|
977
967
|
* @param type filter type to clear
|
|
@@ -1239,15 +1229,12 @@ module Miner {
|
|
|
1239
1229
|
|
|
1240
1230
|
// Own constructor properties of TrackerMiner-1.0.TrackerMiner.Miner
|
|
1241
1231
|
|
|
1242
|
-
introspection_handler?: any | null
|
|
1243
|
-
introspection_xml?: string | null
|
|
1244
|
-
name?: string | null
|
|
1245
|
-
progress?: number | null
|
|
1246
|
-
remaining_time?: number | null
|
|
1247
|
-
status?: string | null
|
|
1248
1232
|
introspectionHandler?: any | null
|
|
1249
1233
|
introspectionXml?: string | null
|
|
1234
|
+
name?: string | null
|
|
1235
|
+
progress?: number | null
|
|
1250
1236
|
remainingTime?: number | null
|
|
1237
|
+
status?: string | null
|
|
1251
1238
|
}
|
|
1252
1239
|
|
|
1253
1240
|
}
|
|
@@ -1256,13 +1243,10 @@ interface Miner extends Gio.Initable {
|
|
|
1256
1243
|
|
|
1257
1244
|
// Own properties of TrackerMiner-1.0.TrackerMiner.Miner
|
|
1258
1245
|
|
|
1259
|
-
introspection_handler: any
|
|
1260
1246
|
introspectionHandler: any
|
|
1261
|
-
introspection_xml: string | null
|
|
1262
1247
|
introspectionXml: string | null
|
|
1263
1248
|
readonly name: string | null
|
|
1264
1249
|
progress: number
|
|
1265
|
-
remaining_time: number
|
|
1266
1250
|
remainingTime: number
|
|
1267
1251
|
status: string | null
|
|
1268
1252
|
|
|
@@ -1287,12 +1271,12 @@ interface Miner extends Gio.Initable {
|
|
|
1287
1271
|
* Gets the DBus name registered by `miner`
|
|
1288
1272
|
* @returns a constant string which should not be modified by the caller.
|
|
1289
1273
|
*/
|
|
1290
|
-
get_dbus_full_name(): string
|
|
1274
|
+
get_dbus_full_name(): string
|
|
1291
1275
|
/**
|
|
1292
1276
|
* Gets the DBus path registered by `miner`
|
|
1293
1277
|
* @returns a constant string which should not be modified by the caller.
|
|
1294
1278
|
*/
|
|
1295
|
-
get_dbus_full_path(): string
|
|
1279
|
+
get_dbus_full_path(): string
|
|
1296
1280
|
/**
|
|
1297
1281
|
* Returns the number of pause reasons holding `miner` from
|
|
1298
1282
|
* indexing contents.
|
|
@@ -1321,7 +1305,7 @@ interface Miner extends Gio.Initable {
|
|
|
1321
1305
|
* @param reason reason to pause
|
|
1322
1306
|
* @returns The pause cookie ID.
|
|
1323
1307
|
*/
|
|
1324
|
-
pause(reason: string
|
|
1308
|
+
pause(reason: string): number
|
|
1325
1309
|
/**
|
|
1326
1310
|
* Asks the miner to resume processing. The cookie must be something
|
|
1327
1311
|
* returned by tracker_miner_pause(). The miner won't actually resume
|
|
@@ -1348,7 +1332,7 @@ interface Miner extends Gio.Initable {
|
|
|
1348
1332
|
*/
|
|
1349
1333
|
vfunc_ignore_next_update(urls: string[]): void
|
|
1350
1334
|
vfunc_paused(): void
|
|
1351
|
-
vfunc_progress(status: string
|
|
1335
|
+
vfunc_progress(status: string, progress: number): void
|
|
1352
1336
|
vfunc_resumed(): void
|
|
1353
1337
|
vfunc_started(): void
|
|
1354
1338
|
vfunc_stopped(): void
|
|
@@ -1483,18 +1467,13 @@ module MinerFS {
|
|
|
1483
1467
|
|
|
1484
1468
|
// Own constructor properties of TrackerMiner-1.0.TrackerMiner.MinerFS
|
|
1485
1469
|
|
|
1486
|
-
data_provider?: DataProvider | null
|
|
1487
|
-
initial_crawling?: boolean | null
|
|
1488
|
-
mtime_checking?: boolean | null
|
|
1489
|
-
processing_pool_ready_limit?: number | null
|
|
1490
|
-
processing_pool_wait_limit?: number | null
|
|
1491
|
-
root?: Gio.File | null
|
|
1492
|
-
throttle?: number | null
|
|
1493
1470
|
dataProvider?: DataProvider | null
|
|
1494
1471
|
initialCrawling?: boolean | null
|
|
1495
1472
|
mtimeChecking?: boolean | null
|
|
1496
1473
|
processingPoolReadyLimit?: number | null
|
|
1497
1474
|
processingPoolWaitLimit?: number | null
|
|
1475
|
+
root?: Gio.File | null
|
|
1476
|
+
throttle?: number | null
|
|
1498
1477
|
}
|
|
1499
1478
|
|
|
1500
1479
|
}
|
|
@@ -1503,15 +1482,10 @@ interface MinerFS extends Gio.Initable {
|
|
|
1503
1482
|
|
|
1504
1483
|
// Own properties of TrackerMiner-1.0.TrackerMiner.MinerFS
|
|
1505
1484
|
|
|
1506
|
-
readonly data_provider: DataProvider
|
|
1507
1485
|
readonly dataProvider: DataProvider
|
|
1508
|
-
initial_crawling: boolean
|
|
1509
1486
|
initialCrawling: boolean
|
|
1510
|
-
mtime_checking: boolean
|
|
1511
1487
|
mtimeChecking: boolean
|
|
1512
|
-
processing_pool_ready_limit: number
|
|
1513
1488
|
processingPoolReadyLimit: number
|
|
1514
|
-
processing_pool_wait_limit: number
|
|
1515
1489
|
processingPoolWaitLimit: number
|
|
1516
1490
|
readonly root: Gio.File
|
|
1517
1491
|
throttle: number
|
|
@@ -1873,7 +1847,6 @@ interface MinerOnline extends Gio.Initable {
|
|
|
1873
1847
|
|
|
1874
1848
|
// Own properties of TrackerMiner-1.0.TrackerMiner.MinerOnline
|
|
1875
1849
|
|
|
1876
|
-
readonly network_type: NetworkType
|
|
1877
1850
|
readonly networkType: NetworkType
|
|
1878
1851
|
|
|
1879
1852
|
// Own fields of TrackerMiner-1.0.TrackerMiner.MinerOnline
|
|
@@ -1957,8 +1930,8 @@ interface DataProviderIface {
|
|
|
1957
1930
|
* @field
|
|
1958
1931
|
*/
|
|
1959
1932
|
g_iface: GObject.TypeInterface
|
|
1960
|
-
begin: (data_provider: DataProvider, url: Gio.File, attributes: string
|
|
1961
|
-
begin_async: (data_provider: DataProvider, url: Gio.File, attributes: string
|
|
1933
|
+
begin: (data_provider: DataProvider, url: Gio.File, attributes: string, flags: DirectoryFlags, cancellable: Gio.Cancellable | null) => Enumerator
|
|
1934
|
+
begin_async: (data_provider: DataProvider, url: Gio.File, attributes: string, flags: DirectoryFlags, io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null) => void
|
|
1962
1935
|
begin_finish: (data_provider: DataProvider, result: Gio.AsyncResult) => Enumerator
|
|
1963
1936
|
end: (data_provider: DataProvider, enumerator: Enumerator, cancellable: Gio.Cancellable | null) => boolean
|
|
1964
1937
|
end_async: (data_provider: DataProvider, enumerator: Enumerator, io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null) => void
|
|
@@ -2048,7 +2021,7 @@ interface DecoratorInfo {
|
|
|
2048
2021
|
* ¹: http://en.wikipedia.org/wiki/MIME
|
|
2049
2022
|
* @returns the MIME type for #TrackerDecoratorInfo on success or #NULL on error.
|
|
2050
2023
|
*/
|
|
2051
|
-
get_mimetype(): string
|
|
2024
|
+
get_mimetype(): string
|
|
2052
2025
|
/**
|
|
2053
2026
|
* A #TrackerSparqlBuilder allows the caller to extract the final
|
|
2054
2027
|
* SPARQL used to insert the extracted metadata into the database for
|
|
@@ -2075,13 +2048,13 @@ interface DecoratorInfo {
|
|
|
2075
2048
|
* with a resource in the database. For example, 'file:///tmp/foo.txt'.
|
|
2076
2049
|
* @returns the URL for #TrackerDecoratorInfo on success or #NULL on error.
|
|
2077
2050
|
*/
|
|
2078
|
-
get_url(): string
|
|
2051
|
+
get_url(): string
|
|
2079
2052
|
/**
|
|
2080
2053
|
* A URN is a Uniform Resource Name and should be a unique identifier
|
|
2081
2054
|
* for a resource in the database.
|
|
2082
2055
|
* @returns the URN for #TrackerDecoratorInfo on success or #NULL on error.
|
|
2083
2056
|
*/
|
|
2084
|
-
get_urn(): string
|
|
2057
|
+
get_urn(): string
|
|
2085
2058
|
/**
|
|
2086
2059
|
* Increases the reference count of `info` by 1.
|
|
2087
2060
|
* @returns the same @info passed in, or %NULL on error.
|
|
@@ -2170,7 +2143,7 @@ interface MinerClass {
|
|
|
2170
2143
|
stopped: (miner: Miner) => void
|
|
2171
2144
|
paused: (miner: Miner) => void
|
|
2172
2145
|
resumed: (miner: Miner) => void
|
|
2173
|
-
progress: (miner: Miner, status: string
|
|
2146
|
+
progress: (miner: Miner, status: string, progress: number) => void
|
|
2174
2147
|
ignore_next_update: (miner: Miner, urls: string[]) => void
|
|
2175
2148
|
/**
|
|
2176
2149
|
* Reserved for future API improvements.
|