@girs/trackerminer-2.0 2.0.0-3.2.5 → 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/package.json +5 -5
- package/trackerminer-2.0.d.cts +43 -21
- package/trackerminer-2.0.d.ts +43 -21
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|

|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
GJS TypeScript type definitions for TrackerMiner-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 TrackerMiner-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
|
|
|
11
11
|
## Install
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/trackerminer-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 TrackerMiner-2.0, generated from library version 2.0.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "trackerminer-2.0.js",
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
"test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit trackerminer-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": "*"
|
package/trackerminer-2.0.d.cts
CHANGED
|
@@ -215,25 +215,25 @@ export enum DirectoryFlags {
|
|
|
215
215
|
* The name of the D-Bus interface to use for all data miners that
|
|
216
216
|
* inter-operate with Tracker.
|
|
217
217
|
*/
|
|
218
|
-
export const MINER_DBUS_INTERFACE: string
|
|
218
|
+
export const MINER_DBUS_INTERFACE: string
|
|
219
219
|
/**
|
|
220
220
|
* D-Bus name prefix to use for all data miners. This allows custom
|
|
221
221
|
* miners to be written using `TRACKER_MINER_DBUS_NAME_PREFIX` + "Files" for
|
|
222
222
|
* example and would show up on D-Bus under
|
|
223
223
|
* "org.freedesktop.Tracker1.Miner.Files".
|
|
224
224
|
*/
|
|
225
|
-
export const MINER_DBUS_NAME_PREFIX: string
|
|
225
|
+
export const MINER_DBUS_NAME_PREFIX: string
|
|
226
226
|
/**
|
|
227
227
|
* D-Bus path prefix to use for all data miners. This allows custom
|
|
228
228
|
* miners to be written using `TRACKER_MINER_DBUS_PATH_PREFIX` + "Files" for
|
|
229
229
|
* example and would show up on D-Bus under
|
|
230
230
|
* "/org/freedesktop/Tracker1/Miner/Files".
|
|
231
231
|
*/
|
|
232
|
-
export const MINER_DBUS_PATH_PREFIX: string
|
|
232
|
+
export const MINER_DBUS_PATH_PREFIX: string
|
|
233
233
|
/**
|
|
234
234
|
* Used as the domain for any #GErrors reported by `TrackerMiner` objects.
|
|
235
235
|
*/
|
|
236
|
-
export const MINER_ERROR_DOMAIN: string
|
|
236
|
+
export const MINER_ERROR_DOMAIN: string
|
|
237
237
|
export module DataProvider {
|
|
238
238
|
|
|
239
239
|
// Constructor properties interface
|
|
@@ -267,7 +267,7 @@ export interface DataProvider {
|
|
|
267
267
|
* @param cancellable optional #GCancellable object, %NULL to ignore.
|
|
268
268
|
* @returns a #GFileEnumerator or %NULL on failure. This must be freed with g_object_unref().
|
|
269
269
|
*/
|
|
270
|
-
begin(url: Gio.File, attributes: string
|
|
270
|
+
begin(url: Gio.File, attributes: string, flags: DirectoryFlags, cancellable: Gio.Cancellable | null): Gio.FileEnumerator
|
|
271
271
|
/**
|
|
272
272
|
* Precisely the same operation as tracker_data_provider_begin()
|
|
273
273
|
* is performing, but asynchronously.
|
|
@@ -296,7 +296,7 @@ export interface DataProvider {
|
|
|
296
296
|
* @param cancellable optional #GCancellable object, %NULL to ignore
|
|
297
297
|
* @param callback a #GAsyncReadyCallback to call when the request is satisfied
|
|
298
298
|
*/
|
|
299
|
-
begin_async(url: Gio.File, attributes: string
|
|
299
|
+
begin_async(url: Gio.File, attributes: string, flags: DirectoryFlags, io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
300
300
|
|
|
301
301
|
// Overloads of begin_async
|
|
302
302
|
|
|
@@ -330,7 +330,7 @@ export interface DataProvider {
|
|
|
330
330
|
* @param cancellable optional #GCancellable object, %NULL to ignore
|
|
331
331
|
* @returns A Promise of: a #GFileEnumerator or %NULL on failure. This must be freed with g_object_unref().
|
|
332
332
|
*/
|
|
333
|
-
begin_async(url: Gio.File, attributes: string
|
|
333
|
+
begin_async(url: Gio.File, attributes: string, flags: DirectoryFlags, io_priority: number, cancellable: Gio.Cancellable | null): globalThis.Promise<Gio.FileEnumerator>
|
|
334
334
|
/**
|
|
335
335
|
* Finishes the asynchronous operation started with
|
|
336
336
|
* tracker_data_provider_begin_async().
|
|
@@ -362,7 +362,7 @@ export interface DataProvider {
|
|
|
362
362
|
* @param cancellable optional #GCancellable object, %NULL to ignore.
|
|
363
363
|
* @returns a #GFileEnumerator or %NULL on failure. This must be freed with g_object_unref().
|
|
364
364
|
*/
|
|
365
|
-
vfunc_begin(url: Gio.File, attributes: string
|
|
365
|
+
vfunc_begin(url: Gio.File, attributes: string, flags: DirectoryFlags, cancellable: Gio.Cancellable | null): Gio.FileEnumerator
|
|
366
366
|
/**
|
|
367
367
|
* Precisely the same operation as tracker_data_provider_begin()
|
|
368
368
|
* is performing, but asynchronously.
|
|
@@ -392,7 +392,7 @@ export interface DataProvider {
|
|
|
392
392
|
* @param cancellable optional #GCancellable object, %NULL to ignore
|
|
393
393
|
* @param callback a #GAsyncReadyCallback to call when the request is satisfied
|
|
394
394
|
*/
|
|
395
|
-
vfunc_begin_async(url: Gio.File, attributes: string
|
|
395
|
+
vfunc_begin_async(url: Gio.File, attributes: string, flags: DirectoryFlags, io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
396
396
|
/**
|
|
397
397
|
* Finishes the asynchronous operation started with
|
|
398
398
|
* tracker_data_provider_begin_async().
|
|
@@ -456,6 +456,10 @@ export module Decorator {
|
|
|
456
456
|
commit_batch_size?: number | null
|
|
457
457
|
data_source?: string | null
|
|
458
458
|
priority_rdf_types?: string[] | null
|
|
459
|
+
classNames?: string[] | null
|
|
460
|
+
commitBatchSize?: number | null
|
|
461
|
+
dataSource?: string | null
|
|
462
|
+
priorityRdfTypes?: string[] | null
|
|
459
463
|
}
|
|
460
464
|
|
|
461
465
|
}
|
|
@@ -465,9 +469,13 @@ export interface Decorator extends Gio.Initable {
|
|
|
465
469
|
// Own properties of TrackerMiner-2.0.TrackerMiner.Decorator
|
|
466
470
|
|
|
467
471
|
class_names: string[]
|
|
472
|
+
classNames: string[]
|
|
468
473
|
commit_batch_size: number
|
|
474
|
+
commitBatchSize: number
|
|
469
475
|
readonly data_source: string | null
|
|
476
|
+
readonly dataSource: string | null
|
|
470
477
|
priority_rdf_types: string[]
|
|
478
|
+
priorityRdfTypes: string[]
|
|
471
479
|
|
|
472
480
|
// Own fields of TrackerMiner-2.0.TrackerMiner.Decorator
|
|
473
481
|
|
|
@@ -495,7 +503,7 @@ export interface Decorator extends Gio.Initable {
|
|
|
495
503
|
* so it's clear WHO has extracted this extended metadata.
|
|
496
504
|
* @returns a const gchar* or #NULL if an error happened.
|
|
497
505
|
*/
|
|
498
|
-
get_data_source(): string
|
|
506
|
+
get_data_source(): string
|
|
499
507
|
/**
|
|
500
508
|
* Get the number of items left in the queue to be processed. This
|
|
501
509
|
* indicates content that may already exist in Tracker but is waiting
|
|
@@ -538,7 +546,7 @@ export interface Decorator extends Gio.Initable {
|
|
|
538
546
|
* standard time it would take to index content.
|
|
539
547
|
* @param rdf_types a string array of rdf types
|
|
540
548
|
*/
|
|
541
|
-
set_priority_rdf_types(rdf_types: string
|
|
549
|
+
set_priority_rdf_types(rdf_types: string): void
|
|
542
550
|
|
|
543
551
|
// Own virtual methods of TrackerMiner-2.0.TrackerMiner.Decorator
|
|
544
552
|
|
|
@@ -719,6 +727,7 @@ export module IndexingTree {
|
|
|
719
727
|
|
|
720
728
|
filter_hidden?: boolean | null
|
|
721
729
|
root?: Gio.File | null
|
|
730
|
+
filterHidden?: boolean | null
|
|
722
731
|
}
|
|
723
732
|
|
|
724
733
|
}
|
|
@@ -728,6 +737,7 @@ export interface IndexingTree {
|
|
|
728
737
|
// Own properties of TrackerMiner-2.0.TrackerMiner.IndexingTree
|
|
729
738
|
|
|
730
739
|
filter_hidden: boolean
|
|
740
|
+
filterHidden: boolean
|
|
731
741
|
readonly root: Gio.File
|
|
732
742
|
|
|
733
743
|
// Own fields of TrackerMiner-2.0.TrackerMiner.IndexingTree
|
|
@@ -749,7 +759,7 @@ export interface IndexingTree {
|
|
|
749
759
|
* @param filter filter type
|
|
750
760
|
* @param glob_string glob-style string for the filter
|
|
751
761
|
*/
|
|
752
|
-
add_filter(filter: FilterType, glob_string: string
|
|
762
|
+
add_filter(filter: FilterType, glob_string: string): void
|
|
753
763
|
/**
|
|
754
764
|
* Clears all filters of a given type.
|
|
755
765
|
* @param type filter type to clear
|
|
@@ -1013,6 +1023,7 @@ export module Miner {
|
|
|
1013
1023
|
progress?: number | null
|
|
1014
1024
|
remaining_time?: number | null
|
|
1015
1025
|
status?: string | null
|
|
1026
|
+
remainingTime?: number | null
|
|
1016
1027
|
}
|
|
1017
1028
|
|
|
1018
1029
|
}
|
|
@@ -1023,6 +1034,7 @@ export interface Miner extends Gio.Initable {
|
|
|
1023
1034
|
|
|
1024
1035
|
progress: number
|
|
1025
1036
|
remaining_time: number
|
|
1037
|
+
remainingTime: number
|
|
1026
1038
|
status: string | null
|
|
1027
1039
|
|
|
1028
1040
|
// Own fields of TrackerMiner-2.0.TrackerMiner.Miner
|
|
@@ -1069,7 +1081,7 @@ export interface Miner extends Gio.Initable {
|
|
|
1069
1081
|
// Own virtual methods of TrackerMiner-2.0.TrackerMiner.Miner
|
|
1070
1082
|
|
|
1071
1083
|
vfunc_paused(): void
|
|
1072
|
-
vfunc_progress(status: string
|
|
1084
|
+
vfunc_progress(status: string, progress: number, remaining_time: number): void
|
|
1073
1085
|
vfunc_resumed(): void
|
|
1074
1086
|
vfunc_started(): void
|
|
1075
1087
|
vfunc_stopped(): void
|
|
@@ -1197,6 +1209,9 @@ export module MinerFS {
|
|
|
1197
1209
|
processing_pool_wait_limit?: number | null
|
|
1198
1210
|
root?: Gio.File | null
|
|
1199
1211
|
throttle?: number | null
|
|
1212
|
+
dataProvider?: DataProvider | null
|
|
1213
|
+
processingPoolReadyLimit?: number | null
|
|
1214
|
+
processingPoolWaitLimit?: number | null
|
|
1200
1215
|
}
|
|
1201
1216
|
|
|
1202
1217
|
}
|
|
@@ -1206,8 +1221,11 @@ export interface MinerFS extends Gio.Initable {
|
|
|
1206
1221
|
// Own properties of TrackerMiner-2.0.TrackerMiner.MinerFS
|
|
1207
1222
|
|
|
1208
1223
|
readonly data_provider: DataProvider
|
|
1224
|
+
readonly dataProvider: DataProvider
|
|
1209
1225
|
processing_pool_ready_limit: number
|
|
1226
|
+
processingPoolReadyLimit: number
|
|
1210
1227
|
processing_pool_wait_limit: number
|
|
1228
|
+
processingPoolWaitLimit: number
|
|
1211
1229
|
readonly root: Gio.File
|
|
1212
1230
|
throttle: number
|
|
1213
1231
|
|
|
@@ -1479,6 +1497,8 @@ export module MinerProxy {
|
|
|
1479
1497
|
dbus_connection?: Gio.DBusConnection | null
|
|
1480
1498
|
dbus_path?: string | null
|
|
1481
1499
|
miner?: Miner | null
|
|
1500
|
+
dbusConnection?: Gio.DBusConnection | null
|
|
1501
|
+
dbusPath?: string | null
|
|
1482
1502
|
}
|
|
1483
1503
|
|
|
1484
1504
|
}
|
|
@@ -1488,7 +1508,9 @@ export interface MinerProxy extends Gio.Initable {
|
|
|
1488
1508
|
// Own properties of TrackerMiner-2.0.TrackerMiner.MinerProxy
|
|
1489
1509
|
|
|
1490
1510
|
readonly dbus_connection: Gio.DBusConnection
|
|
1511
|
+
readonly dbusConnection: Gio.DBusConnection
|
|
1491
1512
|
readonly dbus_path: string | null
|
|
1513
|
+
readonly dbusPath: string | null
|
|
1492
1514
|
readonly miner: Miner
|
|
1493
1515
|
|
|
1494
1516
|
// Own fields of TrackerMiner-2.0.TrackerMiner.MinerProxy
|
|
@@ -1522,8 +1544,8 @@ export class MinerProxy extends GObject.Object {
|
|
|
1522
1544
|
// Constructors of TrackerMiner-2.0.TrackerMiner.MinerProxy
|
|
1523
1545
|
|
|
1524
1546
|
constructor(config?: MinerProxy.ConstructorProperties)
|
|
1525
|
-
constructor(miner: Miner, connection: Gio.DBusConnection, dbus_path: string
|
|
1526
|
-
static new(miner: Miner, connection: Gio.DBusConnection, dbus_path: string
|
|
1547
|
+
constructor(miner: Miner, connection: Gio.DBusConnection, dbus_path: string, cancellable: Gio.Cancellable | null)
|
|
1548
|
+
static new(miner: Miner, connection: Gio.DBusConnection, dbus_path: string, cancellable: Gio.Cancellable | null): MinerProxy
|
|
1527
1549
|
_init(config?: MinerProxy.ConstructorProperties): void
|
|
1528
1550
|
}
|
|
1529
1551
|
|
|
@@ -1536,8 +1558,8 @@ export interface DataProviderIface {
|
|
|
1536
1558
|
* @field
|
|
1537
1559
|
*/
|
|
1538
1560
|
g_iface: GObject.TypeInterface
|
|
1539
|
-
begin: (data_provider: DataProvider, url: Gio.File, attributes: string
|
|
1540
|
-
begin_async: (data_provider: DataProvider, url: Gio.File, attributes: string
|
|
1561
|
+
begin: (data_provider: DataProvider, url: Gio.File, attributes: string, flags: DirectoryFlags, cancellable: Gio.Cancellable | null) => Gio.FileEnumerator
|
|
1562
|
+
begin_async: (data_provider: DataProvider, url: Gio.File, attributes: string, flags: DirectoryFlags, io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null) => void
|
|
1541
1563
|
begin_finish: (data_provider: DataProvider, result: Gio.AsyncResult) => Gio.FileEnumerator
|
|
1542
1564
|
}
|
|
1543
1565
|
|
|
@@ -1636,7 +1658,7 @@ export interface DecoratorInfo {
|
|
|
1636
1658
|
* ¹: http://en.wikipedia.org/wiki/MIME
|
|
1637
1659
|
* @returns the MIME type for #TrackerDecoratorInfo on success or #NULL on error.
|
|
1638
1660
|
*/
|
|
1639
|
-
get_mimetype(): string
|
|
1661
|
+
get_mimetype(): string
|
|
1640
1662
|
/**
|
|
1641
1663
|
* Get the #GTask associated with retrieving extended metadata and
|
|
1642
1664
|
* information for a URN in Tracker.
|
|
@@ -1652,13 +1674,13 @@ export interface DecoratorInfo {
|
|
|
1652
1674
|
* with a resource in the database. For example, 'file:///tmp/foo.txt'.
|
|
1653
1675
|
* @returns the URL for #TrackerDecoratorInfo on success or #NULL on error.
|
|
1654
1676
|
*/
|
|
1655
|
-
get_url(): string
|
|
1677
|
+
get_url(): string
|
|
1656
1678
|
/**
|
|
1657
1679
|
* A URN is a Uniform Resource Name and should be a unique identifier
|
|
1658
1680
|
* for a resource in the database.
|
|
1659
1681
|
* @returns the URN for #TrackerDecoratorInfo on success or #NULL on error.
|
|
1660
1682
|
*/
|
|
1661
|
-
get_urn(): string
|
|
1683
|
+
get_urn(): string
|
|
1662
1684
|
/**
|
|
1663
1685
|
* Increases the reference count of `info` by 1.
|
|
1664
1686
|
* @returns the same @info passed in, or %NULL on error.
|
|
@@ -1722,7 +1744,7 @@ export interface MinerClass {
|
|
|
1722
1744
|
stopped: (miner: Miner) => void
|
|
1723
1745
|
paused: (miner: Miner) => void
|
|
1724
1746
|
resumed: (miner: Miner) => void
|
|
1725
|
-
progress: (miner: Miner, status: string
|
|
1747
|
+
progress: (miner: Miner, status: string, progress: number, remaining_time: number) => void
|
|
1726
1748
|
/**
|
|
1727
1749
|
* Reserved for future API improvements.
|
|
1728
1750
|
* @field
|
package/trackerminer-2.0.d.ts
CHANGED
|
@@ -217,25 +217,25 @@ enum DirectoryFlags {
|
|
|
217
217
|
* The name of the D-Bus interface to use for all data miners that
|
|
218
218
|
* inter-operate with Tracker.
|
|
219
219
|
*/
|
|
220
|
-
const MINER_DBUS_INTERFACE: string
|
|
220
|
+
const MINER_DBUS_INTERFACE: string
|
|
221
221
|
/**
|
|
222
222
|
* D-Bus name prefix to use for all data miners. This allows custom
|
|
223
223
|
* miners to be written using `TRACKER_MINER_DBUS_NAME_PREFIX` + "Files" for
|
|
224
224
|
* example and would show up on D-Bus under
|
|
225
225
|
* "org.freedesktop.Tracker1.Miner.Files".
|
|
226
226
|
*/
|
|
227
|
-
const MINER_DBUS_NAME_PREFIX: string
|
|
227
|
+
const MINER_DBUS_NAME_PREFIX: string
|
|
228
228
|
/**
|
|
229
229
|
* D-Bus path prefix to use for all data miners. This allows custom
|
|
230
230
|
* miners to be written using `TRACKER_MINER_DBUS_PATH_PREFIX` + "Files" for
|
|
231
231
|
* example and would show up on D-Bus under
|
|
232
232
|
* "/org/freedesktop/Tracker1/Miner/Files".
|
|
233
233
|
*/
|
|
234
|
-
const MINER_DBUS_PATH_PREFIX: string
|
|
234
|
+
const MINER_DBUS_PATH_PREFIX: string
|
|
235
235
|
/**
|
|
236
236
|
* Used as the domain for any #GErrors reported by `TrackerMiner` objects.
|
|
237
237
|
*/
|
|
238
|
-
const MINER_ERROR_DOMAIN: string
|
|
238
|
+
const MINER_ERROR_DOMAIN: string
|
|
239
239
|
module DataProvider {
|
|
240
240
|
|
|
241
241
|
// Constructor properties interface
|
|
@@ -269,7 +269,7 @@ interface DataProvider {
|
|
|
269
269
|
* @param cancellable optional #GCancellable object, %NULL to ignore.
|
|
270
270
|
* @returns a #GFileEnumerator or %NULL on failure. This must be freed with g_object_unref().
|
|
271
271
|
*/
|
|
272
|
-
begin(url: Gio.File, attributes: string
|
|
272
|
+
begin(url: Gio.File, attributes: string, flags: DirectoryFlags, cancellable: Gio.Cancellable | null): Gio.FileEnumerator
|
|
273
273
|
/**
|
|
274
274
|
* Precisely the same operation as tracker_data_provider_begin()
|
|
275
275
|
* is performing, but asynchronously.
|
|
@@ -298,7 +298,7 @@ interface DataProvider {
|
|
|
298
298
|
* @param cancellable optional #GCancellable object, %NULL to ignore
|
|
299
299
|
* @param callback a #GAsyncReadyCallback to call when the request is satisfied
|
|
300
300
|
*/
|
|
301
|
-
begin_async(url: Gio.File, attributes: string
|
|
301
|
+
begin_async(url: Gio.File, attributes: string, flags: DirectoryFlags, io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
302
302
|
|
|
303
303
|
// Overloads of begin_async
|
|
304
304
|
|
|
@@ -332,7 +332,7 @@ interface DataProvider {
|
|
|
332
332
|
* @param cancellable optional #GCancellable object, %NULL to ignore
|
|
333
333
|
* @returns A Promise of: a #GFileEnumerator or %NULL on failure. This must be freed with g_object_unref().
|
|
334
334
|
*/
|
|
335
|
-
begin_async(url: Gio.File, attributes: string
|
|
335
|
+
begin_async(url: Gio.File, attributes: string, flags: DirectoryFlags, io_priority: number, cancellable: Gio.Cancellable | null): globalThis.Promise<Gio.FileEnumerator>
|
|
336
336
|
/**
|
|
337
337
|
* Finishes the asynchronous operation started with
|
|
338
338
|
* tracker_data_provider_begin_async().
|
|
@@ -364,7 +364,7 @@ interface DataProvider {
|
|
|
364
364
|
* @param cancellable optional #GCancellable object, %NULL to ignore.
|
|
365
365
|
* @returns a #GFileEnumerator or %NULL on failure. This must be freed with g_object_unref().
|
|
366
366
|
*/
|
|
367
|
-
vfunc_begin(url: Gio.File, attributes: string
|
|
367
|
+
vfunc_begin(url: Gio.File, attributes: string, flags: DirectoryFlags, cancellable: Gio.Cancellable | null): Gio.FileEnumerator
|
|
368
368
|
/**
|
|
369
369
|
* Precisely the same operation as tracker_data_provider_begin()
|
|
370
370
|
* is performing, but asynchronously.
|
|
@@ -394,7 +394,7 @@ interface DataProvider {
|
|
|
394
394
|
* @param cancellable optional #GCancellable object, %NULL to ignore
|
|
395
395
|
* @param callback a #GAsyncReadyCallback to call when the request is satisfied
|
|
396
396
|
*/
|
|
397
|
-
vfunc_begin_async(url: Gio.File, attributes: string
|
|
397
|
+
vfunc_begin_async(url: Gio.File, attributes: string, flags: DirectoryFlags, io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
398
398
|
/**
|
|
399
399
|
* Finishes the asynchronous operation started with
|
|
400
400
|
* tracker_data_provider_begin_async().
|
|
@@ -458,6 +458,10 @@ module Decorator {
|
|
|
458
458
|
commit_batch_size?: number | null
|
|
459
459
|
data_source?: string | null
|
|
460
460
|
priority_rdf_types?: string[] | null
|
|
461
|
+
classNames?: string[] | null
|
|
462
|
+
commitBatchSize?: number | null
|
|
463
|
+
dataSource?: string | null
|
|
464
|
+
priorityRdfTypes?: string[] | null
|
|
461
465
|
}
|
|
462
466
|
|
|
463
467
|
}
|
|
@@ -467,9 +471,13 @@ interface Decorator extends Gio.Initable {
|
|
|
467
471
|
// Own properties of TrackerMiner-2.0.TrackerMiner.Decorator
|
|
468
472
|
|
|
469
473
|
class_names: string[]
|
|
474
|
+
classNames: string[]
|
|
470
475
|
commit_batch_size: number
|
|
476
|
+
commitBatchSize: number
|
|
471
477
|
readonly data_source: string | null
|
|
478
|
+
readonly dataSource: string | null
|
|
472
479
|
priority_rdf_types: string[]
|
|
480
|
+
priorityRdfTypes: string[]
|
|
473
481
|
|
|
474
482
|
// Own fields of TrackerMiner-2.0.TrackerMiner.Decorator
|
|
475
483
|
|
|
@@ -497,7 +505,7 @@ interface Decorator extends Gio.Initable {
|
|
|
497
505
|
* so it's clear WHO has extracted this extended metadata.
|
|
498
506
|
* @returns a const gchar* or #NULL if an error happened.
|
|
499
507
|
*/
|
|
500
|
-
get_data_source(): string
|
|
508
|
+
get_data_source(): string
|
|
501
509
|
/**
|
|
502
510
|
* Get the number of items left in the queue to be processed. This
|
|
503
511
|
* indicates content that may already exist in Tracker but is waiting
|
|
@@ -540,7 +548,7 @@ interface Decorator extends Gio.Initable {
|
|
|
540
548
|
* standard time it would take to index content.
|
|
541
549
|
* @param rdf_types a string array of rdf types
|
|
542
550
|
*/
|
|
543
|
-
set_priority_rdf_types(rdf_types: string
|
|
551
|
+
set_priority_rdf_types(rdf_types: string): void
|
|
544
552
|
|
|
545
553
|
// Own virtual methods of TrackerMiner-2.0.TrackerMiner.Decorator
|
|
546
554
|
|
|
@@ -721,6 +729,7 @@ module IndexingTree {
|
|
|
721
729
|
|
|
722
730
|
filter_hidden?: boolean | null
|
|
723
731
|
root?: Gio.File | null
|
|
732
|
+
filterHidden?: boolean | null
|
|
724
733
|
}
|
|
725
734
|
|
|
726
735
|
}
|
|
@@ -730,6 +739,7 @@ interface IndexingTree {
|
|
|
730
739
|
// Own properties of TrackerMiner-2.0.TrackerMiner.IndexingTree
|
|
731
740
|
|
|
732
741
|
filter_hidden: boolean
|
|
742
|
+
filterHidden: boolean
|
|
733
743
|
readonly root: Gio.File
|
|
734
744
|
|
|
735
745
|
// Own fields of TrackerMiner-2.0.TrackerMiner.IndexingTree
|
|
@@ -751,7 +761,7 @@ interface IndexingTree {
|
|
|
751
761
|
* @param filter filter type
|
|
752
762
|
* @param glob_string glob-style string for the filter
|
|
753
763
|
*/
|
|
754
|
-
add_filter(filter: FilterType, glob_string: string
|
|
764
|
+
add_filter(filter: FilterType, glob_string: string): void
|
|
755
765
|
/**
|
|
756
766
|
* Clears all filters of a given type.
|
|
757
767
|
* @param type filter type to clear
|
|
@@ -1015,6 +1025,7 @@ module Miner {
|
|
|
1015
1025
|
progress?: number | null
|
|
1016
1026
|
remaining_time?: number | null
|
|
1017
1027
|
status?: string | null
|
|
1028
|
+
remainingTime?: number | null
|
|
1018
1029
|
}
|
|
1019
1030
|
|
|
1020
1031
|
}
|
|
@@ -1025,6 +1036,7 @@ interface Miner extends Gio.Initable {
|
|
|
1025
1036
|
|
|
1026
1037
|
progress: number
|
|
1027
1038
|
remaining_time: number
|
|
1039
|
+
remainingTime: number
|
|
1028
1040
|
status: string | null
|
|
1029
1041
|
|
|
1030
1042
|
// Own fields of TrackerMiner-2.0.TrackerMiner.Miner
|
|
@@ -1071,7 +1083,7 @@ interface Miner extends Gio.Initable {
|
|
|
1071
1083
|
// Own virtual methods of TrackerMiner-2.0.TrackerMiner.Miner
|
|
1072
1084
|
|
|
1073
1085
|
vfunc_paused(): void
|
|
1074
|
-
vfunc_progress(status: string
|
|
1086
|
+
vfunc_progress(status: string, progress: number, remaining_time: number): void
|
|
1075
1087
|
vfunc_resumed(): void
|
|
1076
1088
|
vfunc_started(): void
|
|
1077
1089
|
vfunc_stopped(): void
|
|
@@ -1199,6 +1211,9 @@ module MinerFS {
|
|
|
1199
1211
|
processing_pool_wait_limit?: number | null
|
|
1200
1212
|
root?: Gio.File | null
|
|
1201
1213
|
throttle?: number | null
|
|
1214
|
+
dataProvider?: DataProvider | null
|
|
1215
|
+
processingPoolReadyLimit?: number | null
|
|
1216
|
+
processingPoolWaitLimit?: number | null
|
|
1202
1217
|
}
|
|
1203
1218
|
|
|
1204
1219
|
}
|
|
@@ -1208,8 +1223,11 @@ interface MinerFS extends Gio.Initable {
|
|
|
1208
1223
|
// Own properties of TrackerMiner-2.0.TrackerMiner.MinerFS
|
|
1209
1224
|
|
|
1210
1225
|
readonly data_provider: DataProvider
|
|
1226
|
+
readonly dataProvider: DataProvider
|
|
1211
1227
|
processing_pool_ready_limit: number
|
|
1228
|
+
processingPoolReadyLimit: number
|
|
1212
1229
|
processing_pool_wait_limit: number
|
|
1230
|
+
processingPoolWaitLimit: number
|
|
1213
1231
|
readonly root: Gio.File
|
|
1214
1232
|
throttle: number
|
|
1215
1233
|
|
|
@@ -1481,6 +1499,8 @@ module MinerProxy {
|
|
|
1481
1499
|
dbus_connection?: Gio.DBusConnection | null
|
|
1482
1500
|
dbus_path?: string | null
|
|
1483
1501
|
miner?: Miner | null
|
|
1502
|
+
dbusConnection?: Gio.DBusConnection | null
|
|
1503
|
+
dbusPath?: string | null
|
|
1484
1504
|
}
|
|
1485
1505
|
|
|
1486
1506
|
}
|
|
@@ -1490,7 +1510,9 @@ interface MinerProxy extends Gio.Initable {
|
|
|
1490
1510
|
// Own properties of TrackerMiner-2.0.TrackerMiner.MinerProxy
|
|
1491
1511
|
|
|
1492
1512
|
readonly dbus_connection: Gio.DBusConnection
|
|
1513
|
+
readonly dbusConnection: Gio.DBusConnection
|
|
1493
1514
|
readonly dbus_path: string | null
|
|
1515
|
+
readonly dbusPath: string | null
|
|
1494
1516
|
readonly miner: Miner
|
|
1495
1517
|
|
|
1496
1518
|
// Own fields of TrackerMiner-2.0.TrackerMiner.MinerProxy
|
|
@@ -1524,8 +1546,8 @@ class MinerProxy extends GObject.Object {
|
|
|
1524
1546
|
// Constructors of TrackerMiner-2.0.TrackerMiner.MinerProxy
|
|
1525
1547
|
|
|
1526
1548
|
constructor(config?: MinerProxy.ConstructorProperties)
|
|
1527
|
-
constructor(miner: Miner, connection: Gio.DBusConnection, dbus_path: string
|
|
1528
|
-
static new(miner: Miner, connection: Gio.DBusConnection, dbus_path: string
|
|
1549
|
+
constructor(miner: Miner, connection: Gio.DBusConnection, dbus_path: string, cancellable: Gio.Cancellable | null)
|
|
1550
|
+
static new(miner: Miner, connection: Gio.DBusConnection, dbus_path: string, cancellable: Gio.Cancellable | null): MinerProxy
|
|
1529
1551
|
_init(config?: MinerProxy.ConstructorProperties): void
|
|
1530
1552
|
}
|
|
1531
1553
|
|
|
@@ -1538,8 +1560,8 @@ interface DataProviderIface {
|
|
|
1538
1560
|
* @field
|
|
1539
1561
|
*/
|
|
1540
1562
|
g_iface: GObject.TypeInterface
|
|
1541
|
-
begin: (data_provider: DataProvider, url: Gio.File, attributes: string
|
|
1542
|
-
begin_async: (data_provider: DataProvider, url: Gio.File, attributes: string
|
|
1563
|
+
begin: (data_provider: DataProvider, url: Gio.File, attributes: string, flags: DirectoryFlags, cancellable: Gio.Cancellable | null) => Gio.FileEnumerator
|
|
1564
|
+
begin_async: (data_provider: DataProvider, url: Gio.File, attributes: string, flags: DirectoryFlags, io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null) => void
|
|
1543
1565
|
begin_finish: (data_provider: DataProvider, result: Gio.AsyncResult) => Gio.FileEnumerator
|
|
1544
1566
|
}
|
|
1545
1567
|
|
|
@@ -1638,7 +1660,7 @@ interface DecoratorInfo {
|
|
|
1638
1660
|
* ¹: http://en.wikipedia.org/wiki/MIME
|
|
1639
1661
|
* @returns the MIME type for #TrackerDecoratorInfo on success or #NULL on error.
|
|
1640
1662
|
*/
|
|
1641
|
-
get_mimetype(): string
|
|
1663
|
+
get_mimetype(): string
|
|
1642
1664
|
/**
|
|
1643
1665
|
* Get the #GTask associated with retrieving extended metadata and
|
|
1644
1666
|
* information for a URN in Tracker.
|
|
@@ -1654,13 +1676,13 @@ interface DecoratorInfo {
|
|
|
1654
1676
|
* with a resource in the database. For example, 'file:///tmp/foo.txt'.
|
|
1655
1677
|
* @returns the URL for #TrackerDecoratorInfo on success or #NULL on error.
|
|
1656
1678
|
*/
|
|
1657
|
-
get_url(): string
|
|
1679
|
+
get_url(): string
|
|
1658
1680
|
/**
|
|
1659
1681
|
* A URN is a Uniform Resource Name and should be a unique identifier
|
|
1660
1682
|
* for a resource in the database.
|
|
1661
1683
|
* @returns the URN for #TrackerDecoratorInfo on success or #NULL on error.
|
|
1662
1684
|
*/
|
|
1663
|
-
get_urn(): string
|
|
1685
|
+
get_urn(): string
|
|
1664
1686
|
/**
|
|
1665
1687
|
* Increases the reference count of `info` by 1.
|
|
1666
1688
|
* @returns the same @info passed in, or %NULL on error.
|
|
@@ -1724,7 +1746,7 @@ interface MinerClass {
|
|
|
1724
1746
|
stopped: (miner: Miner) => void
|
|
1725
1747
|
paused: (miner: Miner) => void
|
|
1726
1748
|
resumed: (miner: Miner) => void
|
|
1727
|
-
progress: (miner: Miner, status: string
|
|
1749
|
+
progress: (miner: Miner, status: string, progress: number, remaining_time: number) => void
|
|
1728
1750
|
/**
|
|
1729
1751
|
* Reserved for future API improvements.
|
|
1730
1752
|
* @field
|