@girs/cloudproviders-0.3 4.2.0 → 4.4.0
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 +8 -8
- package/cloudproviders-0.3.d.ts +208 -29
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -5,25 +5,25 @@
|
|
|
5
5
|

|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
GJS TypeScript type definitions for CloudProviders-0.3 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.
|
|
8
|
+
GJS TypeScript type definitions for CloudProviders-0.3 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.4.0.
|
|
9
9
|
|
|
10
10
|
## Install
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
Install the type definitions with npm:
|
|
13
13
|
```bash
|
|
14
14
|
npm install @girs/cloudproviders-0.3
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
## Usage
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
Import it like any other module:
|
|
20
20
|
```ts
|
|
21
21
|
import CloudProviders from '@girs/cloudproviders-0.3';
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
### Ambient Modules
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
[Ambient modules](https://github.com/gjsify/ts-for-gir/tree/main/packages/cli#ambient-modules) let you write the same import you would in plain JavaScript.
|
|
27
27
|
For this you need to include `@girs/cloudproviders-0.3` or `@girs/cloudproviders-0.3/ambient` in your `tsconfig` or entry point Typescript file:
|
|
28
28
|
|
|
29
29
|
`index.ts`:
|
|
@@ -42,7 +42,7 @@ import '@girs/cloudproviders-0.3'
|
|
|
42
42
|
}
|
|
43
43
|
```
|
|
44
44
|
|
|
45
|
-
|
|
45
|
+
The ambient module now resolves with types:
|
|
46
46
|
|
|
47
47
|
```ts
|
|
48
48
|
import CloudProviders from 'gi://CloudProviders?version=0.3';
|
|
@@ -50,7 +50,7 @@ import CloudProviders from 'gi://CloudProviders?version=0.3';
|
|
|
50
50
|
|
|
51
51
|
### Global import
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
GJS's global `imports.gi` works too, with types.
|
|
54
54
|
For this you need to include `@girs/cloudproviders-0.3` or `@girs/cloudproviders-0.3/import` in your `tsconfig` or entry point Typescript file:
|
|
55
55
|
|
|
56
56
|
`index.ts`:
|
|
@@ -69,7 +69,7 @@ import '@girs/cloudproviders-0.3'
|
|
|
69
69
|
}
|
|
70
70
|
```
|
|
71
71
|
|
|
72
|
-
|
|
72
|
+
That form carries types as well:
|
|
73
73
|
|
|
74
74
|
```ts
|
|
75
75
|
const CloudProviders = imports.gi.CloudProviders;
|
|
@@ -77,7 +77,7 @@ const CloudProviders = imports.gi.CloudProviders;
|
|
|
77
77
|
|
|
78
78
|
### Bundle
|
|
79
79
|
|
|
80
|
-
|
|
80
|
+
Most projects want a bundler. [esbuild](https://esbuild.github.io/) is the smallest thing that works; the [examples directory](https://github.com/gjsify/ts-for-gir/tree/main/examples) has setups for several others.
|
|
81
81
|
|
|
82
82
|
## Other packages
|
|
83
83
|
|
package/cloudproviders-0.3.d.ts
CHANGED
|
@@ -94,10 +94,12 @@ export namespace CloudProviders {
|
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
/**
|
|
97
|
-
*
|
|
97
|
+
* Base object for representing a single account for clients.
|
|
98
|
+
*
|
|
99
|
+
* CloudProvidersAccount is the basic object used to construct the integrator UI
|
|
98
100
|
* and actions that a provider will present to the user, from the client side.
|
|
99
101
|
* Integrators of the cloud providers can use this object to poll the
|
|
100
|
-
* {@link
|
|
102
|
+
* {@link Provider} menus, status and actions.
|
|
101
103
|
* @gir-type Class
|
|
102
104
|
*/
|
|
103
105
|
class Account extends GObject.Object {
|
|
@@ -105,49 +107,58 @@ export namespace CloudProviders {
|
|
|
105
107
|
|
|
106
108
|
// Properties
|
|
107
109
|
/**
|
|
110
|
+
* The action group associated with the account and menu model.
|
|
108
111
|
* @read-only
|
|
109
112
|
*/
|
|
110
113
|
get action_group(): Gio.ActionGroup;
|
|
111
114
|
|
|
112
115
|
/**
|
|
116
|
+
* The action group associated with the account and menu model.
|
|
113
117
|
* @read-only
|
|
114
118
|
*/
|
|
115
119
|
get actionGroup(): Gio.ActionGroup;
|
|
116
120
|
|
|
117
121
|
/**
|
|
122
|
+
* The icon representing the account.
|
|
118
123
|
* @read-only
|
|
119
124
|
*/
|
|
120
125
|
get icon(): Gio.Icon;
|
|
121
126
|
|
|
122
127
|
/**
|
|
128
|
+
* The menu model associated with the account.
|
|
123
129
|
* @read-only
|
|
124
130
|
*/
|
|
125
131
|
get menu_model(): Gio.MenuModel;
|
|
126
132
|
|
|
127
133
|
/**
|
|
134
|
+
* The menu model associated with the account.
|
|
128
135
|
* @read-only
|
|
129
136
|
*/
|
|
130
137
|
get menuModel(): Gio.MenuModel;
|
|
131
138
|
|
|
132
139
|
/**
|
|
140
|
+
* The name of the account.
|
|
133
141
|
* @read-only
|
|
134
142
|
* @default null
|
|
135
143
|
*/
|
|
136
144
|
get name(): string;
|
|
137
145
|
|
|
138
146
|
/**
|
|
147
|
+
* The path of the directory where files are located.
|
|
139
148
|
* @read-only
|
|
140
149
|
* @default null
|
|
141
150
|
*/
|
|
142
151
|
get path(): string;
|
|
143
152
|
|
|
144
153
|
/**
|
|
154
|
+
* The details of the account status.
|
|
145
155
|
* @read-only
|
|
146
156
|
* @default null
|
|
147
157
|
*/
|
|
148
158
|
get status_details(): string;
|
|
149
159
|
|
|
150
160
|
/**
|
|
161
|
+
* The details of the account status.
|
|
151
162
|
* @read-only
|
|
152
163
|
* @default null
|
|
153
164
|
*/
|
|
@@ -185,7 +196,7 @@ export namespace CloudProviders {
|
|
|
185
196
|
// Methods
|
|
186
197
|
/**
|
|
187
198
|
* Get the action group exported in addition to the {@link Gio.MenuModel} from
|
|
188
|
-
*
|
|
199
|
+
* {@link Account.get_menu_model}.
|
|
189
200
|
* @returns The action group exported by the cloud provider account
|
|
190
201
|
*/
|
|
191
202
|
get_action_group(): Gio.ActionGroup;
|
|
@@ -259,63 +270,86 @@ export namespace CloudProviders {
|
|
|
259
270
|
}
|
|
260
271
|
|
|
261
272
|
/**
|
|
273
|
+
* Base object for representing a cloud providers account
|
|
262
274
|
* @gir-type Class
|
|
263
275
|
*/
|
|
264
276
|
class AccountExporter extends GObject.Object {
|
|
265
277
|
static $gtype: GObject.GType<AccountExporter>;
|
|
266
278
|
|
|
267
279
|
// Properties
|
|
280
|
+
/**
|
|
281
|
+
* The action group associated with the account and menu model.
|
|
282
|
+
*/
|
|
268
283
|
get action_group(): Gio.ActionGroup;
|
|
269
284
|
set action_group(val: Gio.ActionGroup);
|
|
270
285
|
|
|
286
|
+
/**
|
|
287
|
+
* The action group associated with the account and menu model.
|
|
288
|
+
*/
|
|
271
289
|
get actionGroup(): Gio.ActionGroup;
|
|
272
290
|
set actionGroup(val: Gio.ActionGroup);
|
|
273
291
|
|
|
274
292
|
/**
|
|
293
|
+
* The bus name of the account.
|
|
275
294
|
* @construct-only
|
|
276
295
|
* @default null
|
|
277
296
|
*/
|
|
278
297
|
get bus_name(): string;
|
|
279
298
|
|
|
280
299
|
/**
|
|
300
|
+
* The bus name of the account.
|
|
281
301
|
* @construct-only
|
|
282
302
|
* @default null
|
|
283
303
|
*/
|
|
284
304
|
get busName(): string;
|
|
285
305
|
|
|
306
|
+
/**
|
|
307
|
+
* The icon representing the account.
|
|
308
|
+
*/
|
|
286
309
|
get icon(): Gio.Icon;
|
|
287
310
|
set icon(val: Gio.Icon);
|
|
288
311
|
|
|
312
|
+
/**
|
|
313
|
+
* The menu model associated with the account.
|
|
314
|
+
*/
|
|
289
315
|
get menu_model(): Gio.MenuModel;
|
|
290
316
|
set menu_model(val: Gio.MenuModel);
|
|
291
317
|
|
|
318
|
+
/**
|
|
319
|
+
* The menu model associated with the account.
|
|
320
|
+
*/
|
|
292
321
|
get menuModel(): Gio.MenuModel;
|
|
293
322
|
set menuModel(val: Gio.MenuModel);
|
|
294
323
|
|
|
295
324
|
/**
|
|
325
|
+
* The name of the account.
|
|
296
326
|
* @default null
|
|
297
327
|
*/
|
|
298
328
|
get name(): string;
|
|
299
329
|
set name(val: string);
|
|
300
330
|
|
|
301
331
|
/**
|
|
332
|
+
* The path of the directory where files are located.
|
|
302
333
|
* @default null
|
|
303
334
|
*/
|
|
304
335
|
get path(): string;
|
|
305
336
|
set path(val: string);
|
|
306
337
|
|
|
307
338
|
/**
|
|
339
|
+
* The provider associated with the account.
|
|
308
340
|
* @construct-only
|
|
309
341
|
*/
|
|
310
342
|
get provider(): ProviderExporter;
|
|
311
343
|
|
|
312
344
|
/**
|
|
345
|
+
* The details of the account status.
|
|
313
346
|
* @default null
|
|
314
347
|
*/
|
|
315
348
|
get status_details(): string;
|
|
316
349
|
set status_details(val: string);
|
|
317
350
|
|
|
318
351
|
/**
|
|
352
|
+
* The details of the account status.
|
|
319
353
|
* @default null
|
|
320
354
|
*/
|
|
321
355
|
get statusDetails(): string;
|
|
@@ -352,10 +386,9 @@ export namespace CloudProviders {
|
|
|
352
386
|
|
|
353
387
|
// Methods
|
|
354
388
|
/**
|
|
355
|
-
* In order for a menu
|
|
356
|
-
*
|
|
357
|
-
*
|
|
358
|
-
* @param action_group The GActionGroup to be used by the menu exported by cloud_providers_account_exporter_export_menu
|
|
389
|
+
* In order for a menu to receive events that will eventually call your callbacks, it needs the
|
|
390
|
+
* corresponding {@link Gio.ActionGroup}. Use this function to export it.
|
|
391
|
+
* @param action_group The action group to be used to render the menu
|
|
359
392
|
*/
|
|
360
393
|
set_action_group(action_group: Gio.ActionGroup): void;
|
|
361
394
|
|
|
@@ -366,7 +399,7 @@ export namespace CloudProviders {
|
|
|
366
399
|
|
|
367
400
|
/**
|
|
368
401
|
* One of the benefits of the integration is to display a menu with available
|
|
369
|
-
* options for an account. Use this function to export a
|
|
402
|
+
* options for an account. Use this function to export a {@link Gio.MenuModel} menu to be
|
|
370
403
|
* displayed by the chosen integration by the desktop environment or application.
|
|
371
404
|
* @param menu_model The menu model to export
|
|
372
405
|
*/
|
|
@@ -409,10 +442,11 @@ export namespace CloudProviders {
|
|
|
409
442
|
}
|
|
410
443
|
|
|
411
444
|
/**
|
|
412
|
-
*
|
|
413
|
-
*
|
|
414
|
-
*
|
|
415
|
-
*
|
|
445
|
+
* Singleton for tracking all providers.
|
|
446
|
+
*
|
|
447
|
+
* This is a singleton to track all the changes in all providers.
|
|
448
|
+
* Using this class, you can implement integration for all of them at once and represent them in the
|
|
449
|
+
* UI, track new providers added or removed and their status.
|
|
416
450
|
* @gir-type Class
|
|
417
451
|
*/
|
|
418
452
|
class Collector extends GObject.Object {
|
|
@@ -453,7 +487,8 @@ export namespace CloudProviders {
|
|
|
453
487
|
|
|
454
488
|
// Methods
|
|
455
489
|
/**
|
|
456
|
-
*
|
|
490
|
+
* Get the list of currently managed providers.
|
|
491
|
+
* @returns A list of {@link Provider} objects.
|
|
457
492
|
*/
|
|
458
493
|
get_providers(): Provider[];
|
|
459
494
|
|
|
@@ -679,6 +714,7 @@ export namespace CloudProviders {
|
|
|
679
714
|
* any interface methods.
|
|
680
715
|
* @param io_priority the [I/O priority](iface.AsyncResult.html#io-priority) of the operation
|
|
681
716
|
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
717
|
+
* @since 2.22
|
|
682
718
|
*/
|
|
683
719
|
init_async(io_priority: number, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>;
|
|
684
720
|
|
|
@@ -722,6 +758,7 @@ export namespace CloudProviders {
|
|
|
722
758
|
* @param io_priority the [I/O priority](iface.AsyncResult.html#io-priority) of the operation
|
|
723
759
|
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
724
760
|
* @param callback a {@link Gio.AsyncReadyCallback} to call when the request is satisfied
|
|
761
|
+
* @since 2.22
|
|
725
762
|
*/
|
|
726
763
|
init_async(io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void;
|
|
727
764
|
|
|
@@ -765,6 +802,7 @@ export namespace CloudProviders {
|
|
|
765
802
|
* @param io_priority the [I/O priority](iface.AsyncResult.html#io-priority) of the operation
|
|
766
803
|
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
767
804
|
* @param callback a {@link Gio.AsyncReadyCallback} to call when the request is satisfied
|
|
805
|
+
* @since 2.22
|
|
768
806
|
*/
|
|
769
807
|
init_async(io_priority: number, cancellable: Gio.Cancellable | null, callback?: Gio.AsyncReadyCallback<this> | null): globalThis.Promise<boolean> | void;
|
|
770
808
|
|
|
@@ -773,6 +811,7 @@ export namespace CloudProviders {
|
|
|
773
811
|
* See `g_async_initable_init_async()`.
|
|
774
812
|
* @param res a {@link Gio.AsyncResult}.
|
|
775
813
|
* @returns `true` if successful. If an error has occurred, this function will return `false` and set `error` appropriately if present.
|
|
814
|
+
* @since 2.22
|
|
776
815
|
*/
|
|
777
816
|
init_finish(res: Gio.AsyncResult): boolean;
|
|
778
817
|
|
|
@@ -781,6 +820,7 @@ export namespace CloudProviders {
|
|
|
781
820
|
* calls, returning the created object or `null` on error.
|
|
782
821
|
* @param res the {@link Gio.AsyncResult} from the callback
|
|
783
822
|
* @returns a newly created {@link GObject.Object}, or `null` on error. Free with `g_object_unref()`.
|
|
823
|
+
* @since 2.22
|
|
784
824
|
*/
|
|
785
825
|
new_finish(res: Gio.AsyncResult): DbusAccountProxy;
|
|
786
826
|
|
|
@@ -830,6 +870,7 @@ export namespace CloudProviders {
|
|
|
830
870
|
* @param io_priority the [I/O priority](iface.AsyncResult.html#io-priority) of the operation
|
|
831
871
|
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
832
872
|
* @param callback a {@link Gio.AsyncReadyCallback} to call when the request is satisfied
|
|
873
|
+
* @since 2.22
|
|
833
874
|
* @virtual
|
|
834
875
|
*/
|
|
835
876
|
vfunc_init_async(io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void;
|
|
@@ -838,6 +879,7 @@ export namespace CloudProviders {
|
|
|
838
879
|
* Finishes asynchronous initialization and returns the result.
|
|
839
880
|
* See `g_async_initable_init_async()`.
|
|
840
881
|
* @param res a {@link Gio.AsyncResult}.
|
|
882
|
+
* @since 2.22
|
|
841
883
|
* @virtual
|
|
842
884
|
*/
|
|
843
885
|
vfunc_init_finish(res: Gio.AsyncResult): boolean;
|
|
@@ -845,26 +887,35 @@ export namespace CloudProviders {
|
|
|
845
887
|
/**
|
|
846
888
|
* Gets the {@link Gio.DBusObject} that `interface_` belongs to, if any.
|
|
847
889
|
* @returns A {@link Gio.DBusObject} or `null`. The returned reference should be freed with `g_object_unref()`.
|
|
890
|
+
* @since 2.32
|
|
848
891
|
*/
|
|
849
892
|
get_object(): Gio.DBusObject | null;
|
|
850
893
|
|
|
851
894
|
/**
|
|
852
895
|
* Gets D-Bus introspection information for the D-Bus interface
|
|
853
896
|
* implemented by `interface_`.
|
|
897
|
+
*
|
|
898
|
+
* This can return `null` if no {@link Gio.DBusInterfaceInfo} was provided during
|
|
899
|
+
* construction of `interface_` and is also not made available otherwise.
|
|
900
|
+
* For example, {@link Gio.DBusProxy} implements {@link Gio.DBusInterface} but allows for a `null`
|
|
901
|
+
* {@link Gio.DBusInterfaceInfo}.
|
|
854
902
|
* @returns A {@link Gio.DBusInterfaceInfo}. Do not free.
|
|
903
|
+
* @since 2.30
|
|
855
904
|
*/
|
|
856
|
-
get_info(): Gio.DBusInterfaceInfo;
|
|
905
|
+
get_info(): Gio.DBusInterfaceInfo | null;
|
|
857
906
|
|
|
858
907
|
/**
|
|
859
908
|
* Sets the {@link Gio.DBusObject} for `interface_` to `object`.
|
|
860
909
|
*
|
|
861
910
|
* Note that `interface_` will hold a weak reference to `object`.
|
|
862
911
|
* @param object A {@link Gio.DBusObject} or `null`.
|
|
912
|
+
* @since 2.30
|
|
863
913
|
*/
|
|
864
914
|
set_object(object: Gio.DBusObject | null): void;
|
|
865
915
|
|
|
866
916
|
/**
|
|
867
917
|
* Gets the {@link Gio.DBusObject} that `interface_` belongs to, if any.
|
|
918
|
+
* @since 2.32
|
|
868
919
|
* @virtual
|
|
869
920
|
*/
|
|
870
921
|
vfunc_dup_object(): Gio.DBusObject | null;
|
|
@@ -872,15 +923,22 @@ export namespace CloudProviders {
|
|
|
872
923
|
/**
|
|
873
924
|
* Gets D-Bus introspection information for the D-Bus interface
|
|
874
925
|
* implemented by `interface_`.
|
|
926
|
+
*
|
|
927
|
+
* This can return `null` if no {@link Gio.DBusInterfaceInfo} was provided during
|
|
928
|
+
* construction of `interface_` and is also not made available otherwise.
|
|
929
|
+
* For example, {@link Gio.DBusProxy} implements {@link Gio.DBusInterface} but allows for a `null`
|
|
930
|
+
* {@link Gio.DBusInterfaceInfo}.
|
|
931
|
+
* @since 2.30
|
|
875
932
|
* @virtual
|
|
876
933
|
*/
|
|
877
|
-
vfunc_get_info(): Gio.DBusInterfaceInfo;
|
|
934
|
+
vfunc_get_info(): Gio.DBusInterfaceInfo | null;
|
|
878
935
|
|
|
879
936
|
/**
|
|
880
937
|
* Sets the {@link Gio.DBusObject} for `interface_` to `object`.
|
|
881
938
|
*
|
|
882
939
|
* Note that `interface_` will hold a weak reference to `object`.
|
|
883
940
|
* @param object A {@link Gio.DBusObject} or `null`.
|
|
941
|
+
* @since 2.30
|
|
884
942
|
* @virtual
|
|
885
943
|
*/
|
|
886
944
|
vfunc_set_object(object: Gio.DBusObject | null): void;
|
|
@@ -926,6 +984,7 @@ export namespace CloudProviders {
|
|
|
926
984
|
* instance.
|
|
927
985
|
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
928
986
|
* @returns `true` if successful. If an error has occurred, this function will return `false` and set `error` appropriately if present.
|
|
987
|
+
* @since 2.22
|
|
929
988
|
*/
|
|
930
989
|
init(cancellable: Gio.Cancellable | null): boolean;
|
|
931
990
|
|
|
@@ -969,6 +1028,7 @@ export namespace CloudProviders {
|
|
|
969
1028
|
* on the result of `g_object_new()`, regardless of whether it is in fact a new
|
|
970
1029
|
* instance.
|
|
971
1030
|
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
1031
|
+
* @since 2.22
|
|
972
1032
|
* @virtual
|
|
973
1033
|
*/
|
|
974
1034
|
vfunc_init(cancellable: Gio.Cancellable | null): boolean;
|
|
@@ -1089,26 +1149,41 @@ export namespace CloudProviders {
|
|
|
1089
1149
|
/**
|
|
1090
1150
|
* Gets the {@link Gio.DBusObject} that `interface_` belongs to, if any.
|
|
1091
1151
|
* @returns A {@link Gio.DBusObject} or `null`. The returned reference should be freed with `g_object_unref()`.
|
|
1152
|
+
* @since 2.32
|
|
1092
1153
|
*/
|
|
1093
1154
|
get_object(): Gio.DBusObject | null;
|
|
1094
1155
|
|
|
1095
1156
|
/**
|
|
1096
1157
|
* Gets D-Bus introspection information for the D-Bus interface
|
|
1097
1158
|
* implemented by `interface_`.
|
|
1159
|
+
*
|
|
1160
|
+
* This can return `null` if no {@link Gio.DBusInterfaceInfo} was provided during
|
|
1161
|
+
* construction of `interface_` and is also not made available otherwise.
|
|
1162
|
+
* For example, {@link Gio.DBusProxy} implements {@link Gio.DBusInterface} but allows for a `null`
|
|
1163
|
+
* {@link Gio.DBusInterfaceInfo}.
|
|
1098
1164
|
* @returns A {@link Gio.DBusInterfaceInfo}. Do not free.
|
|
1165
|
+
* @since 2.30
|
|
1099
1166
|
*/
|
|
1100
|
-
get_info(): Gio.DBusInterfaceInfo;
|
|
1167
|
+
get_info(): Gio.DBusInterfaceInfo | null;
|
|
1168
|
+
|
|
1169
|
+
/**
|
|
1170
|
+
* @param args
|
|
1171
|
+
*/
|
|
1172
|
+
// Conflicted with Gio.DBusInterfaceSkeleton.get_info
|
|
1173
|
+
get_info(...args: never[]): any;
|
|
1101
1174
|
|
|
1102
1175
|
/**
|
|
1103
1176
|
* Sets the {@link Gio.DBusObject} for `interface_` to `object`.
|
|
1104
1177
|
*
|
|
1105
1178
|
* Note that `interface_` will hold a weak reference to `object`.
|
|
1106
1179
|
* @param object A {@link Gio.DBusObject} or `null`.
|
|
1180
|
+
* @since 2.30
|
|
1107
1181
|
*/
|
|
1108
1182
|
set_object(object: Gio.DBusObject | null): void;
|
|
1109
1183
|
|
|
1110
1184
|
/**
|
|
1111
1185
|
* Gets the {@link Gio.DBusObject} that `interface_` belongs to, if any.
|
|
1186
|
+
* @since 2.32
|
|
1112
1187
|
* @virtual
|
|
1113
1188
|
*/
|
|
1114
1189
|
vfunc_dup_object(): Gio.DBusObject | null;
|
|
@@ -1116,15 +1191,29 @@ export namespace CloudProviders {
|
|
|
1116
1191
|
/**
|
|
1117
1192
|
* Gets D-Bus introspection information for the D-Bus interface
|
|
1118
1193
|
* implemented by `interface_`.
|
|
1194
|
+
*
|
|
1195
|
+
* This can return `null` if no {@link Gio.DBusInterfaceInfo} was provided during
|
|
1196
|
+
* construction of `interface_` and is also not made available otherwise.
|
|
1197
|
+
* For example, {@link Gio.DBusProxy} implements {@link Gio.DBusInterface} but allows for a `null`
|
|
1198
|
+
* {@link Gio.DBusInterfaceInfo}.
|
|
1199
|
+
* @since 2.30
|
|
1119
1200
|
* @virtual
|
|
1120
1201
|
*/
|
|
1121
|
-
vfunc_get_info(): Gio.DBusInterfaceInfo;
|
|
1202
|
+
vfunc_get_info(): Gio.DBusInterfaceInfo | null;
|
|
1203
|
+
|
|
1204
|
+
/**
|
|
1205
|
+
* @param args
|
|
1206
|
+
* @virtual
|
|
1207
|
+
*/
|
|
1208
|
+
// Conflicted with Gio.DBusInterfaceSkeleton.vfunc_get_info
|
|
1209
|
+
vfunc_get_info(...args: never[]): any;
|
|
1122
1210
|
|
|
1123
1211
|
/**
|
|
1124
1212
|
* Sets the {@link Gio.DBusObject} for `interface_` to `object`.
|
|
1125
1213
|
*
|
|
1126
1214
|
* Note that `interface_` will hold a weak reference to `object`.
|
|
1127
1215
|
* @param object A {@link Gio.DBusObject} or `null`.
|
|
1216
|
+
* @since 2.30
|
|
1128
1217
|
* @virtual
|
|
1129
1218
|
*/
|
|
1130
1219
|
vfunc_set_object(object: Gio.DBusObject | null): void;
|
|
@@ -1293,6 +1382,7 @@ export namespace CloudProviders {
|
|
|
1293
1382
|
* any interface methods.
|
|
1294
1383
|
* @param io_priority the [I/O priority](iface.AsyncResult.html#io-priority) of the operation
|
|
1295
1384
|
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
1385
|
+
* @since 2.22
|
|
1296
1386
|
*/
|
|
1297
1387
|
init_async(io_priority: number, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>;
|
|
1298
1388
|
|
|
@@ -1336,6 +1426,7 @@ export namespace CloudProviders {
|
|
|
1336
1426
|
* @param io_priority the [I/O priority](iface.AsyncResult.html#io-priority) of the operation
|
|
1337
1427
|
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
1338
1428
|
* @param callback a {@link Gio.AsyncReadyCallback} to call when the request is satisfied
|
|
1429
|
+
* @since 2.22
|
|
1339
1430
|
*/
|
|
1340
1431
|
init_async(io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void;
|
|
1341
1432
|
|
|
@@ -1379,6 +1470,7 @@ export namespace CloudProviders {
|
|
|
1379
1470
|
* @param io_priority the [I/O priority](iface.AsyncResult.html#io-priority) of the operation
|
|
1380
1471
|
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
1381
1472
|
* @param callback a {@link Gio.AsyncReadyCallback} to call when the request is satisfied
|
|
1473
|
+
* @since 2.22
|
|
1382
1474
|
*/
|
|
1383
1475
|
init_async(io_priority: number, cancellable: Gio.Cancellable | null, callback?: Gio.AsyncReadyCallback<this> | null): globalThis.Promise<boolean> | void;
|
|
1384
1476
|
|
|
@@ -1387,6 +1479,7 @@ export namespace CloudProviders {
|
|
|
1387
1479
|
* See `g_async_initable_init_async()`.
|
|
1388
1480
|
* @param res a {@link Gio.AsyncResult}.
|
|
1389
1481
|
* @returns `true` if successful. If an error has occurred, this function will return `false` and set `error` appropriately if present.
|
|
1482
|
+
* @since 2.22
|
|
1390
1483
|
*/
|
|
1391
1484
|
init_finish(res: Gio.AsyncResult): boolean;
|
|
1392
1485
|
|
|
@@ -1395,6 +1488,7 @@ export namespace CloudProviders {
|
|
|
1395
1488
|
* calls, returning the created object or `null` on error.
|
|
1396
1489
|
* @param res the {@link Gio.AsyncResult} from the callback
|
|
1397
1490
|
* @returns a newly created {@link GObject.Object}, or `null` on error. Free with `g_object_unref()`.
|
|
1491
|
+
* @since 2.22
|
|
1398
1492
|
*/
|
|
1399
1493
|
new_finish(res: Gio.AsyncResult): DbusObjectManagerClient;
|
|
1400
1494
|
|
|
@@ -1444,6 +1538,7 @@ export namespace CloudProviders {
|
|
|
1444
1538
|
* @param io_priority the [I/O priority](iface.AsyncResult.html#io-priority) of the operation
|
|
1445
1539
|
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
1446
1540
|
* @param callback a {@link Gio.AsyncReadyCallback} to call when the request is satisfied
|
|
1541
|
+
* @since 2.22
|
|
1447
1542
|
* @virtual
|
|
1448
1543
|
*/
|
|
1449
1544
|
vfunc_init_async(io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void;
|
|
@@ -1452,6 +1547,7 @@ export namespace CloudProviders {
|
|
|
1452
1547
|
* Finishes asynchronous initialization and returns the result.
|
|
1453
1548
|
* See `g_async_initable_init_async()`.
|
|
1454
1549
|
* @param res a {@link Gio.AsyncResult}.
|
|
1550
|
+
* @since 2.22
|
|
1455
1551
|
* @virtual
|
|
1456
1552
|
*/
|
|
1457
1553
|
vfunc_init_finish(res: Gio.AsyncResult): boolean;
|
|
@@ -1462,6 +1558,7 @@ export namespace CloudProviders {
|
|
|
1462
1558
|
* @param object_path Object path to look up.
|
|
1463
1559
|
* @param interface_name D-Bus interface name to look up.
|
|
1464
1560
|
* @returns A {@link Gio.DBusInterface} instance or `null`. Free with `g_object_unref()`.
|
|
1561
|
+
* @since 2.30
|
|
1465
1562
|
*/
|
|
1466
1563
|
get_interface(object_path: string, interface_name: string): Gio.DBusInterface | null;
|
|
1467
1564
|
|
|
@@ -1469,18 +1566,21 @@ export namespace CloudProviders {
|
|
|
1469
1566
|
* Gets the {@link Gio.DBusObject} at `object_path`, if any.
|
|
1470
1567
|
* @param object_path Object path to look up.
|
|
1471
1568
|
* @returns A {@link Gio.DBusObject} or `null`. Free with `g_object_unref()`.
|
|
1569
|
+
* @since 2.30
|
|
1472
1570
|
*/
|
|
1473
1571
|
get_object(object_path: string): Gio.DBusObject | null;
|
|
1474
1572
|
|
|
1475
1573
|
/**
|
|
1476
1574
|
* Gets the object path that `manager` is for.
|
|
1477
1575
|
* @returns A string owned by `manager`. Do not free.
|
|
1576
|
+
* @since 2.30
|
|
1478
1577
|
*/
|
|
1479
1578
|
get_object_path(): string;
|
|
1480
1579
|
|
|
1481
1580
|
/**
|
|
1482
1581
|
* Gets all {@link Gio.DBusObject} objects known to `manager`.
|
|
1483
1582
|
* @returns A list of {@link Gio.DBusObject} objects. The returned list should be freed with `g_list_free()` after each element has been freed with `g_object_unref()`.
|
|
1583
|
+
* @since 2.30
|
|
1484
1584
|
*/
|
|
1485
1585
|
get_objects(): Gio.DBusObject[];
|
|
1486
1586
|
|
|
@@ -1489,6 +1589,7 @@ export namespace CloudProviders {
|
|
|
1489
1589
|
* any.
|
|
1490
1590
|
* @param object_path Object path to look up.
|
|
1491
1591
|
* @param interface_name D-Bus interface name to look up.
|
|
1592
|
+
* @since 2.30
|
|
1492
1593
|
* @virtual
|
|
1493
1594
|
*/
|
|
1494
1595
|
vfunc_get_interface(object_path: string, interface_name: string): Gio.DBusInterface | null;
|
|
@@ -1496,18 +1597,21 @@ export namespace CloudProviders {
|
|
|
1496
1597
|
/**
|
|
1497
1598
|
* Gets the {@link Gio.DBusObject} at `object_path`, if any.
|
|
1498
1599
|
* @param object_path Object path to look up.
|
|
1600
|
+
* @since 2.30
|
|
1499
1601
|
* @virtual
|
|
1500
1602
|
*/
|
|
1501
1603
|
vfunc_get_object(object_path: string): Gio.DBusObject | null;
|
|
1502
1604
|
|
|
1503
1605
|
/**
|
|
1504
1606
|
* Gets the object path that `manager` is for.
|
|
1607
|
+
* @since 2.30
|
|
1505
1608
|
* @virtual
|
|
1506
1609
|
*/
|
|
1507
1610
|
vfunc_get_object_path(): string;
|
|
1508
1611
|
|
|
1509
1612
|
/**
|
|
1510
1613
|
* Gets all {@link Gio.DBusObject} objects known to `manager`.
|
|
1614
|
+
* @since 2.30
|
|
1511
1615
|
* @virtual
|
|
1512
1616
|
*/
|
|
1513
1617
|
vfunc_get_objects(): Gio.DBusObject[];
|
|
@@ -1583,6 +1687,7 @@ export namespace CloudProviders {
|
|
|
1583
1687
|
* instance.
|
|
1584
1688
|
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
1585
1689
|
* @returns `true` if successful. If an error has occurred, this function will return `false` and set `error` appropriately if present.
|
|
1690
|
+
* @since 2.22
|
|
1586
1691
|
*/
|
|
1587
1692
|
init(cancellable: Gio.Cancellable | null): boolean;
|
|
1588
1693
|
|
|
@@ -1626,6 +1731,7 @@ export namespace CloudProviders {
|
|
|
1626
1731
|
* on the result of `g_object_new()`, regardless of whether it is in fact a new
|
|
1627
1732
|
* instance.
|
|
1628
1733
|
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
1734
|
+
* @since 2.22
|
|
1629
1735
|
* @virtual
|
|
1630
1736
|
*/
|
|
1631
1737
|
vfunc_init(cancellable: Gio.Cancellable | null): boolean;
|
|
@@ -1716,18 +1822,21 @@ export namespace CloudProviders {
|
|
|
1716
1822
|
* `object`, if any.
|
|
1717
1823
|
* @param interface_name A D-Bus interface name.
|
|
1718
1824
|
* @returns `null` if not found, otherwise a {@link Gio.DBusInterface} that must be freed with `g_object_unref()`.
|
|
1825
|
+
* @since 2.30
|
|
1719
1826
|
*/
|
|
1720
1827
|
get_interface(interface_name: string): Gio.DBusInterface | null;
|
|
1721
1828
|
|
|
1722
1829
|
/**
|
|
1723
1830
|
* Gets the D-Bus interfaces associated with `object`.
|
|
1724
1831
|
* @returns A list of {@link Gio.DBusInterface} instances. The returned list must be freed by `g_list_free()` after each element has been freed with `g_object_unref()`.
|
|
1832
|
+
* @since 2.30
|
|
1725
1833
|
*/
|
|
1726
1834
|
get_interfaces(): Gio.DBusInterface[];
|
|
1727
1835
|
|
|
1728
1836
|
/**
|
|
1729
1837
|
* Gets the object path for `object`.
|
|
1730
1838
|
* @returns A string owned by `object`. Do not free.
|
|
1839
|
+
* @since 2.30
|
|
1731
1840
|
*/
|
|
1732
1841
|
get_object_path(): string;
|
|
1733
1842
|
|
|
@@ -1735,18 +1844,21 @@ export namespace CloudProviders {
|
|
|
1735
1844
|
* Gets the D-Bus interface with name `interface_name` associated with
|
|
1736
1845
|
* `object`, if any.
|
|
1737
1846
|
* @param interface_name A D-Bus interface name.
|
|
1847
|
+
* @since 2.30
|
|
1738
1848
|
* @virtual
|
|
1739
1849
|
*/
|
|
1740
1850
|
vfunc_get_interface(interface_name: string): Gio.DBusInterface | null;
|
|
1741
1851
|
|
|
1742
1852
|
/**
|
|
1743
1853
|
* Gets the D-Bus interfaces associated with `object`.
|
|
1854
|
+
* @since 2.30
|
|
1744
1855
|
* @virtual
|
|
1745
1856
|
*/
|
|
1746
1857
|
vfunc_get_interfaces(): Gio.DBusInterface[];
|
|
1747
1858
|
|
|
1748
1859
|
/**
|
|
1749
1860
|
* Gets the object path for `object`.
|
|
1861
|
+
* @since 2.30
|
|
1750
1862
|
* @virtual
|
|
1751
1863
|
*/
|
|
1752
1864
|
vfunc_get_object_path(): string;
|
|
@@ -1863,18 +1975,21 @@ export namespace CloudProviders {
|
|
|
1863
1975
|
* `object`, if any.
|
|
1864
1976
|
* @param interface_name A D-Bus interface name.
|
|
1865
1977
|
* @returns `null` if not found, otherwise a {@link Gio.DBusInterface} that must be freed with `g_object_unref()`.
|
|
1978
|
+
* @since 2.30
|
|
1866
1979
|
*/
|
|
1867
1980
|
get_interface(interface_name: string): Gio.DBusInterface | null;
|
|
1868
1981
|
|
|
1869
1982
|
/**
|
|
1870
1983
|
* Gets the D-Bus interfaces associated with `object`.
|
|
1871
1984
|
* @returns A list of {@link Gio.DBusInterface} instances. The returned list must be freed by `g_list_free()` after each element has been freed with `g_object_unref()`.
|
|
1985
|
+
* @since 2.30
|
|
1872
1986
|
*/
|
|
1873
1987
|
get_interfaces(): Gio.DBusInterface[];
|
|
1874
1988
|
|
|
1875
1989
|
/**
|
|
1876
1990
|
* Gets the object path for `object`.
|
|
1877
1991
|
* @returns A string owned by `object`. Do not free.
|
|
1992
|
+
* @since 2.30
|
|
1878
1993
|
*/
|
|
1879
1994
|
get_object_path(): string;
|
|
1880
1995
|
|
|
@@ -1882,18 +1997,21 @@ export namespace CloudProviders {
|
|
|
1882
1997
|
* Gets the D-Bus interface with name `interface_name` associated with
|
|
1883
1998
|
* `object`, if any.
|
|
1884
1999
|
* @param interface_name A D-Bus interface name.
|
|
2000
|
+
* @since 2.30
|
|
1885
2001
|
* @virtual
|
|
1886
2002
|
*/
|
|
1887
2003
|
vfunc_get_interface(interface_name: string): Gio.DBusInterface | null;
|
|
1888
2004
|
|
|
1889
2005
|
/**
|
|
1890
2006
|
* Gets the D-Bus interfaces associated with `object`.
|
|
2007
|
+
* @since 2.30
|
|
1891
2008
|
* @virtual
|
|
1892
2009
|
*/
|
|
1893
2010
|
vfunc_get_interfaces(): Gio.DBusInterface[];
|
|
1894
2011
|
|
|
1895
2012
|
/**
|
|
1896
2013
|
* Gets the object path for `object`.
|
|
2014
|
+
* @since 2.30
|
|
1897
2015
|
* @virtual
|
|
1898
2016
|
*/
|
|
1899
2017
|
vfunc_get_object_path(): string;
|
|
@@ -2078,6 +2196,7 @@ export namespace CloudProviders {
|
|
|
2078
2196
|
* any interface methods.
|
|
2079
2197
|
* @param io_priority the [I/O priority](iface.AsyncResult.html#io-priority) of the operation
|
|
2080
2198
|
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
2199
|
+
* @since 2.22
|
|
2081
2200
|
*/
|
|
2082
2201
|
init_async(io_priority: number, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>;
|
|
2083
2202
|
|
|
@@ -2121,6 +2240,7 @@ export namespace CloudProviders {
|
|
|
2121
2240
|
* @param io_priority the [I/O priority](iface.AsyncResult.html#io-priority) of the operation
|
|
2122
2241
|
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
2123
2242
|
* @param callback a {@link Gio.AsyncReadyCallback} to call when the request is satisfied
|
|
2243
|
+
* @since 2.22
|
|
2124
2244
|
*/
|
|
2125
2245
|
init_async(io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void;
|
|
2126
2246
|
|
|
@@ -2164,6 +2284,7 @@ export namespace CloudProviders {
|
|
|
2164
2284
|
* @param io_priority the [I/O priority](iface.AsyncResult.html#io-priority) of the operation
|
|
2165
2285
|
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
2166
2286
|
* @param callback a {@link Gio.AsyncReadyCallback} to call when the request is satisfied
|
|
2287
|
+
* @since 2.22
|
|
2167
2288
|
*/
|
|
2168
2289
|
init_async(io_priority: number, cancellable: Gio.Cancellable | null, callback?: Gio.AsyncReadyCallback<this> | null): globalThis.Promise<boolean> | void;
|
|
2169
2290
|
|
|
@@ -2172,6 +2293,7 @@ export namespace CloudProviders {
|
|
|
2172
2293
|
* See `g_async_initable_init_async()`.
|
|
2173
2294
|
* @param res a {@link Gio.AsyncResult}.
|
|
2174
2295
|
* @returns `true` if successful. If an error has occurred, this function will return `false` and set `error` appropriately if present.
|
|
2296
|
+
* @since 2.22
|
|
2175
2297
|
*/
|
|
2176
2298
|
init_finish(res: Gio.AsyncResult): boolean;
|
|
2177
2299
|
|
|
@@ -2180,6 +2302,7 @@ export namespace CloudProviders {
|
|
|
2180
2302
|
* calls, returning the created object or `null` on error.
|
|
2181
2303
|
* @param res the {@link Gio.AsyncResult} from the callback
|
|
2182
2304
|
* @returns a newly created {@link GObject.Object}, or `null` on error. Free with `g_object_unref()`.
|
|
2305
|
+
* @since 2.22
|
|
2183
2306
|
*/
|
|
2184
2307
|
new_finish(res: Gio.AsyncResult): DbusProviderProxy;
|
|
2185
2308
|
|
|
@@ -2229,6 +2352,7 @@ export namespace CloudProviders {
|
|
|
2229
2352
|
* @param io_priority the [I/O priority](iface.AsyncResult.html#io-priority) of the operation
|
|
2230
2353
|
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
2231
2354
|
* @param callback a {@link Gio.AsyncReadyCallback} to call when the request is satisfied
|
|
2355
|
+
* @since 2.22
|
|
2232
2356
|
* @virtual
|
|
2233
2357
|
*/
|
|
2234
2358
|
vfunc_init_async(io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void;
|
|
@@ -2237,6 +2361,7 @@ export namespace CloudProviders {
|
|
|
2237
2361
|
* Finishes asynchronous initialization and returns the result.
|
|
2238
2362
|
* See `g_async_initable_init_async()`.
|
|
2239
2363
|
* @param res a {@link Gio.AsyncResult}.
|
|
2364
|
+
* @since 2.22
|
|
2240
2365
|
* @virtual
|
|
2241
2366
|
*/
|
|
2242
2367
|
vfunc_init_finish(res: Gio.AsyncResult): boolean;
|
|
@@ -2244,26 +2369,35 @@ export namespace CloudProviders {
|
|
|
2244
2369
|
/**
|
|
2245
2370
|
* Gets the {@link Gio.DBusObject} that `interface_` belongs to, if any.
|
|
2246
2371
|
* @returns A {@link Gio.DBusObject} or `null`. The returned reference should be freed with `g_object_unref()`.
|
|
2372
|
+
* @since 2.32
|
|
2247
2373
|
*/
|
|
2248
2374
|
get_object(): Gio.DBusObject | null;
|
|
2249
2375
|
|
|
2250
2376
|
/**
|
|
2251
2377
|
* Gets D-Bus introspection information for the D-Bus interface
|
|
2252
2378
|
* implemented by `interface_`.
|
|
2379
|
+
*
|
|
2380
|
+
* This can return `null` if no {@link Gio.DBusInterfaceInfo} was provided during
|
|
2381
|
+
* construction of `interface_` and is also not made available otherwise.
|
|
2382
|
+
* For example, {@link Gio.DBusProxy} implements {@link Gio.DBusInterface} but allows for a `null`
|
|
2383
|
+
* {@link Gio.DBusInterfaceInfo}.
|
|
2253
2384
|
* @returns A {@link Gio.DBusInterfaceInfo}. Do not free.
|
|
2385
|
+
* @since 2.30
|
|
2254
2386
|
*/
|
|
2255
|
-
get_info(): Gio.DBusInterfaceInfo;
|
|
2387
|
+
get_info(): Gio.DBusInterfaceInfo | null;
|
|
2256
2388
|
|
|
2257
2389
|
/**
|
|
2258
2390
|
* Sets the {@link Gio.DBusObject} for `interface_` to `object`.
|
|
2259
2391
|
*
|
|
2260
2392
|
* Note that `interface_` will hold a weak reference to `object`.
|
|
2261
2393
|
* @param object A {@link Gio.DBusObject} or `null`.
|
|
2394
|
+
* @since 2.30
|
|
2262
2395
|
*/
|
|
2263
2396
|
set_object(object: Gio.DBusObject | null): void;
|
|
2264
2397
|
|
|
2265
2398
|
/**
|
|
2266
2399
|
* Gets the {@link Gio.DBusObject} that `interface_` belongs to, if any.
|
|
2400
|
+
* @since 2.32
|
|
2267
2401
|
* @virtual
|
|
2268
2402
|
*/
|
|
2269
2403
|
vfunc_dup_object(): Gio.DBusObject | null;
|
|
@@ -2271,15 +2405,22 @@ export namespace CloudProviders {
|
|
|
2271
2405
|
/**
|
|
2272
2406
|
* Gets D-Bus introspection information for the D-Bus interface
|
|
2273
2407
|
* implemented by `interface_`.
|
|
2408
|
+
*
|
|
2409
|
+
* This can return `null` if no {@link Gio.DBusInterfaceInfo} was provided during
|
|
2410
|
+
* construction of `interface_` and is also not made available otherwise.
|
|
2411
|
+
* For example, {@link Gio.DBusProxy} implements {@link Gio.DBusInterface} but allows for a `null`
|
|
2412
|
+
* {@link Gio.DBusInterfaceInfo}.
|
|
2413
|
+
* @since 2.30
|
|
2274
2414
|
* @virtual
|
|
2275
2415
|
*/
|
|
2276
|
-
vfunc_get_info(): Gio.DBusInterfaceInfo;
|
|
2416
|
+
vfunc_get_info(): Gio.DBusInterfaceInfo | null;
|
|
2277
2417
|
|
|
2278
2418
|
/**
|
|
2279
2419
|
* Sets the {@link Gio.DBusObject} for `interface_` to `object`.
|
|
2280
2420
|
*
|
|
2281
2421
|
* Note that `interface_` will hold a weak reference to `object`.
|
|
2282
2422
|
* @param object A {@link Gio.DBusObject} or `null`.
|
|
2423
|
+
* @since 2.30
|
|
2283
2424
|
* @virtual
|
|
2284
2425
|
*/
|
|
2285
2426
|
vfunc_set_object(object: Gio.DBusObject | null): void;
|
|
@@ -2325,6 +2466,7 @@ export namespace CloudProviders {
|
|
|
2325
2466
|
* instance.
|
|
2326
2467
|
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
2327
2468
|
* @returns `true` if successful. If an error has occurred, this function will return `false` and set `error` appropriately if present.
|
|
2469
|
+
* @since 2.22
|
|
2328
2470
|
*/
|
|
2329
2471
|
init(cancellable: Gio.Cancellable | null): boolean;
|
|
2330
2472
|
|
|
@@ -2368,6 +2510,7 @@ export namespace CloudProviders {
|
|
|
2368
2510
|
* on the result of `g_object_new()`, regardless of whether it is in fact a new
|
|
2369
2511
|
* instance.
|
|
2370
2512
|
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
2513
|
+
* @since 2.22
|
|
2371
2514
|
* @virtual
|
|
2372
2515
|
*/
|
|
2373
2516
|
vfunc_init(cancellable: Gio.Cancellable | null): boolean;
|
|
@@ -2434,26 +2577,41 @@ export namespace CloudProviders {
|
|
|
2434
2577
|
/**
|
|
2435
2578
|
* Gets the {@link Gio.DBusObject} that `interface_` belongs to, if any.
|
|
2436
2579
|
* @returns A {@link Gio.DBusObject} or `null`. The returned reference should be freed with `g_object_unref()`.
|
|
2580
|
+
* @since 2.32
|
|
2437
2581
|
*/
|
|
2438
2582
|
get_object(): Gio.DBusObject | null;
|
|
2439
2583
|
|
|
2440
2584
|
/**
|
|
2441
2585
|
* Gets D-Bus introspection information for the D-Bus interface
|
|
2442
2586
|
* implemented by `interface_`.
|
|
2587
|
+
*
|
|
2588
|
+
* This can return `null` if no {@link Gio.DBusInterfaceInfo} was provided during
|
|
2589
|
+
* construction of `interface_` and is also not made available otherwise.
|
|
2590
|
+
* For example, {@link Gio.DBusProxy} implements {@link Gio.DBusInterface} but allows for a `null`
|
|
2591
|
+
* {@link Gio.DBusInterfaceInfo}.
|
|
2443
2592
|
* @returns A {@link Gio.DBusInterfaceInfo}. Do not free.
|
|
2593
|
+
* @since 2.30
|
|
2594
|
+
*/
|
|
2595
|
+
get_info(): Gio.DBusInterfaceInfo | null;
|
|
2596
|
+
|
|
2597
|
+
/**
|
|
2598
|
+
* @param args
|
|
2444
2599
|
*/
|
|
2445
|
-
|
|
2600
|
+
// Conflicted with Gio.DBusInterfaceSkeleton.get_info
|
|
2601
|
+
get_info(...args: never[]): any;
|
|
2446
2602
|
|
|
2447
2603
|
/**
|
|
2448
2604
|
* Sets the {@link Gio.DBusObject} for `interface_` to `object`.
|
|
2449
2605
|
*
|
|
2450
2606
|
* Note that `interface_` will hold a weak reference to `object`.
|
|
2451
2607
|
* @param object A {@link Gio.DBusObject} or `null`.
|
|
2608
|
+
* @since 2.30
|
|
2452
2609
|
*/
|
|
2453
2610
|
set_object(object: Gio.DBusObject | null): void;
|
|
2454
2611
|
|
|
2455
2612
|
/**
|
|
2456
2613
|
* Gets the {@link Gio.DBusObject} that `interface_` belongs to, if any.
|
|
2614
|
+
* @since 2.32
|
|
2457
2615
|
* @virtual
|
|
2458
2616
|
*/
|
|
2459
2617
|
vfunc_dup_object(): Gio.DBusObject | null;
|
|
@@ -2461,15 +2619,29 @@ export namespace CloudProviders {
|
|
|
2461
2619
|
/**
|
|
2462
2620
|
* Gets D-Bus introspection information for the D-Bus interface
|
|
2463
2621
|
* implemented by `interface_`.
|
|
2622
|
+
*
|
|
2623
|
+
* This can return `null` if no {@link Gio.DBusInterfaceInfo} was provided during
|
|
2624
|
+
* construction of `interface_` and is also not made available otherwise.
|
|
2625
|
+
* For example, {@link Gio.DBusProxy} implements {@link Gio.DBusInterface} but allows for a `null`
|
|
2626
|
+
* {@link Gio.DBusInterfaceInfo}.
|
|
2627
|
+
* @since 2.30
|
|
2628
|
+
* @virtual
|
|
2629
|
+
*/
|
|
2630
|
+
vfunc_get_info(): Gio.DBusInterfaceInfo | null;
|
|
2631
|
+
|
|
2632
|
+
/**
|
|
2633
|
+
* @param args
|
|
2464
2634
|
* @virtual
|
|
2465
2635
|
*/
|
|
2466
|
-
|
|
2636
|
+
// Conflicted with Gio.DBusInterfaceSkeleton.vfunc_get_info
|
|
2637
|
+
vfunc_get_info(...args: never[]): any;
|
|
2467
2638
|
|
|
2468
2639
|
/**
|
|
2469
2640
|
* Sets the {@link Gio.DBusObject} for `interface_` to `object`.
|
|
2470
2641
|
*
|
|
2471
2642
|
* Note that `interface_` will hold a weak reference to `object`.
|
|
2472
2643
|
* @param object A {@link Gio.DBusObject} or `null`.
|
|
2644
|
+
* @since 2.30
|
|
2473
2645
|
* @virtual
|
|
2474
2646
|
*/
|
|
2475
2647
|
vfunc_set_object(object: Gio.DBusObject | null): void;
|
|
@@ -2499,9 +2671,10 @@ export namespace CloudProviders {
|
|
|
2499
2671
|
}
|
|
2500
2672
|
|
|
2501
2673
|
/**
|
|
2502
|
-
*
|
|
2503
|
-
*
|
|
2504
|
-
*
|
|
2674
|
+
* Base object for representing a single provider for clients.
|
|
2675
|
+
*
|
|
2676
|
+
* This is the basic object object for client implementers that contains the properties of the
|
|
2677
|
+
* provider such as name, and the accounts associated with it.
|
|
2505
2678
|
* @gir-type Class
|
|
2506
2679
|
*/
|
|
2507
2680
|
class Provider extends GObject.Object {
|
|
@@ -2509,6 +2682,7 @@ export namespace CloudProviders {
|
|
|
2509
2682
|
|
|
2510
2683
|
// Properties
|
|
2511
2684
|
/**
|
|
2685
|
+
* The name of the cloud provider.
|
|
2512
2686
|
* @read-only
|
|
2513
2687
|
* @default null
|
|
2514
2688
|
*/
|
|
@@ -2545,7 +2719,8 @@ export namespace CloudProviders {
|
|
|
2545
2719
|
|
|
2546
2720
|
// Methods
|
|
2547
2721
|
/**
|
|
2548
|
-
*
|
|
2722
|
+
* Get the list of accounts from this provider.
|
|
2723
|
+
* @returns A list of {@link Account} objects.
|
|
2549
2724
|
*/
|
|
2550
2725
|
get_accounts(): Account[];
|
|
2551
2726
|
|
|
@@ -2574,9 +2749,7 @@ export namespace CloudProviders {
|
|
|
2574
2749
|
}
|
|
2575
2750
|
|
|
2576
2751
|
/**
|
|
2577
|
-
*
|
|
2578
|
-
* Multiple {@link CloudProviders.AccountExporter} objects can be added with `cloud_providers_provider_exporter_add_account()`
|
|
2579
|
-
* After adding the initial set of accounts `cloud_providers_provider_exporter_export_objects()` must be called.
|
|
2752
|
+
* Base object for representing a single single provider.
|
|
2580
2753
|
* @gir-type Class
|
|
2581
2754
|
*/
|
|
2582
2755
|
class ProviderExporter extends GObject.Object {
|
|
@@ -2584,35 +2757,41 @@ export namespace CloudProviders {
|
|
|
2584
2757
|
|
|
2585
2758
|
// Properties
|
|
2586
2759
|
/**
|
|
2760
|
+
* The bus connection object for the provider.
|
|
2587
2761
|
* @construct-only
|
|
2588
2762
|
*/
|
|
2589
2763
|
get bus(): Gio.DBusConnection;
|
|
2590
2764
|
|
|
2591
2765
|
/**
|
|
2766
|
+
* The bus name of the provider.
|
|
2592
2767
|
* @construct-only
|
|
2593
2768
|
* @default null
|
|
2594
2769
|
*/
|
|
2595
2770
|
get bus_name(): string;
|
|
2596
2771
|
|
|
2597
2772
|
/**
|
|
2773
|
+
* The bus name of the provider.
|
|
2598
2774
|
* @construct-only
|
|
2599
2775
|
* @default null
|
|
2600
2776
|
*/
|
|
2601
2777
|
get busName(): string;
|
|
2602
2778
|
|
|
2603
2779
|
/**
|
|
2780
|
+
* The bus path of the provider.
|
|
2604
2781
|
* @construct-only
|
|
2605
2782
|
* @default null
|
|
2606
2783
|
*/
|
|
2607
2784
|
get bus_path(): string;
|
|
2608
2785
|
|
|
2609
2786
|
/**
|
|
2787
|
+
* The bus path of the provider.
|
|
2610
2788
|
* @construct-only
|
|
2611
2789
|
* @default null
|
|
2612
2790
|
*/
|
|
2613
2791
|
get busPath(): string;
|
|
2614
2792
|
|
|
2615
2793
|
/**
|
|
2794
|
+
* The name of the cloud provider.
|
|
2616
2795
|
* @default null
|
|
2617
2796
|
*/
|
|
2618
2797
|
get name(): string;
|
|
@@ -2652,7 +2831,7 @@ export namespace CloudProviders {
|
|
|
2652
2831
|
|
|
2653
2832
|
/**
|
|
2654
2833
|
* Each cloud provider can have a variety of account associated with it. Use this
|
|
2655
|
-
* function to remove the accounts that were added when created by
|
|
2834
|
+
* function to remove the accounts that were added when created by {@link AccountExporter.new}.
|
|
2656
2835
|
* @param account The account object
|
|
2657
2836
|
*/
|
|
2658
2837
|
remove_account(account: AccountExporter): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/cloudproviders-0.3",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.4.0",
|
|
4
4
|
"description": "GJS TypeScript type definitions for CloudProviders-0.3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "cloudproviders-0.3.js",
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
"test": "tsc --project tsconfig.json"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@girs/gjs": "^4.
|
|
35
|
-
"@girs/gio-2.0": "^4.
|
|
36
|
-
"@girs/gobject-2.0": "^4.
|
|
37
|
-
"@girs/glib-2.0": "^4.
|
|
38
|
-
"@girs/gmodule-2.0": "^4.
|
|
34
|
+
"@girs/gjs": "^4.4.0",
|
|
35
|
+
"@girs/gio-2.0": "^4.4.0",
|
|
36
|
+
"@girs/gobject-2.0": "^4.4.0",
|
|
37
|
+
"@girs/glib-2.0": "^4.4.0",
|
|
38
|
+
"@girs/gmodule-2.0": "^4.4.0" },
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"typescript": "*"
|
|
41
41
|
},
|