@girs/trackerminer-2.0 2.0.0-4.0.0-beta.21 → 2.0.0-4.0.0-beta.24

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 CHANGED
@@ -5,7 +5,7 @@
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/trackerminer-2.0)
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) v4.0.0-beta.21.
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) v4.0.0-beta.24.
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-4.0.0-beta.21",
3
+ "version": "2.0.0-4.0.0-beta.24",
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",
@@ -31,11 +31,11 @@
31
31
  "test": "tsc --project tsconfig.json"
32
32
  },
33
33
  "dependencies": {
34
- "@girs/gio-2.0": "^2.83.3-4.0.0-beta.21",
35
- "@girs/gjs": "^4.0.0-beta.21",
36
- "@girs/glib-2.0": "^2.83.3-4.0.0-beta.21",
37
- "@girs/gmodule-2.0": "^2.0.0-4.0.0-beta.21",
38
- "@girs/gobject-2.0": "^2.83.3-4.0.0-beta.21"
34
+ "@girs/gio-2.0": "^2.84.2-4.0.0-beta.24",
35
+ "@girs/gjs": "^4.0.0-beta.24",
36
+ "@girs/glib-2.0": "^2.84.2-4.0.0-beta.24",
37
+ "@girs/gmodule-2.0": "^2.0.0-4.0.0-beta.24",
38
+ "@girs/gobject-2.0": "^2.84.2-4.0.0-beta.24"
39
39
  },
40
40
  "devDependencies": {
41
41
  "typescript": "*"
@@ -7,6 +7,8 @@
7
7
  * The based EJS template file is used for the generated .d.ts file of each GIR module like Gtk-4.0, GObject-2.0, ...
8
8
  */
9
9
 
10
+ import '@girs/gjs';
11
+
10
12
  // Module dependencies
11
13
  import type Gio from '@girs/gio-2.0';
12
14
  import type GObject from '@girs/gobject-2.0';
@@ -302,14 +304,17 @@ export namespace TrackerMiner {
302
304
  CHECK_DELETED,
303
305
  }
304
306
  namespace Decorator {
305
- // Signal callback interfaces
306
-
307
- interface Finished {
308
- (): void;
309
- }
310
-
311
- interface ItemsAvailable {
312
- (): void;
307
+ // Signal signatures
308
+ interface SignalSignatures extends Miner.SignalSignatures {
309
+ finished: () => void;
310
+ 'items-available': () => void;
311
+ 'notify::class-names': (pspec: GObject.ParamSpec) => void;
312
+ 'notify::commit-batch-size': (pspec: GObject.ParamSpec) => void;
313
+ 'notify::data-source': (pspec: GObject.ParamSpec) => void;
314
+ 'notify::priority-rdf-types': (pspec: GObject.ParamSpec) => void;
315
+ 'notify::progress': (pspec: GObject.ParamSpec) => void;
316
+ 'notify::remaining-time': (pspec: GObject.ParamSpec) => void;
317
+ 'notify::status': (pspec: GObject.ParamSpec) => void;
313
318
  }
314
319
 
315
320
  // Constructor properties interface
@@ -348,6 +353,15 @@ export namespace TrackerMiner {
348
353
  set priority_rdf_types(val: string[]);
349
354
  set priorityRdfTypes(val: string[]);
350
355
 
356
+ /**
357
+ * Compile-time signal type information.
358
+ *
359
+ * This instance property is generated only for TypeScript type checking.
360
+ * It is not defined at runtime and should not be accessed in JS code.
361
+ * @internal
362
+ */
363
+ $signals: Decorator.SignalSignatures;
364
+
351
365
  // Fields
352
366
 
353
367
  priv: any;
@@ -360,15 +374,21 @@ export namespace TrackerMiner {
360
374
 
361
375
  // Signals
362
376
 
363
- connect(id: string, callback: (...args: any[]) => any): number;
364
- connect_after(id: string, callback: (...args: any[]) => any): number;
365
- emit(id: string, ...args: any[]): void;
366
- connect(signal: 'finished', callback: (_source: this) => void): number;
367
- connect_after(signal: 'finished', callback: (_source: this) => void): number;
368
- emit(signal: 'finished'): void;
369
- connect(signal: 'items-available', callback: (_source: this) => void): number;
370
- connect_after(signal: 'items-available', callback: (_source: this) => void): number;
371
- emit(signal: 'items-available'): void;
377
+ connect<K extends keyof Decorator.SignalSignatures>(
378
+ signal: K,
379
+ callback: GObject.SignalCallback<this, Decorator.SignalSignatures[K]>,
380
+ ): number;
381
+ connect(signal: string, callback: (...args: any[]) => any): number;
382
+ connect_after<K extends keyof Decorator.SignalSignatures>(
383
+ signal: K,
384
+ callback: GObject.SignalCallback<this, Decorator.SignalSignatures[K]>,
385
+ ): number;
386
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
387
+ emit<K extends keyof Decorator.SignalSignatures>(
388
+ signal: K,
389
+ ...args: GObject.GjsParameters<Decorator.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
390
+ ): void;
391
+ emit(signal: string, ...args: any[]): void;
372
392
 
373
393
  // Static methods
374
394
 
@@ -493,7 +513,7 @@ export namespace TrackerMiner {
493
513
  * If the object is not initialized, or initialization returns with an
494
514
  * error, then all operations on the object except g_object_ref() and
495
515
  * g_object_unref() are considered to be invalid, and have undefined
496
- * behaviour. See the [introduction][ginitable] for more details.
516
+ * behaviour. See the [description][iface`Gio`.Initable#description] for more details.
497
517
  *
498
518
  * Callers should not assume that a class which implements #GInitable can be
499
519
  * initialized multiple times, unless the class explicitly documents itself as
@@ -536,7 +556,7 @@ export namespace TrackerMiner {
536
556
  * If the object is not initialized, or initialization returns with an
537
557
  * error, then all operations on the object except g_object_ref() and
538
558
  * g_object_unref() are considered to be invalid, and have undefined
539
- * behaviour. See the [introduction][ginitable] for more details.
559
+ * behaviour. See the [description][iface`Gio`.Initable#description] for more details.
540
560
  *
541
561
  * Callers should not assume that a class which implements #GInitable can be
542
562
  * initialized multiple times, unless the class explicitly documents itself as
@@ -676,7 +696,21 @@ export namespace TrackerMiner {
676
696
  * @returns the data if found, or %NULL if no such data exists.
677
697
  */
678
698
  get_data(key: string): any | null;
679
- get_property(property_name: string): any;
699
+ /**
700
+ * Gets a property of an object.
701
+ *
702
+ * The value can be:
703
+ * - an empty GObject.Value initialized by G_VALUE_INIT, which will be automatically initialized with the expected type of the property (since GLib 2.60)
704
+ * - a GObject.Value initialized with the expected type of the property
705
+ * - a GObject.Value initialized with a type to which the expected type of the property can be transformed
706
+ *
707
+ * In general, a copy is made of the property contents and the caller is responsible for freeing the memory by calling GObject.Value.unset.
708
+ *
709
+ * Note that GObject.Object.get_property is really intended for language bindings, GObject.Object.get is much more convenient for C programming.
710
+ * @param property_name The name of the property to get
711
+ * @param value Return location for the property value. Can be an empty GObject.Value initialized by G_VALUE_INIT (auto-initialized with expected type since GLib 2.60), a GObject.Value initialized with the expected property type, or a GObject.Value initialized with a transformable type
712
+ */
713
+ get_property(property_name: string, value: GObject.Value | any): any;
680
714
  /**
681
715
  * This function gets back user data pointers stored via
682
716
  * g_object_set_qdata().
@@ -804,7 +838,12 @@ export namespace TrackerMiner {
804
838
  * @param data data to associate with that key
805
839
  */
806
840
  set_data(key: string, data?: any | null): void;
807
- set_property(property_name: string, value: any): void;
841
+ /**
842
+ * Sets a property on an object.
843
+ * @param property_name The name of the property to set
844
+ * @param value The value to set the property to
845
+ */
846
+ set_property(property_name: string, value: GObject.Value | any): void;
808
847
  /**
809
848
  * Remove a specified datum from the object's data associations,
810
849
  * without invoking the association's destroy handler.
@@ -954,14 +993,45 @@ export namespace TrackerMiner {
954
993
  * @param pspec
955
994
  */
956
995
  vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
996
+ /**
997
+ * Disconnects a handler from an instance so it will not be called during any future or currently ongoing emissions of the signal it has been connected to.
998
+ * @param id Handler ID of the handler to be disconnected
999
+ */
957
1000
  disconnect(id: number): void;
1001
+ /**
1002
+ * Sets multiple properties of an object at once. The properties argument should be a dictionary mapping property names to values.
1003
+ * @param properties Object containing the properties to set
1004
+ */
958
1005
  set(properties: { [key: string]: any }): void;
959
- block_signal_handler(id: number): any;
960
- unblock_signal_handler(id: number): any;
961
- stop_emission_by_name(detailedName: string): any;
1006
+ /**
1007
+ * Blocks a handler of an instance so it will not be called during any signal emissions
1008
+ * @param id Handler ID of the handler to be blocked
1009
+ */
1010
+ block_signal_handler(id: number): void;
1011
+ /**
1012
+ * Unblocks a handler so it will be called again during any signal emissions
1013
+ * @param id Handler ID of the handler to be unblocked
1014
+ */
1015
+ unblock_signal_handler(id: number): void;
1016
+ /**
1017
+ * Stops a signal's emission by the given signal name. This will prevent the default handler and any subsequent signal handlers from being invoked.
1018
+ * @param detailedName Name of the signal to stop emission of
1019
+ */
1020
+ stop_emission_by_name(detailedName: string): void;
962
1021
  }
963
1022
 
964
1023
  namespace DecoratorFS {
1024
+ // Signal signatures
1025
+ interface SignalSignatures extends Decorator.SignalSignatures {
1026
+ 'notify::class-names': (pspec: GObject.ParamSpec) => void;
1027
+ 'notify::commit-batch-size': (pspec: GObject.ParamSpec) => void;
1028
+ 'notify::data-source': (pspec: GObject.ParamSpec) => void;
1029
+ 'notify::priority-rdf-types': (pspec: GObject.ParamSpec) => void;
1030
+ 'notify::progress': (pspec: GObject.ParamSpec) => void;
1031
+ 'notify::remaining-time': (pspec: GObject.ParamSpec) => void;
1032
+ 'notify::status': (pspec: GObject.ParamSpec) => void;
1033
+ }
1034
+
965
1035
  // Constructor properties interface
966
1036
 
967
1037
  interface ConstructorProps extends Decorator.ConstructorProps, Gio.Initable.ConstructorProps {}
@@ -973,6 +1043,15 @@ export namespace TrackerMiner {
973
1043
  abstract class DecoratorFS extends Decorator implements Gio.Initable {
974
1044
  static $gtype: GObject.GType<DecoratorFS>;
975
1045
 
1046
+ /**
1047
+ * Compile-time signal type information.
1048
+ *
1049
+ * This instance property is generated only for TypeScript type checking.
1050
+ * It is not defined at runtime and should not be accessed in JS code.
1051
+ * @internal
1052
+ */
1053
+ $signals: DecoratorFS.SignalSignatures;
1054
+
976
1055
  // Fields
977
1056
 
978
1057
  priv: any;
@@ -983,6 +1062,24 @@ export namespace TrackerMiner {
983
1062
 
984
1063
  _init(...args: any[]): void;
985
1064
 
1065
+ // Signals
1066
+
1067
+ connect<K extends keyof DecoratorFS.SignalSignatures>(
1068
+ signal: K,
1069
+ callback: GObject.SignalCallback<this, DecoratorFS.SignalSignatures[K]>,
1070
+ ): number;
1071
+ connect(signal: string, callback: (...args: any[]) => any): number;
1072
+ connect_after<K extends keyof DecoratorFS.SignalSignatures>(
1073
+ signal: K,
1074
+ callback: GObject.SignalCallback<this, DecoratorFS.SignalSignatures[K]>,
1075
+ ): number;
1076
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
1077
+ emit<K extends keyof DecoratorFS.SignalSignatures>(
1078
+ signal: K,
1079
+ ...args: GObject.GjsParameters<DecoratorFS.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
1080
+ ): void;
1081
+ emit(signal: string, ...args: any[]): void;
1082
+
986
1083
  // Methods
987
1084
 
988
1085
  /**
@@ -1110,7 +1207,21 @@ export namespace TrackerMiner {
1110
1207
  * @returns the data if found, or %NULL if no such data exists.
1111
1208
  */
1112
1209
  get_data(key: string): any | null;
1113
- get_property(property_name: string): any;
1210
+ /**
1211
+ * Gets a property of an object.
1212
+ *
1213
+ * The value can be:
1214
+ * - an empty GObject.Value initialized by G_VALUE_INIT, which will be automatically initialized with the expected type of the property (since GLib 2.60)
1215
+ * - a GObject.Value initialized with the expected type of the property
1216
+ * - a GObject.Value initialized with a type to which the expected type of the property can be transformed
1217
+ *
1218
+ * In general, a copy is made of the property contents and the caller is responsible for freeing the memory by calling GObject.Value.unset.
1219
+ *
1220
+ * Note that GObject.Object.get_property is really intended for language bindings, GObject.Object.get is much more convenient for C programming.
1221
+ * @param property_name The name of the property to get
1222
+ * @param value Return location for the property value. Can be an empty GObject.Value initialized by G_VALUE_INIT (auto-initialized with expected type since GLib 2.60), a GObject.Value initialized with the expected property type, or a GObject.Value initialized with a transformable type
1223
+ */
1224
+ get_property(property_name: string, value: GObject.Value | any): any;
1114
1225
  /**
1115
1226
  * This function gets back user data pointers stored via
1116
1227
  * g_object_set_qdata().
@@ -1238,7 +1349,12 @@ export namespace TrackerMiner {
1238
1349
  * @param data data to associate with that key
1239
1350
  */
1240
1351
  set_data(key: string, data?: any | null): void;
1241
- set_property(property_name: string, value: any): void;
1352
+ /**
1353
+ * Sets a property on an object.
1354
+ * @param property_name The name of the property to set
1355
+ * @param value The value to set the property to
1356
+ */
1357
+ set_property(property_name: string, value: GObject.Value | any): void;
1242
1358
  /**
1243
1359
  * Remove a specified datum from the object's data associations,
1244
1360
  * without invoking the association's destroy handler.
@@ -1388,30 +1504,42 @@ export namespace TrackerMiner {
1388
1504
  * @param pspec
1389
1505
  */
1390
1506
  vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
1507
+ /**
1508
+ * Disconnects a handler from an instance so it will not be called during any future or currently ongoing emissions of the signal it has been connected to.
1509
+ * @param id Handler ID of the handler to be disconnected
1510
+ */
1391
1511
  disconnect(id: number): void;
1512
+ /**
1513
+ * Sets multiple properties of an object at once. The properties argument should be a dictionary mapping property names to values.
1514
+ * @param properties Object containing the properties to set
1515
+ */
1392
1516
  set(properties: { [key: string]: any }): void;
1393
- block_signal_handler(id: number): any;
1394
- unblock_signal_handler(id: number): any;
1395
- stop_emission_by_name(detailedName: string): any;
1517
+ /**
1518
+ * Blocks a handler of an instance so it will not be called during any signal emissions
1519
+ * @param id Handler ID of the handler to be blocked
1520
+ */
1521
+ block_signal_handler(id: number): void;
1522
+ /**
1523
+ * Unblocks a handler so it will be called again during any signal emissions
1524
+ * @param id Handler ID of the handler to be unblocked
1525
+ */
1526
+ unblock_signal_handler(id: number): void;
1527
+ /**
1528
+ * Stops a signal's emission by the given signal name. This will prevent the default handler and any subsequent signal handlers from being invoked.
1529
+ * @param detailedName Name of the signal to stop emission of
1530
+ */
1531
+ stop_emission_by_name(detailedName: string): void;
1396
1532
  }
1397
1533
 
1398
1534
  namespace IndexingTree {
1399
- // Signal callback interfaces
1400
-
1401
- interface ChildUpdated {
1402
- (root: Gio.File, child: Gio.File): void;
1403
- }
1404
-
1405
- interface DirectoryAdded {
1406
- (directory: Gio.File): void;
1407
- }
1408
-
1409
- interface DirectoryRemoved {
1410
- (directory: Gio.File): void;
1411
- }
1412
-
1413
- interface DirectoryUpdated {
1414
- (directory: Gio.File): void;
1535
+ // Signal signatures
1536
+ interface SignalSignatures extends GObject.Object.SignalSignatures {
1537
+ 'child-updated': (arg0: Gio.File, arg1: Gio.File) => void;
1538
+ 'directory-added': (arg0: Gio.File) => void;
1539
+ 'directory-removed': (arg0: Gio.File) => void;
1540
+ 'directory-updated': (arg0: Gio.File) => void;
1541
+ 'notify::filter-hidden': (pspec: GObject.ParamSpec) => void;
1542
+ 'notify::root': (pspec: GObject.ParamSpec) => void;
1415
1543
  }
1416
1544
 
1417
1545
  // Constructor properties interface
@@ -1437,6 +1565,15 @@ export namespace TrackerMiner {
1437
1565
  set filterHidden(val: boolean);
1438
1566
  get root(): Gio.File;
1439
1567
 
1568
+ /**
1569
+ * Compile-time signal type information.
1570
+ *
1571
+ * This instance property is generated only for TypeScript type checking.
1572
+ * It is not defined at runtime and should not be accessed in JS code.
1573
+ * @internal
1574
+ */
1575
+ $signals: IndexingTree.SignalSignatures;
1576
+
1440
1577
  // Fields
1441
1578
 
1442
1579
  priv: any;
@@ -1453,24 +1590,21 @@ export namespace TrackerMiner {
1453
1590
 
1454
1591
  // Signals
1455
1592
 
1456
- connect(id: string, callback: (...args: any[]) => any): number;
1457
- connect_after(id: string, callback: (...args: any[]) => any): number;
1458
- emit(id: string, ...args: any[]): void;
1459
- connect(signal: 'child-updated', callback: (_source: this, root: Gio.File, child: Gio.File) => void): number;
1460
- connect_after(
1461
- signal: 'child-updated',
1462
- callback: (_source: this, root: Gio.File, child: Gio.File) => void,
1593
+ connect<K extends keyof IndexingTree.SignalSignatures>(
1594
+ signal: K,
1595
+ callback: GObject.SignalCallback<this, IndexingTree.SignalSignatures[K]>,
1596
+ ): number;
1597
+ connect(signal: string, callback: (...args: any[]) => any): number;
1598
+ connect_after<K extends keyof IndexingTree.SignalSignatures>(
1599
+ signal: K,
1600
+ callback: GObject.SignalCallback<this, IndexingTree.SignalSignatures[K]>,
1463
1601
  ): number;
1464
- emit(signal: 'child-updated', root: Gio.File, child: Gio.File): void;
1465
- connect(signal: 'directory-added', callback: (_source: this, directory: Gio.File) => void): number;
1466
- connect_after(signal: 'directory-added', callback: (_source: this, directory: Gio.File) => void): number;
1467
- emit(signal: 'directory-added', directory: Gio.File): void;
1468
- connect(signal: 'directory-removed', callback: (_source: this, directory: Gio.File) => void): number;
1469
- connect_after(signal: 'directory-removed', callback: (_source: this, directory: Gio.File) => void): number;
1470
- emit(signal: 'directory-removed', directory: Gio.File): void;
1471
- connect(signal: 'directory-updated', callback: (_source: this, directory: Gio.File) => void): number;
1472
- connect_after(signal: 'directory-updated', callback: (_source: this, directory: Gio.File) => void): number;
1473
- emit(signal: 'directory-updated', directory: Gio.File): void;
1602
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
1603
+ emit<K extends keyof IndexingTree.SignalSignatures>(
1604
+ signal: K,
1605
+ ...args: GObject.GjsParameters<IndexingTree.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
1606
+ ): void;
1607
+ emit(signal: string, ...args: any[]): void;
1474
1608
 
1475
1609
  // Virtual methods
1476
1610
 
@@ -1636,26 +1770,16 @@ export namespace TrackerMiner {
1636
1770
  }
1637
1771
 
1638
1772
  namespace Miner {
1639
- // Signal callback interfaces
1640
-
1641
- interface Paused {
1642
- (): void;
1643
- }
1644
-
1645
- interface Progress {
1646
- (status: string, progress: number, remaining_time: number): void;
1647
- }
1648
-
1649
- interface Resumed {
1650
- (): void;
1651
- }
1652
-
1653
- interface Started {
1654
- (): void;
1655
- }
1656
-
1657
- interface Stopped {
1658
- (): void;
1773
+ // Signal signatures
1774
+ interface SignalSignatures extends GObject.Object.SignalSignatures {
1775
+ paused: () => void;
1776
+ progress: (arg0: string, arg1: number, arg2: number) => void;
1777
+ resumed: () => void;
1778
+ started: () => void;
1779
+ stopped: () => void;
1780
+ 'notify::progress': (pspec: GObject.ParamSpec) => void;
1781
+ 'notify::remaining-time': (pspec: GObject.ParamSpec) => void;
1782
+ 'notify::status': (pspec: GObject.ParamSpec) => void;
1659
1783
  }
1660
1784
 
1661
1785
  // Constructor properties interface
@@ -1685,6 +1809,15 @@ export namespace TrackerMiner {
1685
1809
  get status(): string;
1686
1810
  set status(val: string);
1687
1811
 
1812
+ /**
1813
+ * Compile-time signal type information.
1814
+ *
1815
+ * This instance property is generated only for TypeScript type checking.
1816
+ * It is not defined at runtime and should not be accessed in JS code.
1817
+ * @internal
1818
+ */
1819
+ $signals: Miner.SignalSignatures;
1820
+
1688
1821
  // Constructors
1689
1822
 
1690
1823
  constructor(properties?: Partial<Miner.ConstructorProps>, ...args: any[]);
@@ -1693,30 +1826,21 @@ export namespace TrackerMiner {
1693
1826
 
1694
1827
  // Signals
1695
1828
 
1696
- connect(id: string, callback: (...args: any[]) => any): number;
1697
- connect_after(id: string, callback: (...args: any[]) => any): number;
1698
- emit(id: string, ...args: any[]): void;
1699
- connect(signal: 'paused', callback: (_source: this) => void): number;
1700
- connect_after(signal: 'paused', callback: (_source: this) => void): number;
1701
- emit(signal: 'paused'): void;
1702
- connect(
1703
- signal: 'progress',
1704
- callback: (_source: this, status: string, progress: number, remaining_time: number) => void,
1829
+ connect<K extends keyof Miner.SignalSignatures>(
1830
+ signal: K,
1831
+ callback: GObject.SignalCallback<this, Miner.SignalSignatures[K]>,
1705
1832
  ): number;
1706
- connect_after(
1707
- signal: 'progress',
1708
- callback: (_source: this, status: string, progress: number, remaining_time: number) => void,
1833
+ connect(signal: string, callback: (...args: any[]) => any): number;
1834
+ connect_after<K extends keyof Miner.SignalSignatures>(
1835
+ signal: K,
1836
+ callback: GObject.SignalCallback<this, Miner.SignalSignatures[K]>,
1709
1837
  ): number;
1710
- emit(signal: 'progress', status: string, progress: number, remaining_time: number): void;
1711
- connect(signal: 'resumed', callback: (_source: this) => void): number;
1712
- connect_after(signal: 'resumed', callback: (_source: this) => void): number;
1713
- emit(signal: 'resumed'): void;
1714
- connect(signal: 'started', callback: (_source: this) => void): number;
1715
- connect_after(signal: 'started', callback: (_source: this) => void): number;
1716
- emit(signal: 'started'): void;
1717
- connect(signal: 'stopped', callback: (_source: this) => void): number;
1718
- connect_after(signal: 'stopped', callback: (_source: this) => void): number;
1719
- emit(signal: 'stopped'): void;
1838
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
1839
+ emit<K extends keyof Miner.SignalSignatures>(
1840
+ signal: K,
1841
+ ...args: GObject.GjsParameters<Miner.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
1842
+ ): void;
1843
+ emit(signal: string, ...args: any[]): void;
1720
1844
 
1721
1845
  // Static methods
1722
1846
 
@@ -1790,7 +1914,7 @@ export namespace TrackerMiner {
1790
1914
  * If the object is not initialized, or initialization returns with an
1791
1915
  * error, then all operations on the object except g_object_ref() and
1792
1916
  * g_object_unref() are considered to be invalid, and have undefined
1793
- * behaviour. See the [introduction][ginitable] for more details.
1917
+ * behaviour. See the [description][iface`Gio`.Initable#description] for more details.
1794
1918
  *
1795
1919
  * Callers should not assume that a class which implements #GInitable can be
1796
1920
  * initialized multiple times, unless the class explicitly documents itself as
@@ -1833,7 +1957,7 @@ export namespace TrackerMiner {
1833
1957
  * If the object is not initialized, or initialization returns with an
1834
1958
  * error, then all operations on the object except g_object_ref() and
1835
1959
  * g_object_unref() are considered to be invalid, and have undefined
1836
- * behaviour. See the [introduction][ginitable] for more details.
1960
+ * behaviour. See the [description][iface`Gio`.Initable#description] for more details.
1837
1961
  *
1838
1962
  * Callers should not assume that a class which implements #GInitable can be
1839
1963
  * initialized multiple times, unless the class explicitly documents itself as
@@ -1973,7 +2097,21 @@ export namespace TrackerMiner {
1973
2097
  * @returns the data if found, or %NULL if no such data exists.
1974
2098
  */
1975
2099
  get_data(key: string): any | null;
1976
- get_property(property_name: string): any;
2100
+ /**
2101
+ * Gets a property of an object.
2102
+ *
2103
+ * The value can be:
2104
+ * - an empty GObject.Value initialized by G_VALUE_INIT, which will be automatically initialized with the expected type of the property (since GLib 2.60)
2105
+ * - a GObject.Value initialized with the expected type of the property
2106
+ * - a GObject.Value initialized with a type to which the expected type of the property can be transformed
2107
+ *
2108
+ * In general, a copy is made of the property contents and the caller is responsible for freeing the memory by calling GObject.Value.unset.
2109
+ *
2110
+ * Note that GObject.Object.get_property is really intended for language bindings, GObject.Object.get is much more convenient for C programming.
2111
+ * @param property_name The name of the property to get
2112
+ * @param value Return location for the property value. Can be an empty GObject.Value initialized by G_VALUE_INIT (auto-initialized with expected type since GLib 2.60), a GObject.Value initialized with the expected property type, or a GObject.Value initialized with a transformable type
2113
+ */
2114
+ get_property(property_name: string, value: GObject.Value | any): any;
1977
2115
  /**
1978
2116
  * This function gets back user data pointers stored via
1979
2117
  * g_object_set_qdata().
@@ -2101,7 +2239,12 @@ export namespace TrackerMiner {
2101
2239
  * @param data data to associate with that key
2102
2240
  */
2103
2241
  set_data(key: string, data?: any | null): void;
2104
- set_property(property_name: string, value: any): void;
2242
+ /**
2243
+ * Sets a property on an object.
2244
+ * @param property_name The name of the property to set
2245
+ * @param value The value to set the property to
2246
+ */
2247
+ set_property(property_name: string, value: GObject.Value | any): void;
2105
2248
  /**
2106
2249
  * Remove a specified datum from the object's data associations,
2107
2250
  * without invoking the association's destroy handler.
@@ -2251,48 +2394,51 @@ export namespace TrackerMiner {
2251
2394
  * @param pspec
2252
2395
  */
2253
2396
  vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
2397
+ /**
2398
+ * Disconnects a handler from an instance so it will not be called during any future or currently ongoing emissions of the signal it has been connected to.
2399
+ * @param id Handler ID of the handler to be disconnected
2400
+ */
2254
2401
  disconnect(id: number): void;
2402
+ /**
2403
+ * Sets multiple properties of an object at once. The properties argument should be a dictionary mapping property names to values.
2404
+ * @param properties Object containing the properties to set
2405
+ */
2255
2406
  set(properties: { [key: string]: any }): void;
2256
- block_signal_handler(id: number): any;
2257
- unblock_signal_handler(id: number): any;
2258
- stop_emission_by_name(detailedName: string): any;
2407
+ /**
2408
+ * Blocks a handler of an instance so it will not be called during any signal emissions
2409
+ * @param id Handler ID of the handler to be blocked
2410
+ */
2411
+ block_signal_handler(id: number): void;
2412
+ /**
2413
+ * Unblocks a handler so it will be called again during any signal emissions
2414
+ * @param id Handler ID of the handler to be unblocked
2415
+ */
2416
+ unblock_signal_handler(id: number): void;
2417
+ /**
2418
+ * Stops a signal's emission by the given signal name. This will prevent the default handler and any subsequent signal handlers from being invoked.
2419
+ * @param detailedName Name of the signal to stop emission of
2420
+ */
2421
+ stop_emission_by_name(detailedName: string): void;
2259
2422
  }
2260
2423
 
2261
2424
  namespace MinerFS {
2262
- // Signal callback interfaces
2263
-
2264
- interface Finished {
2265
- (
2266
- elapsed: number,
2267
- directories_found: number,
2268
- directories_ignored: number,
2269
- files_found: number,
2270
- files_ignored: number,
2271
- ): void;
2272
- }
2273
-
2274
- interface FinishedRoot {
2275
- (file: Gio.File): void;
2276
- }
2277
-
2278
- interface MoveFile {
2279
- (object: Gio.File, p0: Gio.File, p1: boolean): string;
2280
- }
2281
-
2282
- interface ProcessFile {
2283
- (file: Gio.File, builder: Gio.Task): boolean;
2284
- }
2285
-
2286
- interface ProcessFileAttributes {
2287
- (file: Gio.File, builder: Gio.Task): boolean;
2288
- }
2289
-
2290
- interface RemoveChildren {
2291
- (object: Gio.File): string;
2292
- }
2293
-
2294
- interface RemoveFile {
2295
- (file: Gio.File): string;
2425
+ // Signal signatures
2426
+ interface SignalSignatures extends Miner.SignalSignatures {
2427
+ finished: (arg0: number, arg1: number, arg2: number, arg3: number, arg4: number) => void;
2428
+ 'finished-root': (arg0: Gio.File) => void;
2429
+ 'move-file': (arg0: Gio.File, arg1: Gio.File, arg2: boolean) => string;
2430
+ 'process-file': (arg0: Gio.File, arg1: Gio.Task) => boolean | void;
2431
+ 'process-file-attributes': (arg0: Gio.File, arg1: Gio.Task) => boolean | void;
2432
+ 'remove-children': (arg0: Gio.File) => string;
2433
+ 'remove-file': (arg0: Gio.File) => string;
2434
+ 'notify::data-provider': (pspec: GObject.ParamSpec) => void;
2435
+ 'notify::processing-pool-ready-limit': (pspec: GObject.ParamSpec) => void;
2436
+ 'notify::processing-pool-wait-limit': (pspec: GObject.ParamSpec) => void;
2437
+ 'notify::root': (pspec: GObject.ParamSpec) => void;
2438
+ 'notify::throttle': (pspec: GObject.ParamSpec) => void;
2439
+ 'notify::progress': (pspec: GObject.ParamSpec) => void;
2440
+ 'notify::remaining-time': (pspec: GObject.ParamSpec) => void;
2441
+ 'notify::status': (pspec: GObject.ParamSpec) => void;
2296
2442
  }
2297
2443
 
2298
2444
  // Constructor properties interface
@@ -2331,6 +2477,15 @@ export namespace TrackerMiner {
2331
2477
  get throttle(): number;
2332
2478
  set throttle(val: number);
2333
2479
 
2480
+ /**
2481
+ * Compile-time signal type information.
2482
+ *
2483
+ * This instance property is generated only for TypeScript type checking.
2484
+ * It is not defined at runtime and should not be accessed in JS code.
2485
+ * @internal
2486
+ */
2487
+ $signals: MinerFS.SignalSignatures;
2488
+
2334
2489
  // Constructors
2335
2490
 
2336
2491
  constructor(properties?: Partial<MinerFS.ConstructorProps>, ...args: any[]);
@@ -2339,75 +2494,21 @@ export namespace TrackerMiner {
2339
2494
 
2340
2495
  // Signals
2341
2496
 
2342
- connect(id: string, callback: (...args: any[]) => any): number;
2343
- connect_after(id: string, callback: (...args: any[]) => any): number;
2344
- emit(id: string, ...args: any[]): void;
2345
- connect(
2346
- signal: 'finished',
2347
- callback: (
2348
- _source: this,
2349
- elapsed: number,
2350
- directories_found: number,
2351
- directories_ignored: number,
2352
- files_found: number,
2353
- files_ignored: number,
2354
- ) => void,
2497
+ connect<K extends keyof MinerFS.SignalSignatures>(
2498
+ signal: K,
2499
+ callback: GObject.SignalCallback<this, MinerFS.SignalSignatures[K]>,
2355
2500
  ): number;
2356
- connect_after(
2357
- signal: 'finished',
2358
- callback: (
2359
- _source: this,
2360
- elapsed: number,
2361
- directories_found: number,
2362
- directories_ignored: number,
2363
- files_found: number,
2364
- files_ignored: number,
2365
- ) => void,
2501
+ connect(signal: string, callback: (...args: any[]) => any): number;
2502
+ connect_after<K extends keyof MinerFS.SignalSignatures>(
2503
+ signal: K,
2504
+ callback: GObject.SignalCallback<this, MinerFS.SignalSignatures[K]>,
2366
2505
  ): number;
2367
- emit(
2368
- signal: 'finished',
2369
- elapsed: number,
2370
- directories_found: number,
2371
- directories_ignored: number,
2372
- files_found: number,
2373
- files_ignored: number,
2506
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
2507
+ emit<K extends keyof MinerFS.SignalSignatures>(
2508
+ signal: K,
2509
+ ...args: GObject.GjsParameters<MinerFS.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
2374
2510
  ): void;
2375
- connect(signal: 'finished-root', callback: (_source: this, file: Gio.File) => void): number;
2376
- connect_after(signal: 'finished-root', callback: (_source: this, file: Gio.File) => void): number;
2377
- emit(signal: 'finished-root', file: Gio.File): void;
2378
- connect(
2379
- signal: 'move-file',
2380
- callback: (_source: this, object: Gio.File, p0: Gio.File, p1: boolean) => string,
2381
- ): number;
2382
- connect_after(
2383
- signal: 'move-file',
2384
- callback: (_source: this, object: Gio.File, p0: Gio.File, p1: boolean) => string,
2385
- ): number;
2386
- emit(signal: 'move-file', object: Gio.File, p0: Gio.File, p1: boolean): void;
2387
- connect(
2388
- signal: 'process-file',
2389
- callback: (_source: this, file: Gio.File, builder: Gio.Task) => boolean,
2390
- ): number;
2391
- connect_after(
2392
- signal: 'process-file',
2393
- callback: (_source: this, file: Gio.File, builder: Gio.Task) => boolean,
2394
- ): number;
2395
- emit(signal: 'process-file', file: Gio.File, builder: Gio.Task): void;
2396
- connect(
2397
- signal: 'process-file-attributes',
2398
- callback: (_source: this, file: Gio.File, builder: Gio.Task) => boolean,
2399
- ): number;
2400
- connect_after(
2401
- signal: 'process-file-attributes',
2402
- callback: (_source: this, file: Gio.File, builder: Gio.Task) => boolean,
2403
- ): number;
2404
- emit(signal: 'process-file-attributes', file: Gio.File, builder: Gio.Task): void;
2405
- connect(signal: 'remove-children', callback: (_source: this, object: Gio.File) => string): number;
2406
- connect_after(signal: 'remove-children', callback: (_source: this, object: Gio.File) => string): number;
2407
- emit(signal: 'remove-children', object: Gio.File): void;
2408
- connect(signal: 'remove-file', callback: (_source: this, file: Gio.File) => string): number;
2409
- connect_after(signal: 'remove-file', callback: (_source: this, file: Gio.File) => string): number;
2410
- emit(signal: 'remove-file', file: Gio.File): void;
2511
+ emit(signal: string, ...args: any[]): void;
2411
2512
 
2412
2513
  // Static methods
2413
2514
 
@@ -2540,7 +2641,7 @@ export namespace TrackerMiner {
2540
2641
  * If the object is not initialized, or initialization returns with an
2541
2642
  * error, then all operations on the object except g_object_ref() and
2542
2643
  * g_object_unref() are considered to be invalid, and have undefined
2543
- * behaviour. See the [introduction][ginitable] for more details.
2644
+ * behaviour. See the [description][iface`Gio`.Initable#description] for more details.
2544
2645
  *
2545
2646
  * Callers should not assume that a class which implements #GInitable can be
2546
2647
  * initialized multiple times, unless the class explicitly documents itself as
@@ -2583,7 +2684,7 @@ export namespace TrackerMiner {
2583
2684
  * If the object is not initialized, or initialization returns with an
2584
2685
  * error, then all operations on the object except g_object_ref() and
2585
2686
  * g_object_unref() are considered to be invalid, and have undefined
2586
- * behaviour. See the [introduction][ginitable] for more details.
2687
+ * behaviour. See the [description][iface`Gio`.Initable#description] for more details.
2587
2688
  *
2588
2689
  * Callers should not assume that a class which implements #GInitable can be
2589
2690
  * initialized multiple times, unless the class explicitly documents itself as
@@ -2723,7 +2824,21 @@ export namespace TrackerMiner {
2723
2824
  * @returns the data if found, or %NULL if no such data exists.
2724
2825
  */
2725
2826
  get_data(key: string): any | null;
2726
- get_property(property_name: string): any;
2827
+ /**
2828
+ * Gets a property of an object.
2829
+ *
2830
+ * The value can be:
2831
+ * - an empty GObject.Value initialized by G_VALUE_INIT, which will be automatically initialized with the expected type of the property (since GLib 2.60)
2832
+ * - a GObject.Value initialized with the expected type of the property
2833
+ * - a GObject.Value initialized with a type to which the expected type of the property can be transformed
2834
+ *
2835
+ * In general, a copy is made of the property contents and the caller is responsible for freeing the memory by calling GObject.Value.unset.
2836
+ *
2837
+ * Note that GObject.Object.get_property is really intended for language bindings, GObject.Object.get is much more convenient for C programming.
2838
+ * @param property_name The name of the property to get
2839
+ * @param value Return location for the property value. Can be an empty GObject.Value initialized by G_VALUE_INIT (auto-initialized with expected type since GLib 2.60), a GObject.Value initialized with the expected property type, or a GObject.Value initialized with a transformable type
2840
+ */
2841
+ get_property(property_name: string, value: GObject.Value | any): any;
2727
2842
  /**
2728
2843
  * This function gets back user data pointers stored via
2729
2844
  * g_object_set_qdata().
@@ -2851,7 +2966,12 @@ export namespace TrackerMiner {
2851
2966
  * @param data data to associate with that key
2852
2967
  */
2853
2968
  set_data(key: string, data?: any | null): void;
2854
- set_property(property_name: string, value: any): void;
2969
+ /**
2970
+ * Sets a property on an object.
2971
+ * @param property_name The name of the property to set
2972
+ * @param value The value to set the property to
2973
+ */
2974
+ set_property(property_name: string, value: GObject.Value | any): void;
2855
2975
  /**
2856
2976
  * Remove a specified datum from the object's data associations,
2857
2977
  * without invoking the association's destroy handler.
@@ -3001,22 +3121,41 @@ export namespace TrackerMiner {
3001
3121
  * @param pspec
3002
3122
  */
3003
3123
  vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
3124
+ /**
3125
+ * Disconnects a handler from an instance so it will not be called during any future or currently ongoing emissions of the signal it has been connected to.
3126
+ * @param id Handler ID of the handler to be disconnected
3127
+ */
3004
3128
  disconnect(id: number): void;
3129
+ /**
3130
+ * Sets multiple properties of an object at once. The properties argument should be a dictionary mapping property names to values.
3131
+ * @param properties Object containing the properties to set
3132
+ */
3005
3133
  set(properties: { [key: string]: any }): void;
3006
- block_signal_handler(id: number): any;
3007
- unblock_signal_handler(id: number): any;
3008
- stop_emission_by_name(detailedName: string): any;
3134
+ /**
3135
+ * Blocks a handler of an instance so it will not be called during any signal emissions
3136
+ * @param id Handler ID of the handler to be blocked
3137
+ */
3138
+ block_signal_handler(id: number): void;
3139
+ /**
3140
+ * Unblocks a handler so it will be called again during any signal emissions
3141
+ * @param id Handler ID of the handler to be unblocked
3142
+ */
3143
+ unblock_signal_handler(id: number): void;
3144
+ /**
3145
+ * Stops a signal's emission by the given signal name. This will prevent the default handler and any subsequent signal handlers from being invoked.
3146
+ * @param detailedName Name of the signal to stop emission of
3147
+ */
3148
+ stop_emission_by_name(detailedName: string): void;
3009
3149
  }
3010
3150
 
3011
3151
  namespace MinerOnline {
3012
- // Signal callback interfaces
3013
-
3014
- interface Connected {
3015
- (type: unknown): boolean;
3016
- }
3017
-
3018
- interface Disconnected {
3019
- (): void;
3152
+ // Signal signatures
3153
+ interface SignalSignatures extends Miner.SignalSignatures {
3154
+ connected: (arg0: unknown) => boolean | void;
3155
+ disconnected: () => void;
3156
+ 'notify::progress': (pspec: GObject.ParamSpec) => void;
3157
+ 'notify::remaining-time': (pspec: GObject.ParamSpec) => void;
3158
+ 'notify::status': (pspec: GObject.ParamSpec) => void;
3020
3159
  }
3021
3160
 
3022
3161
  // Constructor properties interface
@@ -3030,6 +3169,15 @@ export namespace TrackerMiner {
3030
3169
  abstract class MinerOnline extends Miner implements Gio.Initable {
3031
3170
  static $gtype: GObject.GType<MinerOnline>;
3032
3171
 
3172
+ /**
3173
+ * Compile-time signal type information.
3174
+ *
3175
+ * This instance property is generated only for TypeScript type checking.
3176
+ * It is not defined at runtime and should not be accessed in JS code.
3177
+ * @internal
3178
+ */
3179
+ $signals: MinerOnline.SignalSignatures;
3180
+
3033
3181
  // Constructors
3034
3182
 
3035
3183
  constructor(properties?: Partial<MinerOnline.ConstructorProps>, ...args: any[]);
@@ -3038,15 +3186,21 @@ export namespace TrackerMiner {
3038
3186
 
3039
3187
  // Signals
3040
3188
 
3041
- connect(id: string, callback: (...args: any[]) => any): number;
3042
- connect_after(id: string, callback: (...args: any[]) => any): number;
3043
- emit(id: string, ...args: any[]): void;
3044
- connect(signal: 'connected', callback: (_source: this, type: unknown) => boolean): number;
3045
- connect_after(signal: 'connected', callback: (_source: this, type: unknown) => boolean): number;
3046
- emit(signal: 'connected', type: unknown): void;
3047
- connect(signal: 'disconnected', callback: (_source: this) => void): number;
3048
- connect_after(signal: 'disconnected', callback: (_source: this) => void): number;
3049
- emit(signal: 'disconnected'): void;
3189
+ connect<K extends keyof MinerOnline.SignalSignatures>(
3190
+ signal: K,
3191
+ callback: GObject.SignalCallback<this, MinerOnline.SignalSignatures[K]>,
3192
+ ): number;
3193
+ connect(signal: string, callback: (...args: any[]) => any): number;
3194
+ connect_after<K extends keyof MinerOnline.SignalSignatures>(
3195
+ signal: K,
3196
+ callback: GObject.SignalCallback<this, MinerOnline.SignalSignatures[K]>,
3197
+ ): number;
3198
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
3199
+ emit<K extends keyof MinerOnline.SignalSignatures>(
3200
+ signal: K,
3201
+ ...args: GObject.GjsParameters<MinerOnline.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
3202
+ ): void;
3203
+ emit(signal: string, ...args: any[]): void;
3050
3204
 
3051
3205
  // Virtual methods
3052
3206
 
@@ -3081,7 +3235,7 @@ export namespace TrackerMiner {
3081
3235
  * If the object is not initialized, or initialization returns with an
3082
3236
  * error, then all operations on the object except g_object_ref() and
3083
3237
  * g_object_unref() are considered to be invalid, and have undefined
3084
- * behaviour. See the [introduction][ginitable] for more details.
3238
+ * behaviour. See the [description][iface`Gio`.Initable#description] for more details.
3085
3239
  *
3086
3240
  * Callers should not assume that a class which implements #GInitable can be
3087
3241
  * initialized multiple times, unless the class explicitly documents itself as
@@ -3124,7 +3278,7 @@ export namespace TrackerMiner {
3124
3278
  * If the object is not initialized, or initialization returns with an
3125
3279
  * error, then all operations on the object except g_object_ref() and
3126
3280
  * g_object_unref() are considered to be invalid, and have undefined
3127
- * behaviour. See the [introduction][ginitable] for more details.
3281
+ * behaviour. See the [description][iface`Gio`.Initable#description] for more details.
3128
3282
  *
3129
3283
  * Callers should not assume that a class which implements #GInitable can be
3130
3284
  * initialized multiple times, unless the class explicitly documents itself as
@@ -3264,7 +3418,21 @@ export namespace TrackerMiner {
3264
3418
  * @returns the data if found, or %NULL if no such data exists.
3265
3419
  */
3266
3420
  get_data(key: string): any | null;
3267
- get_property(property_name: string): any;
3421
+ /**
3422
+ * Gets a property of an object.
3423
+ *
3424
+ * The value can be:
3425
+ * - an empty GObject.Value initialized by G_VALUE_INIT, which will be automatically initialized with the expected type of the property (since GLib 2.60)
3426
+ * - a GObject.Value initialized with the expected type of the property
3427
+ * - a GObject.Value initialized with a type to which the expected type of the property can be transformed
3428
+ *
3429
+ * In general, a copy is made of the property contents and the caller is responsible for freeing the memory by calling GObject.Value.unset.
3430
+ *
3431
+ * Note that GObject.Object.get_property is really intended for language bindings, GObject.Object.get is much more convenient for C programming.
3432
+ * @param property_name The name of the property to get
3433
+ * @param value Return location for the property value. Can be an empty GObject.Value initialized by G_VALUE_INIT (auto-initialized with expected type since GLib 2.60), a GObject.Value initialized with the expected property type, or a GObject.Value initialized with a transformable type
3434
+ */
3435
+ get_property(property_name: string, value: GObject.Value | any): any;
3268
3436
  /**
3269
3437
  * This function gets back user data pointers stored via
3270
3438
  * g_object_set_qdata().
@@ -3392,7 +3560,12 @@ export namespace TrackerMiner {
3392
3560
  * @param data data to associate with that key
3393
3561
  */
3394
3562
  set_data(key: string, data?: any | null): void;
3395
- set_property(property_name: string, value: any): void;
3563
+ /**
3564
+ * Sets a property on an object.
3565
+ * @param property_name The name of the property to set
3566
+ * @param value The value to set the property to
3567
+ */
3568
+ set_property(property_name: string, value: GObject.Value | any): void;
3396
3569
  /**
3397
3570
  * Remove a specified datum from the object's data associations,
3398
3571
  * without invoking the association's destroy handler.
@@ -3542,14 +3715,41 @@ export namespace TrackerMiner {
3542
3715
  * @param pspec
3543
3716
  */
3544
3717
  vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
3718
+ /**
3719
+ * Disconnects a handler from an instance so it will not be called during any future or currently ongoing emissions of the signal it has been connected to.
3720
+ * @param id Handler ID of the handler to be disconnected
3721
+ */
3545
3722
  disconnect(id: number): void;
3723
+ /**
3724
+ * Sets multiple properties of an object at once. The properties argument should be a dictionary mapping property names to values.
3725
+ * @param properties Object containing the properties to set
3726
+ */
3546
3727
  set(properties: { [key: string]: any }): void;
3547
- block_signal_handler(id: number): any;
3548
- unblock_signal_handler(id: number): any;
3549
- stop_emission_by_name(detailedName: string): any;
3728
+ /**
3729
+ * Blocks a handler of an instance so it will not be called during any signal emissions
3730
+ * @param id Handler ID of the handler to be blocked
3731
+ */
3732
+ block_signal_handler(id: number): void;
3733
+ /**
3734
+ * Unblocks a handler so it will be called again during any signal emissions
3735
+ * @param id Handler ID of the handler to be unblocked
3736
+ */
3737
+ unblock_signal_handler(id: number): void;
3738
+ /**
3739
+ * Stops a signal's emission by the given signal name. This will prevent the default handler and any subsequent signal handlers from being invoked.
3740
+ * @param detailedName Name of the signal to stop emission of
3741
+ */
3742
+ stop_emission_by_name(detailedName: string): void;
3550
3743
  }
3551
3744
 
3552
3745
  namespace MinerProxy {
3746
+ // Signal signatures
3747
+ interface SignalSignatures extends GObject.Object.SignalSignatures {
3748
+ 'notify::dbus-connection': (pspec: GObject.ParamSpec) => void;
3749
+ 'notify::dbus-path': (pspec: GObject.ParamSpec) => void;
3750
+ 'notify::miner': (pspec: GObject.ParamSpec) => void;
3751
+ }
3752
+
3553
3753
  // Constructor properties interface
3554
3754
 
3555
3755
  interface ConstructorProps extends GObject.Object.ConstructorProps, Gio.Initable.ConstructorProps {
@@ -3572,6 +3772,15 @@ export namespace TrackerMiner {
3572
3772
  get dbusPath(): string;
3573
3773
  get miner(): Miner;
3574
3774
 
3775
+ /**
3776
+ * Compile-time signal type information.
3777
+ *
3778
+ * This instance property is generated only for TypeScript type checking.
3779
+ * It is not defined at runtime and should not be accessed in JS code.
3780
+ * @internal
3781
+ */
3782
+ $signals: MinerProxy.SignalSignatures;
3783
+
3575
3784
  // Constructors
3576
3785
 
3577
3786
  constructor(properties?: Partial<MinerProxy.ConstructorProps>, ...args: any[]);
@@ -3585,6 +3794,24 @@ export namespace TrackerMiner {
3585
3794
  cancellable?: Gio.Cancellable | null,
3586
3795
  ): MinerProxy;
3587
3796
 
3797
+ // Signals
3798
+
3799
+ connect<K extends keyof MinerProxy.SignalSignatures>(
3800
+ signal: K,
3801
+ callback: GObject.SignalCallback<this, MinerProxy.SignalSignatures[K]>,
3802
+ ): number;
3803
+ connect(signal: string, callback: (...args: any[]) => any): number;
3804
+ connect_after<K extends keyof MinerProxy.SignalSignatures>(
3805
+ signal: K,
3806
+ callback: GObject.SignalCallback<this, MinerProxy.SignalSignatures[K]>,
3807
+ ): number;
3808
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
3809
+ emit<K extends keyof MinerProxy.SignalSignatures>(
3810
+ signal: K,
3811
+ ...args: GObject.GjsParameters<MinerProxy.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
3812
+ ): void;
3813
+ emit(signal: string, ...args: any[]): void;
3814
+
3588
3815
  // Inherited methods
3589
3816
  /**
3590
3817
  * Initializes the object implementing the interface.
@@ -3605,7 +3832,7 @@ export namespace TrackerMiner {
3605
3832
  * If the object is not initialized, or initialization returns with an
3606
3833
  * error, then all operations on the object except g_object_ref() and
3607
3834
  * g_object_unref() are considered to be invalid, and have undefined
3608
- * behaviour. See the [introduction][ginitable] for more details.
3835
+ * behaviour. See the [description][iface`Gio`.Initable#description] for more details.
3609
3836
  *
3610
3837
  * Callers should not assume that a class which implements #GInitable can be
3611
3838
  * initialized multiple times, unless the class explicitly documents itself as
@@ -3648,7 +3875,7 @@ export namespace TrackerMiner {
3648
3875
  * If the object is not initialized, or initialization returns with an
3649
3876
  * error, then all operations on the object except g_object_ref() and
3650
3877
  * g_object_unref() are considered to be invalid, and have undefined
3651
- * behaviour. See the [introduction][ginitable] for more details.
3878
+ * behaviour. See the [description][iface`Gio`.Initable#description] for more details.
3652
3879
  *
3653
3880
  * Callers should not assume that a class which implements #GInitable can be
3654
3881
  * initialized multiple times, unless the class explicitly documents itself as
@@ -3788,7 +4015,21 @@ export namespace TrackerMiner {
3788
4015
  * @returns the data if found, or %NULL if no such data exists.
3789
4016
  */
3790
4017
  get_data(key: string): any | null;
3791
- get_property(property_name: string): any;
4018
+ /**
4019
+ * Gets a property of an object.
4020
+ *
4021
+ * The value can be:
4022
+ * - an empty GObject.Value initialized by G_VALUE_INIT, which will be automatically initialized with the expected type of the property (since GLib 2.60)
4023
+ * - a GObject.Value initialized with the expected type of the property
4024
+ * - a GObject.Value initialized with a type to which the expected type of the property can be transformed
4025
+ *
4026
+ * In general, a copy is made of the property contents and the caller is responsible for freeing the memory by calling GObject.Value.unset.
4027
+ *
4028
+ * Note that GObject.Object.get_property is really intended for language bindings, GObject.Object.get is much more convenient for C programming.
4029
+ * @param property_name The name of the property to get
4030
+ * @param value Return location for the property value. Can be an empty GObject.Value initialized by G_VALUE_INIT (auto-initialized with expected type since GLib 2.60), a GObject.Value initialized with the expected property type, or a GObject.Value initialized with a transformable type
4031
+ */
4032
+ get_property(property_name: string, value: GObject.Value | any): any;
3792
4033
  /**
3793
4034
  * This function gets back user data pointers stored via
3794
4035
  * g_object_set_qdata().
@@ -3916,7 +4157,12 @@ export namespace TrackerMiner {
3916
4157
  * @param data data to associate with that key
3917
4158
  */
3918
4159
  set_data(key: string, data?: any | null): void;
3919
- set_property(property_name: string, value: any): void;
4160
+ /**
4161
+ * Sets a property on an object.
4162
+ * @param property_name The name of the property to set
4163
+ * @param value The value to set the property to
4164
+ */
4165
+ set_property(property_name: string, value: GObject.Value | any): void;
3920
4166
  /**
3921
4167
  * Remove a specified datum from the object's data associations,
3922
4168
  * without invoking the association's destroy handler.
@@ -4066,11 +4312,31 @@ export namespace TrackerMiner {
4066
4312
  * @param pspec
4067
4313
  */
4068
4314
  vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
4315
+ /**
4316
+ * Disconnects a handler from an instance so it will not be called during any future or currently ongoing emissions of the signal it has been connected to.
4317
+ * @param id Handler ID of the handler to be disconnected
4318
+ */
4069
4319
  disconnect(id: number): void;
4320
+ /**
4321
+ * Sets multiple properties of an object at once. The properties argument should be a dictionary mapping property names to values.
4322
+ * @param properties Object containing the properties to set
4323
+ */
4070
4324
  set(properties: { [key: string]: any }): void;
4071
- block_signal_handler(id: number): any;
4072
- unblock_signal_handler(id: number): any;
4073
- stop_emission_by_name(detailedName: string): any;
4325
+ /**
4326
+ * Blocks a handler of an instance so it will not be called during any signal emissions
4327
+ * @param id Handler ID of the handler to be blocked
4328
+ */
4329
+ block_signal_handler(id: number): void;
4330
+ /**
4331
+ * Unblocks a handler so it will be called again during any signal emissions
4332
+ * @param id Handler ID of the handler to be unblocked
4333
+ */
4334
+ unblock_signal_handler(id: number): void;
4335
+ /**
4336
+ * Stops a signal's emission by the given signal name. This will prevent the default handler and any subsequent signal handlers from being invoked.
4337
+ * @param detailedName Name of the signal to stop emission of
4338
+ */
4339
+ stop_emission_by_name(detailedName: string): void;
4074
4340
  }
4075
4341
 
4076
4342
  type DataProviderIface = typeof DataProvider;