@girs/packagekitplugin-1.0 1.0.0-3.0.0-beta.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,664 @@
1
+
2
+ /*
3
+ * Type Definitions for Gjs (https://gjs.guide/)
4
+ *
5
+ * These type definitions are automatically generated, do not edit them by hand.
6
+ * If you found a bug fix it in `ts-for-gir` or create a bug report on https://github.com/gjsify/ts-for-gjs
7
+ */
8
+ /**
9
+ * PackageKitPlugin-1.0
10
+ */
11
+
12
+ import type PackageKitGlib from '@girs/packagekitglib-1.0';
13
+ import type Gio from '@girs/gio-2.0';
14
+ import type GObject from '@girs/gobject-2.0';
15
+ import type GLib from '@girs/glib-2.0';
16
+
17
+ export enum BackendJobSignal {
18
+ ALLOW_CANCEL,
19
+ DETAILS,
20
+ ERROR_CODE,
21
+ DISTRO_UPGRADE,
22
+ FINISHED,
23
+ PACKAGE,
24
+ ITEM_PROGRESS,
25
+ FILES,
26
+ PERCENTAGE,
27
+ REMAINING,
28
+ SPEED,
29
+ DOWNLOAD_SIZE_REMAINING,
30
+ REPO_DETAIL,
31
+ REPO_SIGNATURE_REQUIRED,
32
+ EULA_REQUIRED,
33
+ MEDIA_CHANGE_REQUIRED,
34
+ REQUIRE_RESTART,
35
+ STATUS_CHANGED,
36
+ LOCKED_CHANGED,
37
+ UPDATE_DETAIL,
38
+ CATEGORY,
39
+ LAST,
40
+ }
41
+ export enum HintEnum {
42
+ FALSE,
43
+ TRUE,
44
+ UNSET,
45
+ INVALID,
46
+ LAST,
47
+ }
48
+ export enum PluginPhase {
49
+ INIT,
50
+ TRANSACTION_CONTENT_TYPES,
51
+ TRANSACTION_RUN,
52
+ TRANSACTION_STARTED,
53
+ TRANSACTION_FINISHED_RESULTS,
54
+ TRANSACTION_FINISHED_END,
55
+ DESTROY,
56
+ STATE_CHANGED,
57
+ UNKNOWN,
58
+ }
59
+ export enum TransactionState {
60
+ NEW,
61
+ WAITING_FOR_AUTH,
62
+ COMMITTED,
63
+ READY,
64
+ RUNNING,
65
+ FINISHED,
66
+ UNKNOWN,
67
+ }
68
+ /**
69
+ * The unknown percentage value
70
+ */
71
+ export const BACKEND_PERCENTAGE_INVALID: number
72
+ export const TRANSACTION_ALL_BACKEND_SIGNALS: number
73
+ export const TRANSACTION_NO_BACKEND_SIGNALS: number
74
+ /**
75
+ * Does not remove the directory itself, only the contents.
76
+ * @param directory
77
+ */
78
+ export function directory_remove_contents(directory: string | null): boolean
79
+ export function get_resource(): Gio.Resource
80
+ export function hint_enum_from_string(hint: string | null): HintEnum
81
+ export function hint_enum_to_string(hint: HintEnum): string | null
82
+ export function load_introspection(filename: string | null): Gio.DBusNodeInfo
83
+ export function plugin_get_description(): string | null
84
+ /**
85
+ * This function is a much safer way of doing strlen as it checks for NULL and
86
+ * a stupidly long string.
87
+ * @param text The text to check
88
+ * @param len The maximum length of the string
89
+ * @returns the length of the string, or len if the string is too long.
90
+ */
91
+ export function strlen(text: string | null, len: number): number
92
+ /**
93
+ * Converts a string into a signed integer value in a safe way.
94
+ * @param text The text the convert
95
+ * @param value The return numeric return value
96
+ * @returns %TRUE if the string was converted correctly
97
+ */
98
+ export function strtoint(text: string | null, value: number): boolean
99
+ /**
100
+ * Converts a string into a unsigned integer value in a safe way.
101
+ * @param text The text the convert
102
+ * @param value The return numeric return value
103
+ * @returns %TRUE if the string was converted correctly
104
+ */
105
+ export function strtouint(text: string | null, value: number): boolean
106
+ /**
107
+ * Converts a string into a unsigned integer value in a safe way.
108
+ * @param text The text the convert
109
+ * @param value The return numeric return value
110
+ * @returns %TRUE if the string was converted correctly
111
+ */
112
+ export function strtouint64(text: string | null, value: number): boolean
113
+ /**
114
+ * This function is a much safer way of doing "if (strlen (text) == 0))"
115
+ * as it does not rely on text being NULL terminated. It's also much
116
+ * quicker as it only checks the first byte rather than scanning the whole
117
+ * string just to verify it's not zero length.
118
+ * @param text The text to check
119
+ * @returns %TRUE if the string was converted correctly
120
+ */
121
+ export function strzero(text: string | null): boolean
122
+ export interface BackendFileChanged {
123
+ (backend: Backend, data: any): void
124
+ }
125
+ export interface BackendJobThreadFunc {
126
+ (job: BackendJob, params: GLib.Variant): void
127
+ }
128
+ export interface BackendJobVFunc {
129
+ (job: BackendJob, object: any): void
130
+ }
131
+ export interface PluginFunc {
132
+ (plugin: Plugin): void
133
+ }
134
+ export interface PluginGetActionFunc {
135
+ (plugin: Plugin, transaction: Transaction, action_id: string | null): string | null
136
+ }
137
+ export interface PluginGetDescFunc {
138
+ (): string | null
139
+ }
140
+ export interface PluginTransactionFunc {
141
+ (plugin: Plugin, transaction: Transaction): void
142
+ }
143
+ export module Backend {
144
+
145
+ // Constructor properties interface
146
+
147
+ export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
148
+ }
149
+
150
+ }
151
+
152
+ export interface Backend {
153
+
154
+ // Own fields of PackageKitPlugin-1.0.PackageKitPlugin.Backend
155
+
156
+ parent: GObject.Object
157
+ priv: BackendPrivate
158
+
159
+ // Owm methods of PackageKitPlugin-1.0.PackageKitPlugin.Backend
160
+
161
+ accept_eula(eula_id: string | null): void
162
+ cancel(job: BackendJob): void
163
+ depends_on(job: BackendJob, filters: PackageKitGlib.Bitfield, package_ids: string | null, recursive: boolean): void
164
+ destroy(): void
165
+ download_packages(job: BackendJob, package_ids: string | null, directory: string | null): void
166
+ get_accepted_eula_string(): string | null
167
+ get_author(): string | null
168
+ get_categories(job: BackendJob): void
169
+ get_description(): string | null
170
+ get_details(job: BackendJob, package_ids: string | null): void
171
+ get_details_local(job: BackendJob, files: string | null): void
172
+ get_distro_upgrades(job: BackendJob): void
173
+ get_files(job: BackendJob, package_ids: string | null): void
174
+ get_files_local(job: BackendJob, files: string | null): void
175
+ get_filters(): PackageKitGlib.Bitfield
176
+ get_groups(): PackageKitGlib.Bitfield
177
+ get_mime_types(): string[]
178
+ get_name(): string | null
179
+ get_packages(job: BackendJob, filters: PackageKitGlib.Bitfield): void
180
+ get_repo_list(job: BackendJob, filters: PackageKitGlib.Bitfield): void
181
+ get_roles(): PackageKitGlib.Bitfield
182
+ get_update_detail(job: BackendJob, package_ids: string | null): void
183
+ get_updates(job: BackendJob, filters: PackageKitGlib.Bitfield): void
184
+ implement(role: PackageKitGlib.RoleEnum): void
185
+ install_files(job: BackendJob, transaction_flags: PackageKitGlib.Bitfield, full_paths: string | null): void
186
+ install_packages(job: BackendJob, transaction_flags: PackageKitGlib.Bitfield, package_ids: string | null): void
187
+ install_signature(job: BackendJob, type: PackageKitGlib.SigTypeEnum, key_id: string | null, package_id: string | null): void
188
+ is_eula_valid(eula_id: string | null): boolean
189
+ is_implemented(role: PackageKitGlib.RoleEnum): boolean
190
+ is_online(): boolean
191
+ /**
192
+ * Responsible for initialising the external backend object.
193
+ *
194
+ * Typically this will involve taking database locks for exclusive package access.
195
+ * This method should only be called from the engine, unless the backend object
196
+ * is used in self-check code, in which case the lock and unlock will have to
197
+ * be done manually.
198
+ */
199
+ load(): boolean
200
+ refresh_cache(job: BackendJob, force: boolean): void
201
+ remove_packages(job: BackendJob, transaction_flags: PackageKitGlib.Bitfield, package_ids: string | null, allow_deps: boolean, autoremove: boolean): void
202
+ repair_system(job: BackendJob, transaction_flags: PackageKitGlib.Bitfield): void
203
+ repo_enable(job: BackendJob, repo_id: string | null, enabled: boolean): void
204
+ repo_list_changed(): boolean
205
+ repo_remove(job: BackendJob, transaction_flags: PackageKitGlib.Bitfield, repo_id: string | null, autoremove: boolean): void
206
+ repo_set_data(job: BackendJob, repo_id: string | null, parameter: string | null, value: string | null): void
207
+ required_by(job: BackendJob, filters: PackageKitGlib.Bitfield, package_ids: string | null, recursive: boolean): void
208
+ reset_job(job: BackendJob): void
209
+ resolve(job: BackendJob, filters: PackageKitGlib.Bitfield, packages: string | null): void
210
+ search_details(job: BackendJob, filters: PackageKitGlib.Bitfield, search: string | null): void
211
+ search_files(job: BackendJob, filters: PackageKitGlib.Bitfield, search: string | null): void
212
+ search_groups(job: BackendJob, filters: PackageKitGlib.Bitfield, search: string | null): void
213
+ search_names(job: BackendJob, filters: PackageKitGlib.Bitfield, search: string | null): void
214
+ /**
215
+ * This is called just before the threaded transaction method, and in
216
+ * the newly created thread context. e.g.
217
+ *
218
+ * >>> desc->job_start(backend)
219
+ * (locked backend)
220
+ * >>> desc->backend_method_we_want_to_run(backend)
221
+ * <<< ::Package(PK_INFO_ENUM_INSTALLING,"hal;0.1.1;i386;fedora","Hardware Stuff")
222
+ * >>> desc->job_stop(backend)
223
+ * (unlocked backend)
224
+ * <<< ::Finished()
225
+ *
226
+ * or in the case of backend_method_we_want_to_run() failure:
227
+ * >>> desc->job_start(backend)
228
+ * (locked backend)
229
+ * >>> desc->backend_method_we_want_to_run(backend)
230
+ * <<< ::ErrorCode(PK_ERROR_ENUM_FAILED_TO_FIND,"no package")
231
+ * >>> desc->job_stop(backend)
232
+ * (unlocked backend)
233
+ * <<< ::Finished()
234
+ *
235
+ * or in the case of job_start() failure:
236
+ * >>> desc->job_start(backend)
237
+ * (failed to lock backend)
238
+ * <<< ::ErrorCode(PK_ERROR_ENUM_FAILED_TO_LOCK,"no pid file")
239
+ * >>> desc->job_stop(backend)
240
+ * <<< ::Finished()
241
+ *
242
+ * It is *not* called for non-threaded backends, as multiple processes
243
+ * would be inherently racy.
244
+ * @param job
245
+ */
246
+ start_job(job: BackendJob): void
247
+ /**
248
+ * Always run for each transaction, *even* when the job_start()
249
+ * vfunc fails.
250
+ *
251
+ * This method has no return value as the ErrorCode should have already
252
+ * been set.
253
+ * @param job
254
+ */
255
+ stop_job(job: BackendJob): void
256
+ supports_parallelization(): boolean
257
+ thread_start(job: BackendJob, func: any): void
258
+ thread_stop(job: BackendJob, func: any): void
259
+ /**
260
+ * Responsible for finalising the external backend object.
261
+ *
262
+ * Typically this will involve releasing database locks for any other access.
263
+ * This method should only be called from the engine, unless the backend object
264
+ * is used in self-check code, in which case it will have to be done manually.
265
+ */
266
+ unload(): boolean
267
+ update_packages(job: BackendJob, transaction_flags: PackageKitGlib.Bitfield, package_ids: string | null): void
268
+ watch_file(filename: string | null, func: BackendFileChanged): boolean
269
+ what_provides(job: BackendJob, filters: PackageKitGlib.Bitfield, search: string | null): void
270
+
271
+ // Class property signals of PackageKitPlugin-1.0.PackageKitPlugin.Backend
272
+
273
+ connect(sigName: string, callback: (...args: any[]) => void): number
274
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
275
+ emit(sigName: string, ...args: any[]): void
276
+ disconnect(id: number): void
277
+ }
278
+
279
+ export class Backend extends GObject.Object {
280
+
281
+ // Own properties of PackageKitPlugin-1.0.PackageKitPlugin.Backend
282
+
283
+ static name: string
284
+ static $gtype: GObject.GType<Backend>
285
+
286
+ // Constructors of PackageKitPlugin-1.0.PackageKitPlugin.Backend
287
+
288
+ constructor(config?: Backend.ConstructorProperties)
289
+ constructor(conf: GLib.KeyFile)
290
+ static new(conf: GLib.KeyFile): Backend
291
+ _init(config?: Backend.ConstructorProperties): void
292
+ static bool_to_string(value: boolean): string | null
293
+ static initialize(conf: GLib.KeyFile, backend: Backend): void
294
+ }
295
+
296
+ export module BackendJob {
297
+
298
+ // Constructor properties interface
299
+
300
+ export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
301
+ }
302
+
303
+ }
304
+
305
+ export interface BackendJob {
306
+
307
+ // Own fields of PackageKitPlugin-1.0.PackageKitPlugin.BackendJob
308
+
309
+ parent: GObject.Object
310
+ priv: BackendJobPrivate
311
+
312
+ // Owm methods of PackageKitPlugin-1.0.PackageKitPlugin.BackendJob
313
+
314
+ category(parent_id: string | null, cat_id: string | null, name: string | null, summary: string | null, icon: string | null): void
315
+ details(package_id: string | null, summary: string | null, license: string | null, group: PackageKitGlib.GroupEnum, description: string | null, url: string | null, size: number): void
316
+ distro_upgrade(type: PackageKitGlib.DistroUpgradeEnum, name: string | null, summary: string | null): void
317
+ eula_required(eula_id: string | null, package_id: string | null, vendor_name: string | null, license_agreement: string | null): void
318
+ /**
319
+ * package_id is NULL when we are using this as a calback from DownloadPackages
320
+ * @param package_id
321
+ * @param files
322
+ */
323
+ files(package_id: string | null, files: string | null): void
324
+ finished(): void
325
+ get_allow_cancel(): boolean
326
+ get_backend(): any
327
+ get_background(): HintEnum
328
+ /**
329
+ * Gets the maximum cache age in seconds.
330
+ * @returns the cache age in seconds, or 0 for unset or %G_MAXUINT for 'infinity'
331
+ */
332
+ get_cache_age(): number
333
+ get_cmdline(): string | null
334
+ get_exit_code(): PackageKitGlib.ExitEnum
335
+ get_frontend_socket(): string | null
336
+ get_interactive(): HintEnum
337
+ get_is_error_set(): boolean
338
+ get_is_finished(): boolean
339
+ get_locale(): string | null
340
+ get_locked(): boolean
341
+ get_no_proxy(): string | null
342
+ get_pac(): string | null
343
+ get_parameters(): GLib.Variant
344
+ get_proxy_ftp(): string | null
345
+ get_proxy_http(): string | null
346
+ get_proxy_https(): string | null
347
+ get_proxy_socks(): string | null
348
+ get_role(): PackageKitGlib.RoleEnum
349
+ get_runtime(): number
350
+ get_started(): boolean
351
+ get_transaction_flags(): PackageKitGlib.Bitfield
352
+ get_uid(): number
353
+ get_user_data(): any
354
+ get_vfunc_enabled(signal_kind: BackendJobSignal): boolean
355
+ has_set_error_code(): boolean
356
+ media_change_required(media_type: PackageKitGlib.MediaTypeEnum, media_id: string | null, media_text: string | null): void
357
+ not_implemented_yet(method: string | null): void
358
+ package(info: PackageKitGlib.InfoEnum, package_id: string | null, summary: string | null): void
359
+ repo_detail(repo_id: string | null, description: string | null, enabled: boolean): void
360
+ repo_signature_required(package_id: string | null, repository_name: string | null, key_url: string | null, key_userid: string | null, key_id: string | null, key_fingerprint: string | null, key_timestamp: string | null, type: PackageKitGlib.SigTypeEnum): void
361
+ require_restart(restart: PackageKitGlib.RestartEnum, package_id: string | null): void
362
+ reset(): void
363
+ set_allow_cancel(allow_cancel: boolean): void
364
+ set_backend(backend: any): void
365
+ set_background(background: HintEnum): void
366
+ set_cache_age(cache_age: number): void
367
+ set_cmdline(cmdline: string | null): void
368
+ set_download_size_remaining(download_size_remaining: number): void
369
+ /**
370
+ * Should only be used internally, or from PkRunner when setting CANCELLED.
371
+ * @param exit
372
+ */
373
+ set_exit_code(exit: PackageKitGlib.ExitEnum): void
374
+ set_frontend_socket(frontend_socket: string | null): void
375
+ set_interactive(interactive: HintEnum): void
376
+ set_item_progress(package_id: string | null, status: PackageKitGlib.StatusEnum, percentage: number): void
377
+ set_locale(code: string | null): void
378
+ /**
379
+ * Set if your backend job currently locks the cache, so no other tool will
380
+ * have write access on it. (read-only transactions will still be permitted)
381
+ * @param locked
382
+ */
383
+ set_locked(locked: boolean): void
384
+ set_parameters(params: GLib.Variant): void
385
+ set_percentage(percentage: number): void
386
+ set_proxy(proxy_http: string | null, proxy_https: string | null, proxy_ftp: string | null, proxy_socks: string | null, no_proxy: string | null, pac: string | null): void
387
+ set_role(role: PackageKitGlib.RoleEnum): void
388
+ set_speed(speed: number): void
389
+ set_started(started: boolean): void
390
+ set_status(status: PackageKitGlib.StatusEnum): void
391
+ set_transaction_flags(transaction_flags: PackageKitGlib.Bitfield): void
392
+ set_uid(uid: number): void
393
+ set_user_data(user_data: any): void
394
+ /**
395
+ * Connect backend
396
+ * @param signal_kind Kind of the backend signal we want to connect
397
+ * @param vfunc The function we want to call
398
+ */
399
+ set_vfunc(signal_kind: BackendJobSignal, vfunc: BackendJobVFunc): void
400
+ thread_create(func: BackendJobThreadFunc): boolean
401
+ update_detail(package_id: string | null, updates: string | null, obsoletes: string | null, vendor_urls: string | null, bugzilla_urls: string | null, cve_urls: string | null, restart: PackageKitGlib.RestartEnum, update_text: string | null, changelog: string | null, state: PackageKitGlib.UpdateStateEnum, issued: string | null, updated: string | null): void
402
+ use_background(): boolean
403
+
404
+ // Class property signals of PackageKitPlugin-1.0.PackageKitPlugin.BackendJob
405
+
406
+ connect(sigName: string, callback: (...args: any[]) => void): number
407
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
408
+ emit(sigName: string, ...args: any[]): void
409
+ disconnect(id: number): void
410
+ }
411
+
412
+ export class BackendJob extends GObject.Object {
413
+
414
+ // Own properties of PackageKitPlugin-1.0.PackageKitPlugin.BackendJob
415
+
416
+ static name: string
417
+ static $gtype: GObject.GType<BackendJob>
418
+
419
+ // Constructors of PackageKitPlugin-1.0.PackageKitPlugin.BackendJob
420
+
421
+ constructor(config?: BackendJob.ConstructorProperties)
422
+ constructor(conf: GLib.KeyFile)
423
+ static new(conf: GLib.KeyFile): BackendJob
424
+ _init(config?: BackendJob.ConstructorProperties): void
425
+ }
426
+
427
+ export module Transaction {
428
+
429
+ // Signal callback interfaces
430
+
431
+ /**
432
+ * Signal callback interface for `finished`
433
+ */
434
+ export interface FinishedSignalCallback {
435
+ ($obj: Transaction): void
436
+ }
437
+
438
+
439
+ // Constructor properties interface
440
+
441
+ export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
442
+ }
443
+
444
+ }
445
+
446
+ export interface Transaction {
447
+
448
+ // Own fields of PackageKitPlugin-1.0.PackageKitPlugin.Transaction
449
+
450
+ parent: GObject.Object
451
+ priv: TransactionPrivate
452
+
453
+ // Owm methods of PackageKitPlugin-1.0.PackageKitPlugin.Transaction
454
+
455
+ /**
456
+ * Designed to be used by plugins.
457
+ * @param mime_type
458
+ */
459
+ add_supported_content_type(mime_type: string | null): void
460
+ cancel_bg(): void
461
+ get_backend_job(): BackendJob
462
+ get_conf(): GLib.KeyFile
463
+ get_full_paths(): string[]
464
+ get_package_ids(): string[]
465
+ get_results(): PackageKitGlib.Results
466
+ get_role(): PackageKitGlib.RoleEnum
467
+ get_state(): TransactionState
468
+ get_tid(): string | null
469
+ get_transaction_flags(): PackageKitGlib.Bitfield
470
+ get_uid(): number
471
+ get_values(): string[]
472
+ is_exclusive(): boolean
473
+ is_finished_with_lock_required(): boolean
474
+ /**
475
+ * Make this transaction exclusive.
476
+ */
477
+ make_exclusive(): void
478
+ reset_after_lock_error(): void
479
+ run(): boolean
480
+ set_backend(backend: Backend): void
481
+ set_full_paths(full_paths: string | null): void
482
+ set_package_ids(package_ids: string | null): void
483
+ /**
484
+ * A transaction can have only one state at any time as it is processed.
485
+ * Typically, these states will be:
486
+ *
487
+ * 1. 'new'
488
+ * 2. 'waiting for auth' <--- waiting for PolicyKit (optional)
489
+ * 3. 'committed' <--- when the client sets the role
490
+ * 4. 'ready' <--- when the transaction is ready to be run
491
+ * 5. 'running' <--- where PkBackend gets used
492
+ * 6. 'finished'
493
+ * @param state
494
+ */
495
+ set_state(state: TransactionState): boolean
496
+ /**
497
+ * Connect all backend_signals to the PkTransaction.
498
+ * @param job
499
+ */
500
+ signals_reset(job: BackendJob): void
501
+ /**
502
+ * Skip authorization checks.
503
+ * NOTE: This is *only* for testing, do never
504
+ * use it somewhere else!
505
+ * @param skip_checks
506
+ */
507
+ skip_auth_checks(skip_checks: boolean): void
508
+
509
+ // Own signals of PackageKitPlugin-1.0.PackageKitPlugin.Transaction
510
+
511
+ connect(sigName: "finished", callback: Transaction.FinishedSignalCallback): number
512
+ connect_after(sigName: "finished", callback: Transaction.FinishedSignalCallback): number
513
+ emit(sigName: "finished", ...args: any[]): void
514
+
515
+ // Class property signals of PackageKitPlugin-1.0.PackageKitPlugin.Transaction
516
+
517
+ connect(sigName: string, callback: (...args: any[]) => void): number
518
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
519
+ emit(sigName: string, ...args: any[]): void
520
+ disconnect(id: number): void
521
+ }
522
+
523
+ export class Transaction extends GObject.Object {
524
+
525
+ // Own properties of PackageKitPlugin-1.0.PackageKitPlugin.Transaction
526
+
527
+ static name: string
528
+ static $gtype: GObject.GType<Transaction>
529
+
530
+ // Constructors of PackageKitPlugin-1.0.PackageKitPlugin.Transaction
531
+
532
+ constructor(config?: Transaction.ConstructorProperties)
533
+ constructor(conf: GLib.KeyFile, introspection: Gio.DBusNodeInfo)
534
+ static new(conf: GLib.KeyFile, introspection: Gio.DBusNodeInfo): Transaction
535
+ _init(config?: Transaction.ConstructorProperties): void
536
+ static error_quark(): GLib.Quark
537
+ static state_to_string(state: TransactionState): string | null
538
+ }
539
+
540
+ export interface BackendClass {
541
+
542
+ // Own fields of PackageKitPlugin-1.0.PackageKitPlugin.BackendClass
543
+
544
+ parent_class: GObject.ObjectClass
545
+ }
546
+
547
+ export abstract class BackendClass {
548
+
549
+ // Own properties of PackageKitPlugin-1.0.PackageKitPlugin.BackendClass
550
+
551
+ static name: string
552
+ }
553
+
554
+ export interface BackendJobClass {
555
+
556
+ // Own fields of PackageKitPlugin-1.0.PackageKitPlugin.BackendJobClass
557
+
558
+ parent_class: GObject.ObjectClass
559
+ }
560
+
561
+ export abstract class BackendJobClass {
562
+
563
+ // Own properties of PackageKitPlugin-1.0.PackageKitPlugin.BackendJobClass
564
+
565
+ static name: string
566
+ }
567
+
568
+ export interface BackendJobPrivate {
569
+ }
570
+
571
+ export class BackendJobPrivate {
572
+
573
+ // Own properties of PackageKitPlugin-1.0.PackageKitPlugin.BackendJobPrivate
574
+
575
+ static name: string
576
+ }
577
+
578
+ export interface BackendPrivate {
579
+ }
580
+
581
+ export class BackendPrivate {
582
+
583
+ // Own properties of PackageKitPlugin-1.0.PackageKitPlugin.BackendPrivate
584
+
585
+ static name: string
586
+ }
587
+
588
+ export interface Plugin {
589
+
590
+ // Own fields of PackageKitPlugin-1.0.PackageKitPlugin.Plugin
591
+
592
+ backend: Backend
593
+ job: BackendJob
594
+ priv: PluginPrivate
595
+
596
+ // Owm methods of PackageKitPlugin-1.0.PackageKitPlugin.Plugin
597
+
598
+ destroy(): void
599
+ initialize(): void
600
+ state_changed(): void
601
+ transaction_content_types(transaction: Transaction): void
602
+ transaction_finished_end(transaction: Transaction): void
603
+ transaction_finished_results(transaction: Transaction): void
604
+ transaction_get_action(transaction: Transaction, action_id: string | null): string | null
605
+ transaction_run(transaction: Transaction): void
606
+ transaction_started(transaction: Transaction): void
607
+ }
608
+
609
+ export class Plugin {
610
+
611
+ // Own properties of PackageKitPlugin-1.0.PackageKitPlugin.Plugin
612
+
613
+ static name: string
614
+
615
+ // Constructors of PackageKitPlugin-1.0.PackageKitPlugin.Plugin
616
+
617
+ static get_description(): string | null
618
+ }
619
+
620
+ export interface PluginPrivate {
621
+ }
622
+
623
+ export class PluginPrivate {
624
+
625
+ // Own properties of PackageKitPlugin-1.0.PackageKitPlugin.PluginPrivate
626
+
627
+ static name: string
628
+ }
629
+
630
+ export interface TransactionClass {
631
+
632
+ // Own fields of PackageKitPlugin-1.0.PackageKitPlugin.TransactionClass
633
+
634
+ parent_class: GObject.ObjectClass
635
+ }
636
+
637
+ export abstract class TransactionClass {
638
+
639
+ // Own properties of PackageKitPlugin-1.0.PackageKitPlugin.TransactionClass
640
+
641
+ static name: string
642
+ }
643
+
644
+ export interface TransactionPrivate {
645
+ }
646
+
647
+ export class TransactionPrivate {
648
+
649
+ // Own properties of PackageKitPlugin-1.0.PackageKitPlugin.TransactionPrivate
650
+
651
+ static name: string
652
+ }
653
+
654
+ /**
655
+ * Name of the imported GIR library
656
+ * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
657
+ */
658
+ export const __name__: string
659
+ /**
660
+ * Version of the imported GIR library
661
+ * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
662
+ */
663
+ export const __version__: string
664
+ // END