@girs/gsf-1 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.
package/gsf-1.d.cts ADDED
@@ -0,0 +1,3991 @@
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
+ * Gsf-1
10
+ */
11
+
12
+ import type libxml2 from '@girs/libxml2-2.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 ClipFormat {
18
+ /**
19
+ * Windows clipboard format
20
+ */
21
+ WINDOWS_CLIPBOARD,
22
+ /**
23
+ * Macintosh clipboard format
24
+ */
25
+ MACINTOSH_CLIPBOARD,
26
+ /**
27
+ * GUID that contains a format identifier
28
+ */
29
+ GUID,
30
+ /**
31
+ * No clipboard data
32
+ */
33
+ NO_DATA,
34
+ /**
35
+ * Custom clipboard format
36
+ */
37
+ CLIPBOARD_FORMAT_NAME,
38
+ /**
39
+ * Unknown clipboard type or invalid data
40
+ */
41
+ UNKNOWN,
42
+ }
43
+ export enum ClipFormatWindows {
44
+ /**
45
+ * error
46
+ */
47
+ ERROR,
48
+ /**
49
+ * unknown
50
+ */
51
+ UNKNOWN,
52
+ /**
53
+ * CF_METAFILEPICT
54
+ */
55
+ METAFILE,
56
+ /**
57
+ * CF_DIB
58
+ */
59
+ DIB,
60
+ /**
61
+ * CF_ENHMETAFILE
62
+ */
63
+ ENHANCED_METAFILE,
64
+ }
65
+ export enum Error {
66
+ /**
67
+ * Memory allocation failed
68
+ */
69
+ OUT_OF_MEMORY,
70
+ /**
71
+ * Invalid data encountered (e.g. not enough data)
72
+ */
73
+ INVALID_DATA,
74
+ }
75
+ /**
76
+ * Controls when to add quotes around fields.
77
+ */
78
+ export enum OutputCsvQuotingMode {
79
+ /**
80
+ * never add quotes around fields
81
+ */
82
+ NEVER,
83
+ /**
84
+ * add quotes around fields when needed
85
+ */
86
+ AUTO,
87
+ /**
88
+ * always add quotes around fields
89
+ */
90
+ ALWAYS,
91
+ }
92
+ /**
93
+ * Controls the handling of character data within a parser node.
94
+ */
95
+ export enum XMLContent {
96
+ /**
97
+ * node has no cstr contents
98
+ */
99
+ NO_CONTENT,
100
+ /**
101
+ * node has cstr contents
102
+ */
103
+ CONTENT,
104
+ /**
105
+ * node has contents that is shared with children
106
+ */
107
+ SHARED_CONTENT,
108
+ /**
109
+ * node is second or later occurrence
110
+ */
111
+ TODO_2ND,
112
+ }
113
+ export enum ZipCompressionMethod {
114
+ STORED,
115
+ SHRUNK,
116
+ REDUCEDX1,
117
+ REDUCEDX2,
118
+ REDUCEDX3,
119
+ REDUCEDX4,
120
+ IMPLODED,
121
+ TOKENIZED,
122
+ DEFLATED,
123
+ DEFLATED_BETTER,
124
+ IMPLODED_BETTER,
125
+ }
126
+ /**
127
+ * (Integer) Count of bytes in the document.
128
+ */
129
+ export const META_NAME_BYTE_COUNT: string | null
130
+ /**
131
+ * (Unsigned Integer) Identifier representing the case-sensitiveness.
132
+ * <note>of what ?? why is it an integer ??</note>
133
+ */
134
+ export const META_NAME_CASE_SENSITIVE: string | null
135
+ /**
136
+ * (String) Category of the document. <note>example???</note>
137
+ */
138
+ export const META_NAME_CATEGORY: string | null
139
+ /**
140
+ * (Integer) Count of cells in the spread-sheet document, if appropriate.
141
+ */
142
+ export const META_NAME_CELL_COUNT: string | null
143
+ /**
144
+ * (Integer) Count of characters in the document.
145
+ *
146
+ * TODO See how to sync this with ODF's document-statistic
147
+ */
148
+ export const META_NAME_CHARACTER_COUNT: string | null
149
+ /**
150
+ * (UnsignedShort) The MS codepage to encode strings for metadata
151
+ * 1.14.0 Clarified that this is unique from _NAME_CODEPAGE in msole
152
+ */
153
+ export const META_NAME_CODEPAGE: string | null
154
+ /**
155
+ * (String) Name of the company/organization that the "CREATOR" entity is
156
+ * associated with.
157
+ *
158
+ * 1.14.1 Moved from "gsf:company" to "dc:publisher".
159
+ */
160
+ export const META_NAME_COMPANY: string | null
161
+ /**
162
+ * (String) An entity primarily responsible for making the content of the
163
+ * resource typically a person, organization, or service.
164
+ *
165
+ * 1.14.0 Moved from "gsf" to "dc".
166
+ */
167
+ export const META_NAME_CREATOR: string | null
168
+ /**
169
+ * (Date as ISO String) A date associated with an event in the life cycle of
170
+ * the resource (creation/publication date).
171
+ * Moved from gsf:date-created to meta:creation-date. This way can be used correctly
172
+ * by OpenDocument and Gnumeric.
173
+ */
174
+ export const META_NAME_DATE_CREATED: string | null
175
+ /**
176
+ * (GsfTimestamp) The last time this document was saved.
177
+ *
178
+ * 1.14.0 Moved from dc:date-modified to dc:date.
179
+ */
180
+ export const META_NAME_DATE_MODIFIED: string | null
181
+ /**
182
+ * (String) An account of the content of the resource.
183
+ */
184
+ export const META_NAME_DESCRIPTION: string | null
185
+ /**
186
+ * (None) Reserved name (PID) for Dictionary
187
+ */
188
+ export const META_NAME_DICTIONARY: string | null
189
+ /**
190
+ * (Vector of strings) Names of the 'interesting' parts of the document. In
191
+ * spreadsheets this is a list of the sheet names, and the named expressions.
192
+ * From MSOLE
193
+ */
194
+ export const META_NAME_DOCUMENT_PARTS: string | null
195
+ /**
196
+ * (Date as ISO String) The total-time taken until the last modification.
197
+ * Moved from "gsf" to "meta". This way can be used correctly by OpenDocument
198
+ * and Gnumeric.
199
+ */
200
+ export const META_NAME_EDITING_DURATION: string | null
201
+ /**
202
+ * (String) The application that generated this document. AbiWord, Gnumeric,
203
+ * etc...
204
+ *
205
+ * 1.14.0 Moved from "gsf" to "meta".
206
+ */
207
+ export const META_NAME_GENERATOR: string | null
208
+ /**
209
+ * (Vector of string value pairs stored in alternating elements) Store the
210
+ * counts of objects in the document as names 'worksheet' and count '4'
211
+ * From MSOLE
212
+ */
213
+ export const META_NAME_HEADING_PAIRS: string | null
214
+ /**
215
+ * (Integer) Count of hidden-slides in the presentation document.
216
+ */
217
+ export const META_NAME_HIDDEN_SLIDE_COUNT: string | null
218
+ /**
219
+ * (Integer) Count of images in the document, if appropriate.
220
+ */
221
+ export const META_NAME_IMAGE_COUNT: string | null
222
+ /**
223
+ * (String) Specifies the name of the person who created the document
224
+ * initially.
225
+ * 1.14.0 Moved from "gsf" to "meta".
226
+ */
227
+ export const META_NAME_INITIAL_CREATOR: string | null
228
+ /**
229
+ * (String) Searchable, indexable keywords. Similar to PDF keywords or HTML's
230
+ * meta block.
231
+ */
232
+ export const META_NAME_KEYWORD: string | null
233
+ /**
234
+ * (GsfDocPropVector of String) Searchable, indexable keywords. Similar to PDF
235
+ * keywords or HTML's meta block.
236
+ */
237
+ export const META_NAME_KEYWORDS: string | null
238
+ /**
239
+ * (String) The locale language of the intellectual content of the resource
240
+ * (basically xx_YY form for us).
241
+ * 1.14.0 Clarified that this is unique from _NAME_CODEPAGE in msole
242
+ */
243
+ export const META_NAME_LANGUAGE: string | null
244
+ /**
245
+ * (GSF_META_NAME_HEADING_PAIRS) The last time this document was printed.
246
+ *
247
+ * 1.14.0 Moved from "gsf" to "dc".
248
+ * 1.14.1 Moved back to "gsf" from "dc".
249
+ */
250
+ export const META_NAME_LAST_PRINTED: string | null
251
+ /**
252
+ * (String) The entity that made the last change to the document, typically a
253
+ * person, organization, or service.
254
+ */
255
+ export const META_NAME_LAST_SAVED_BY: string | null
256
+ /**
257
+ * (Integer) Count of liness in the document.
258
+ */
259
+ export const META_NAME_LINE_COUNT: string | null
260
+ /**
261
+ * (Boolean) ???????
262
+ */
263
+ export const META_NAME_LINKS_DIRTY: string | null
264
+ /**
265
+ * (Unsigned Integer) Identifier representing the default system locale.
266
+ */
267
+ export const META_NAME_LOCALE_SYSTEM_DEFAULT: string | null
268
+ /**
269
+ * (String) Name of the manager of "CREATOR" entity.
270
+ */
271
+ export const META_NAME_MANAGER: string | null
272
+ /**
273
+ * (Integer) Count of "multi-media" clips in the document.
274
+ */
275
+ export const META_NAME_MM_CLIP_COUNT: string | null
276
+ /**
277
+ * (Unknown) User-defined name
278
+ */
279
+ export const META_NAME_MSOLE_UNKNOWN_17: string | null
280
+ /**
281
+ * (Unknown) User-defined name
282
+ */
283
+ export const META_NAME_MSOLE_UNKNOWN_18: string | null
284
+ /**
285
+ * (Boolean) User-defined name
286
+ */
287
+ export const META_NAME_MSOLE_UNKNOWN_19: string | null
288
+ /**
289
+ * (Unknown) User-defined name
290
+ */
291
+ export const META_NAME_MSOLE_UNKNOWN_20: string | null
292
+ /**
293
+ * (Unknown) User-defined name
294
+ */
295
+ export const META_NAME_MSOLE_UNKNOWN_21: string | null
296
+ /**
297
+ * (Boolean) User-defined name
298
+ */
299
+ export const META_NAME_MSOLE_UNKNOWN_22: string | null
300
+ /**
301
+ * (i4) User-defined name
302
+ */
303
+ export const META_NAME_MSOLE_UNKNOWN_23: string | null
304
+ /**
305
+ * (Integer) Count of "notes" in the document.
306
+ */
307
+ export const META_NAME_NOTE_COUNT: string | null
308
+ /**
309
+ * (Integer) Count of objects (OLE and other graphics) in the document, if
310
+ * appropriate.
311
+ */
312
+ export const META_NAME_OBJECT_COUNT: string | null
313
+ /**
314
+ * (Integer) Count of pages in the document, if appropriate.
315
+ */
316
+ export const META_NAME_PAGE_COUNT: string | null
317
+ /**
318
+ * (Integer) Count of paragraphs in the document, if appropriate.
319
+ */
320
+ export const META_NAME_PARAGRAPH_COUNT: string | null
321
+ /**
322
+ * (String) Type of presentation, like "On-screen Show", "SlideView" etc.
323
+ */
324
+ export const META_NAME_PRESENTATION_FORMAT: string | null
325
+ /**
326
+ * (String) Specifies the name of the last person who printed the document.
327
+ *
328
+ * 1.14.0 Moved from "gsf" to "meta".
329
+ */
330
+ export const META_NAME_PRINTED_BY: string | null
331
+ /**
332
+ * (GsfTimestamp) Specifies the date and time when the document was last
333
+ * printed.
334
+ */
335
+ export const META_NAME_PRINT_DATE: string | null
336
+ /**
337
+ * (Integer) Count of revision on the document, if appropriate.
338
+ * Moved from gsf:revision-count to meta:editing-cycles. This way can be used
339
+ * correctly by OpenDocument and Gnumeric.
340
+ */
341
+ export const META_NAME_REVISION_COUNT: string | null
342
+ /**
343
+ * (Boolean) ?????
344
+ */
345
+ export const META_NAME_SCALE: string | null
346
+ /**
347
+ * (Integer) Level of security.
348
+ *
349
+ * <informaltable frame="none" role="params">
350
+ * <tgroup cols="2">
351
+ * <thead>
352
+ * <row><entry align="left">Level</entry><entry>Value</entry></row>
353
+ * </thead>
354
+ * <tbody>
355
+ * <row><entry>None</entry><entry>0</entry></row>
356
+ * <row><entry>Password protected</entry><entry>1</entry></row>
357
+ * <row><entry>Read-only recommended</entry><entry>2</entry></row>
358
+ * <row><entry>Read-only enforced</entry><entry>3</entry></row>
359
+ * <row><entry>Locked for annotations</entry><entry>4</entry></row>
360
+ * </tbody></tgroup></informaltable>
361
+ */
362
+ export const META_NAME_SECURITY: string | null
363
+ /**
364
+ * (Integer) Count of slides in the presentation document.
365
+ */
366
+ export const META_NAME_SLIDE_COUNT: string | null
367
+ /**
368
+ * (Integer) Count of pages in the document, if appropriate.
369
+ */
370
+ export const META_NAME_SPREADSHEET_COUNT: string | null
371
+ /**
372
+ * (String) The topic of the content of the resource,
373
+ * <emphasis>typically</emphasis> including keywords.
374
+ */
375
+ export const META_NAME_SUBJECT: string | null
376
+ /**
377
+ * (Integer) Count of tables in the document, if appropriate.
378
+ */
379
+ export const META_NAME_TABLE_COUNT: string | null
380
+ /**
381
+ * (String) The template file that is been used to generate this document.
382
+ *
383
+ * 1.14.0 Moved from "gsf" to "meta"
384
+ */
385
+ export const META_NAME_TEMPLATE: string | null
386
+ /**
387
+ * (GsfClipData) Thumbnail data of the document, typically a
388
+ * preview image of the document.
389
+ */
390
+ export const META_NAME_THUMBNAIL: string | null
391
+ /**
392
+ * (String) A formal name given to the resource.
393
+ */
394
+ export const META_NAME_TITLE: string | null
395
+ /**
396
+ * (Integer) Count of words in the document.
397
+ */
398
+ export const META_NAME_WORD_COUNT: string | null
399
+ /**
400
+ * Decodes a chunk of base64 encoded data from `data` back into `data`.
401
+ * @param data data stream
402
+ * @param len max length of data to decode
403
+ * @returns the number of bytes converted
404
+ */
405
+ export function base64_decode_simple(data: Uint8Array, len: number): number
406
+ /**
407
+ * Decodes a chunk of base64 encoded data
408
+ * @param in_ input stream
409
+ * @param len max length of data to decode
410
+ * @param out output stream
411
+ * @param state holds the number of bits that are stored in `save`
412
+ * @param save leftover bits that have not yet been decoded
413
+ * @returns the number of bytes converted
414
+ */
415
+ export function base64_decode_step(in_: Uint8Array, len: number, out: Uint8Array, state: number, save: number): [ /* returnType */ number, /* state */ number, /* save */ number ]
416
+ /**
417
+ * This funcion should be called to when finished encoding everything, to
418
+ * flush off the last little bit.
419
+ * @param in_ Data to be encoded
420
+ * @param break_lines Whether to use line breaks
421
+ * @param out Encoded data.
422
+ * @param state holds the number of bits that are stored in `save`
423
+ * @param save leftover bits that have not yet been decoded
424
+ * @returns a count of the number of bytes in the final block.
425
+ */
426
+ export function base64_encode_close(in_: Uint8Array, break_lines: boolean, out: Uint8Array, state: number, save: number): [ /* returnType */ number, /* state */ number, /* save */ number ]
427
+ /**
428
+ * Encodes data from `data` back into `data` using base64 encoding.
429
+ * @param data data stream
430
+ * @param len max length of data to encode
431
+ * @returns the number of bytes encoded
432
+ */
433
+ export function base64_encode_simple(data: Uint8Array, len: number): number
434
+ /**
435
+ * Performs an 'encode step', only encodes blocks of 3 characters from `in` into
436
+ * the output `out` at a time, saves left-over state in `state` and `save`
437
+ * (initialise to 0 on first invocation).
438
+ * @param in_ input stream
439
+ * @param len max length of data to decode
440
+ * @param break_lines Whether to use line breaks
441
+ * @param out output stream
442
+ * @param state holds the number of bits that are stored in `save`
443
+ * @param save leftover bits that have not yet been decoded
444
+ * @returns the number of bytes encoded
445
+ */
446
+ export function base64_encode_step(in_: Uint8Array, len: number, break_lines: boolean, out: Uint8Array, state: number, save: number): [ /* returnType */ number, /* state */ number, /* save */ number ]
447
+ export function debug_flag(flag: string | null): boolean
448
+ /**
449
+ * A debugging utility to dump the content of `meta` via g_print
450
+ * @param meta #GsfDocMetaData
451
+ */
452
+ export function doc_meta_dump(meta: DocMetaData): void
453
+ export function error_quark(): GLib.Quark
454
+ /**
455
+ * Extracts the extension from the end of a filename (the part after the final
456
+ * '.' in the filename).
457
+ * @param path A filename or file path.
458
+ * @returns A pointer to the extension part of the filename, or a pointer to the end of the string if the filename does not have an extension.
459
+ */
460
+ export function extension_pointer(path: string | null): string | null
461
+ /**
462
+ * A utility wrapper to make sure filenames are valid utf8.
463
+ * Caller must g_free the result.
464
+ * @param filename file name suitable for open(2).
465
+ * @param quoted if %TRUE, the resulting utf8 file name will be quoted (unless it is invalid).
466
+ * @returns @filename using utf-8 encoding for display
467
+ */
468
+ export function filename_to_utf8(filename: string | null, quoted: boolean): string | null
469
+ /**
470
+ * Initializes the GSF library
471
+ */
472
+ export function init(): void
473
+ /**
474
+ * Initializes the GSF library and associates it with a type module `mod`.
475
+ * @param module #GTypeModule.
476
+ */
477
+ export function init_dynamic(module: GObject.TypeModule): void
478
+ /**
479
+ * Interpret binary data as a double in little endian order.
480
+ * @param p pointer to storage
481
+ * @returns interpreted data
482
+ */
483
+ export function le_get_double(p: any | null): number
484
+ /**
485
+ * Interpret binary data as a float in little endian order.
486
+ * @param p pointer to storage
487
+ * @returns interpreted data
488
+ */
489
+ export function le_get_float(p: any | null): number
490
+ /**
491
+ * Interpret binary data as a guint64 (8 byte unsigned integer type) in little
492
+ * endian order.
493
+ * @param p pointer to storage
494
+ * @returns interpreted data
495
+ */
496
+ export function le_get_guint64(p: any | null): number
497
+ /**
498
+ * Store a value of type double in memory in little endian order
499
+ * @param p pointer to storage
500
+ * @param d double to be stored
501
+ */
502
+ export function le_set_double(p: any | null, d: number): void
503
+ /**
504
+ * Store a value of type float in memory in little endian order.
505
+ * @param p pointer to storage
506
+ * @param f float to be stored
507
+ */
508
+ export function le_set_float(p: any | null, f: number): void
509
+ /**
510
+ * Dump `len` bytes from the memory location given by `ptr`.
511
+ * @param ptr memory area to be dumped.
512
+ * @param len how many bytes will be dumped.
513
+ */
514
+ export function mem_dump(ptr: number, len: number): void
515
+ export function msole_codepage_to_lid(codepage: number): number
516
+ export function msole_iconv_win_codepage(): number
517
+ /**
518
+ * Decompresses an LZ compressed stream.
519
+ * @param input stream to read from
520
+ * @param offset offset into it for start byte of compresse stream
521
+ * @returns A GByteArray that the caller is responsible for freeing
522
+ */
523
+ export function msole_inflate(input: Input, offset: gsf_off_t): Uint8Array
524
+ export function msole_language_for_lid(lid: number): string | null
525
+ export function msole_lid_for_language(lang: string | null): number
526
+ export function msole_lid_to_codepage(lid: number): number
527
+ export function msole_lid_to_codepage_str(lid: number): string | null
528
+ export function odf_get_ns(): XMLInNS
529
+ /**
530
+ * Gives the ODF version used by libgsf when writing Open Document files.
531
+ * @returns the ODF version: 102.
532
+ */
533
+ export function odf_get_version(): number
534
+ /**
535
+ * Gives the ODF version used by libgsf when writing Open Document files.
536
+ * @returns the ODF version as a string: "1.2".
537
+ */
538
+ export function odf_get_version_string(): string | null
539
+ export function open_pkg_error_id(): number
540
+ /**
541
+ * New in 1.14.9
542
+ *
543
+ * Walks each relationship associated with `opkg` and calls `func` with `user_data`.
544
+ * @param opkg #GsfInput
545
+ * @param func #GsfOpenPkgIter
546
+ */
547
+ export function open_pkg_foreach_rel(opkg: Input, func: OpenPkgIter): void
548
+ export function open_pkg_open_rel(opkg: Input, rel: OpenPkgRel): Input
549
+ /**
550
+ * New in 1.14.7
551
+ *
552
+ * Open `opkg'`s relation `id`
553
+ * @param opkg #GsfInput
554
+ * @param id target id
555
+ * @returns A new GsfInput or %NULL, and sets @err if possible.
556
+ */
557
+ export function open_pkg_open_rel_by_id(opkg: Input, id: string | null): Input
558
+ /**
559
+ * New in 1.14.9
560
+ *
561
+ * Open one of `opkg'`s relationships with type=`type`.
562
+ * @param opkg #GsfInput
563
+ * @param type target type
564
+ * @returns A new GsfInput or %NULL, and sets @err if possible.
565
+ */
566
+ export function open_pkg_open_rel_by_type(opkg: Input, type: string | null): Input
567
+ /**
568
+ * Convenience function to parse a related part.
569
+ * @param xin #GsfXMLIn
570
+ * @param id target id
571
+ * @param dtd #GsfXMLInNode
572
+ * @param ns #GsfXMLInNS
573
+ * @returns %NULL on success or a #GError on failure.
574
+ */
575
+ export function open_pkg_parse_rel_by_id(xin: XMLIn, id: string | null, dtd: XMLInNode, ns: XMLInNS): GLib.Error
576
+ export function property_settings_find(name: string | null, params: GObject.Parameter[]): GObject.Parameter
577
+ export function property_settings_free(params: GObject.Parameter[]): void
578
+ /**
579
+ * De-intializes the GSF library
580
+ * Currently does nothing.
581
+ */
582
+ export function shutdown(): void
583
+ /**
584
+ * De-intializes the GSF library from a type module.
585
+ * Currently does nothing.
586
+ * @param module currently unused
587
+ */
588
+ export function shutdown_dynamic(module: GObject.TypeModule): void
589
+ /**
590
+ * This function returns the array of values inside #GsfDocPropVector.
591
+ * No additional references are created.
592
+ * @param value A GValue of type #GsfDocPropVector.
593
+ * @returns A #GArray of #GValue
594
+ */
595
+ export function value_get_docprop_array(value: any): any[] | null
596
+ export function value_get_docprop_varray(value: any): GObject.ValueArray
597
+ /**
598
+ * This function returns a pointer to the GsfDocPropVector structure in `value`.
599
+ * No additional references are created.
600
+ * @param value A GValue of type #GsfDocPropVector.
601
+ * @returns A pointer to the #GsfDocPropVector structure in @value
602
+ */
603
+ export function value_get_docprop_vector(value: any): DocPropVector
604
+ /**
605
+ * Decompresses VBA stream.
606
+ * @param input stream to read from
607
+ * @param offset offset into it for start byte of compressed stream
608
+ * @param size size of the returned array
609
+ * @param add_null_terminator whenever add or not null at the end of array
610
+ * @returns A pointer to guint8 array
611
+ */
612
+ export function vba_inflate(input: Input, offset: gsf_off_t, size: number, add_null_terminator: boolean): number
613
+ /**
614
+ * Dumps the document `cur` into `output`.
615
+ * @param output #GsfOutput
616
+ * @param cur #xmlDocPtr
617
+ * @param encoding The encoding to use.
618
+ * @param format %TRUE to reformat the output.
619
+ * @returns status from xmlSaveFormatFileTo.
620
+ */
621
+ export function xmlDocFormatDump(output: Output, cur: libxml2.Doc, encoding: string | null, format: boolean): number
622
+ /**
623
+ * Try to parse `str` as a value of type `t` into `res`.
624
+ * @param res Result value
625
+ * @param t Type of data
626
+ * @param str Value string
627
+ * @returns True when parsing of @str as a value of type @t was succesfull; false otherwise.
628
+ */
629
+ export function xml_gvalue_from_str(res: any, t: GObject.GType, str: string | null): boolean
630
+ export function xml_probe(input: Input, func: XMLProbeFunc): boolean
631
+ export interface OpenPkgIter {
632
+ (opkg: Input, rel: OpenPkgRel): void
633
+ }
634
+ export interface XMLInExtDtor {
635
+ (xin: XMLIn, old_state: any | null): void
636
+ }
637
+ export interface XMLInUnknownFunc {
638
+ (xin: XMLIn, elem: libxml2.Char, attrs: libxml2.Char): boolean
639
+ }
640
+ export interface XMLProbeFunc {
641
+ (name: libxml2.Char, prefix: libxml2.Char, URI: libxml2.Char, nb_namespaces: number, namespaces: libxml2.Char, nb_attributes: number, nb_defaulted: number, attributes: libxml2.Char): boolean
642
+ }
643
+ export module Blob {
644
+
645
+ // Constructor properties interface
646
+
647
+ export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
648
+ }
649
+
650
+ }
651
+
652
+ export interface Blob {
653
+
654
+ // Own fields of Gsf-1.Gsf.Blob
655
+
656
+ object: GObject.Object
657
+ priv: BlobPrivate
658
+
659
+ // Owm methods of Gsf-1.Gsf.Blob
660
+
661
+ /**
662
+ * Queries the size in bytes of the data stored in the blob.
663
+ * @returns Size in bytes, or 0 if the data is %NULL.
664
+ */
665
+ get_size(): number
666
+ /**
667
+ * Queries a pointer to the data stored in the blob. This does not
668
+ * copy the data for you; it returns a pointer to the actual buffer
669
+ * which the blob uses internally, so you should not free this buffer
670
+ * on your own.
671
+ * @returns Pointer to the data stored in the blob, or %NULL if the size of the data is zero.
672
+ */
673
+ peek_data(): any | null
674
+
675
+ // Class property signals of Gsf-1.Gsf.Blob
676
+
677
+ connect(sigName: string, callback: (...args: any[]) => void): number
678
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
679
+ emit(sigName: string, ...args: any[]): void
680
+ disconnect(id: number): void
681
+ }
682
+
683
+ export class Blob extends GObject.Object {
684
+
685
+ // Own properties of Gsf-1.Gsf.Blob
686
+
687
+ static name: string
688
+ static $gtype: GObject.GType<Blob>
689
+
690
+ // Constructors of Gsf-1.Gsf.Blob
691
+
692
+ constructor(config?: Blob.ConstructorProperties)
693
+ /**
694
+ * Creates a new #GsfBlob object to hold the specified data. The blob can then
695
+ * be used as a facility for reference-counting for the data. The data is
696
+ * copied internally, so the blob does not hold references to external chunks
697
+ * of memory.
698
+ * @constructor
699
+ * @param data_to_copy Data which will be copied into the blob, or %NULL if `size` is zero.
700
+ * @returns A newly-created #GsfBlob, or %NULL if the data could not be copied. Error domain: #GSF_ERROR Possible errors: #GSF_ERROR_OUT_OF_MEMORY if the @data_to_copy could not be copied.
701
+ */
702
+ constructor(data_to_copy: Uint8Array)
703
+ /**
704
+ * Creates a new #GsfBlob object to hold the specified data. The blob can then
705
+ * be used as a facility for reference-counting for the data. The data is
706
+ * copied internally, so the blob does not hold references to external chunks
707
+ * of memory.
708
+ * @constructor
709
+ * @param data_to_copy Data which will be copied into the blob, or %NULL if `size` is zero.
710
+ * @returns A newly-created #GsfBlob, or %NULL if the data could not be copied. Error domain: #GSF_ERROR Possible errors: #GSF_ERROR_OUT_OF_MEMORY if the @data_to_copy could not be copied.
711
+ */
712
+ static new(data_to_copy: Uint8Array): Blob
713
+ _init(config?: Blob.ConstructorProperties): void
714
+ }
715
+
716
+ export module ClipData {
717
+
718
+ // Constructor properties interface
719
+
720
+ export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
721
+ }
722
+
723
+ }
724
+
725
+ export interface ClipData {
726
+
727
+ // Own fields of Gsf-1.Gsf.ClipData
728
+
729
+ object: GObject.Object
730
+ priv: ClipDataPrivate
731
+
732
+ // Owm methods of Gsf-1.Gsf.ClipData
733
+
734
+ /**
735
+ * Queries the data blob that actually stores a #GsfClipData's binary data.
736
+ * @returns A new reference to the #GsfBlob that stores this @clip_data's binary data. You must use g_object_unref() to dispose of that data blob when you are done with it.
737
+ */
738
+ get_data_blob(): Blob
739
+ /**
740
+ * Queries the clipboard data format of a #GsfClipData. The format refers to the data
741
+ * blob inside the `clip_data;` use gsf_clip_data_get_data_blob() to get that data blob.
742
+ * @returns The format in which the #GsfClipData's data blob is stored.
743
+ */
744
+ get_format(): ClipFormat
745
+ /**
746
+ * Queries the Windows clipboard data format for a #GsfClipData. The `clip_data` must
747
+ * have been created with #GSF_CLIP_FORMAT_WINDOWS_CLIPBOARD.
748
+ * @returns A #GsfClipFormatWindows value. Possible errors: #GSF_ERROR_INVALID_DATA if the data blob in the @clip_data is smaller than it should be; in this case GSF_CLIP_FORMAT_WINDOWS_ERROR will be returned.
749
+ */
750
+ get_windows_clipboard_format(): ClipFormatWindows
751
+ /**
752
+ * Queries a pointer directly to the clipboard data of a #GsfClipData. The
753
+ * resulting pointer is not necessarily the same data pointer that was passed to
754
+ * gsf_blob_new() prior to creating the `clip_data`. For example, if the data is
755
+ * in #GSF_CLIP_FORMAT_WINDOWS_CLIPBOARD format, then it will have extra header
756
+ * bytes in front of the actual metafile data. This function will skip over
757
+ * those header bytes if necessary and return a pointer to the "real" data.
758
+ * @param ret_size Location to return the size of the returned data buffer.
759
+ * @returns Pointer to the real clipboard data. The size in bytes of this buffer is returned in the @ret_size argument.
760
+ */
761
+ peek_real_data(ret_size: number): any | null
762
+
763
+ // Class property signals of Gsf-1.Gsf.ClipData
764
+
765
+ connect(sigName: string, callback: (...args: any[]) => void): number
766
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
767
+ emit(sigName: string, ...args: any[]): void
768
+ disconnect(id: number): void
769
+ }
770
+
771
+ export class ClipData extends GObject.Object {
772
+
773
+ // Own properties of Gsf-1.Gsf.ClipData
774
+
775
+ static name: string
776
+ static $gtype: GObject.GType<ClipData>
777
+
778
+ // Constructors of Gsf-1.Gsf.ClipData
779
+
780
+ constructor(config?: ClipData.ConstructorProperties)
781
+ /**
782
+ * Creates a new #GsfClipData object. This function acquires a reference to the
783
+ * `data_blob,` so you should unref the blob on your own if you no longer need it
784
+ * directly.
785
+ * @constructor
786
+ * @param format Format for the data inside the `data_blob`
787
+ * @param data_blob Object which holds the binary contents for the #GsfClipData
788
+ * @returns A newly-created #GsfClipData.
789
+ */
790
+ constructor(format: ClipFormat, data_blob: Blob)
791
+ /**
792
+ * Creates a new #GsfClipData object. This function acquires a reference to the
793
+ * `data_blob,` so you should unref the blob on your own if you no longer need it
794
+ * directly.
795
+ * @constructor
796
+ * @param format Format for the data inside the `data_blob`
797
+ * @param data_blob Object which holds the binary contents for the #GsfClipData
798
+ * @returns A newly-created #GsfClipData.
799
+ */
800
+ static new(format: ClipFormat, data_blob: Blob): ClipData
801
+ _init(config?: ClipData.ConstructorProperties): void
802
+ }
803
+
804
+ export module DocMetaData {
805
+
806
+ // Constructor properties interface
807
+
808
+ export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
809
+ }
810
+
811
+ }
812
+
813
+ export interface DocMetaData {
814
+
815
+ // Owm methods of Gsf-1.Gsf.DocMetaData
816
+
817
+ /**
818
+ * Iterate through each (key, value) pair in this collection
819
+ * @param func the function called once for each element in the collection
820
+ */
821
+ foreach(func: GLib.HFunc): void
822
+ /**
823
+ * Take ownership of `name` and `value` and insert a property into `meta`.
824
+ * If a property exists with `name,` it is replaced (The link is lost)
825
+ * @param name the id.
826
+ * @param value #GValue
827
+ */
828
+ insert(name: string | null, value: any): void
829
+ lookup(name: string | null): DocProp | null
830
+ /**
831
+ * Extend `xin` so that it can parse a subtree in OpenDoc metadata format
832
+ * @param doc #GsfXMLInDoc
833
+ */
834
+ odf_subtree(doc: XMLIn): void
835
+ /**
836
+ * Read a stream formated as a set of MS OLE properties from `in` and store the
837
+ * results in `accum`.
838
+ * @param in_ #GsfInput
839
+ * @returns A #GError if there was an error.
840
+ */
841
+ read_from_msole(in_: Input): GLib.Error
842
+ /**
843
+ * Read an OpenDocument metadata stream from `input` and store the properties
844
+ * into `md`. Overwrite any existing properties with the same id.
845
+ * @param input #GsfInput
846
+ * @returns a #GError if there is a problem.
847
+ */
848
+ read_from_odf(input: Input): GLib.Error
849
+ /**
850
+ * If `name` does not exist in the collection, do nothing. If `name` does exist,
851
+ * remove it and its value from the collection
852
+ * @param name the non-null string name of the property
853
+ */
854
+ remove(name: string | null): void
855
+ size(): number
856
+ steal(name: string | null): DocProp | null
857
+ store(prop: DocProp): void
858
+ write_to_msole(out: Output, doc_not_component: boolean): boolean
859
+ write_to_odf(output: XMLOut): boolean
860
+
861
+ // Class property signals of Gsf-1.Gsf.DocMetaData
862
+
863
+ connect(sigName: string, callback: (...args: any[]) => void): number
864
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
865
+ emit(sigName: string, ...args: any[]): void
866
+ disconnect(id: number): void
867
+ }
868
+
869
+ /**
870
+ * Class representing information about a document, such as creator and time of
871
+ * last modification.
872
+ * @class
873
+ */
874
+ export class DocMetaData extends GObject.Object {
875
+
876
+ // Own properties of Gsf-1.Gsf.DocMetaData
877
+
878
+ static name: string
879
+ static $gtype: GObject.GType<DocMetaData>
880
+
881
+ // Constructors of Gsf-1.Gsf.DocMetaData
882
+
883
+ constructor(config?: DocMetaData.ConstructorProperties)
884
+ constructor()
885
+ static new(): DocMetaData
886
+ _init(config?: DocMetaData.ConstructorProperties): void
887
+ }
888
+
889
+ export module DocPropVector {
890
+
891
+ // Constructor properties interface
892
+
893
+ export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
894
+ }
895
+
896
+ }
897
+
898
+ export interface DocPropVector {
899
+
900
+ // Owm methods of Gsf-1.Gsf.DocPropVector
901
+
902
+ /**
903
+ * Insert a copy of `value` as the last element of `vector`.
904
+ * @param value The GValue to add to `vector`
905
+ */
906
+ append(value: any): void
907
+ /**
908
+ * This function returns a string which represents all the GValues in `vector`.
909
+ * The caller is responsible for freeing the result.
910
+ *
911
+ * Returns (transfer full): a string of comma-separated values
912
+ */
913
+ as_string(): string | null
914
+
915
+ // Class property signals of Gsf-1.Gsf.DocPropVector
916
+
917
+ connect(sigName: string, callback: (...args: any[]) => void): number
918
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
919
+ emit(sigName: string, ...args: any[]): void
920
+ disconnect(id: number): void
921
+ }
922
+
923
+ export class DocPropVector extends GObject.Object {
924
+
925
+ // Own properties of Gsf-1.Gsf.DocPropVector
926
+
927
+ static name: string
928
+ static $gtype: GObject.GType<DocPropVector>
929
+
930
+ // Constructors of Gsf-1.Gsf.DocPropVector
931
+
932
+ constructor(config?: DocPropVector.ConstructorProperties)
933
+ /**
934
+ * This function creates a new gsf_docprop_vector object.
935
+ * @constructor
936
+ * @returns GsfDocPropVector*
937
+ */
938
+ constructor()
939
+ /**
940
+ * This function creates a new gsf_docprop_vector object.
941
+ * @constructor
942
+ * @returns GsfDocPropVector*
943
+ */
944
+ static new(): DocPropVector
945
+ _init(config?: DocPropVector.ConstructorProperties): void
946
+ }
947
+
948
+ export module Infile {
949
+
950
+ // Constructor properties interface
951
+
952
+ export interface ConstructorProperties extends Input.ConstructorProperties {
953
+ }
954
+
955
+ }
956
+
957
+ export interface Infile {
958
+
959
+ // Own fields of Gsf-1.Gsf.Infile
960
+
961
+ parent: Input
962
+
963
+ // Owm methods of Gsf-1.Gsf.Infile
964
+
965
+ /**
966
+ * This function finds a child that is several directory levels down
967
+ * the tree. If, for example, the names "foo", "bar", and "baz" are
968
+ * given, then this function first finds the "foo" directory in the
969
+ * root infile, then locates "bar" within that directory, and finally
970
+ * locates "baz" within that and returns the "baz" child. In other
971
+ * words, this function finds the "foo/bar/baz" child.
972
+ *
973
+ * New in 1.14.9.
974
+ * @param names A %NULL terminated array of names (e.g. from g_strsplit)
975
+ * @returns a newly created child which must be unrefed.
976
+ */
977
+ child_by_aname(names: string[]): Input
978
+ /**
979
+ * TODO : For 2.0 api will change to include a #GError.
980
+ * @param i target index
981
+ * @returns a newly created child which must be unrefed.
982
+ */
983
+ child_by_index(i: number): Input
984
+ /**
985
+ * The function returns a named child of the given infile. This only
986
+ * works for an immediate child. If you need to go several levels
987
+ * down use gsf_infile_child_by_aname, for example.
988
+ *
989
+ * TODO : For 2.0 api will change to include a #GError.
990
+ * @param name target name
991
+ * @returns a newly created child which must be unrefed.
992
+ */
993
+ child_by_name(name: string | null): Input
994
+ name_by_index(i: number): string | null
995
+ num_children(): number
996
+
997
+ // Own virtual methods of Gsf-1.Gsf.Infile
998
+
999
+ vfunc_name_by_index(i: number): string | null
1000
+ vfunc_num_children(): number
1001
+
1002
+ // Class property signals of Gsf-1.Gsf.Infile
1003
+
1004
+ connect(sigName: "notify::eof", callback: (($obj: Infile, pspec: GObject.ParamSpec) => void)): number
1005
+ connect_after(sigName: "notify::eof", callback: (($obj: Infile, pspec: GObject.ParamSpec) => void)): number
1006
+ emit(sigName: "notify::eof", ...args: any[]): void
1007
+ connect(sigName: "notify::modtime", callback: (($obj: Infile, pspec: GObject.ParamSpec) => void)): number
1008
+ connect_after(sigName: "notify::modtime", callback: (($obj: Infile, pspec: GObject.ParamSpec) => void)): number
1009
+ emit(sigName: "notify::modtime", ...args: any[]): void
1010
+ connect(sigName: "notify::position", callback: (($obj: Infile, pspec: GObject.ParamSpec) => void)): number
1011
+ connect_after(sigName: "notify::position", callback: (($obj: Infile, pspec: GObject.ParamSpec) => void)): number
1012
+ emit(sigName: "notify::position", ...args: any[]): void
1013
+ connect(sigName: "notify::remaining", callback: (($obj: Infile, pspec: GObject.ParamSpec) => void)): number
1014
+ connect_after(sigName: "notify::remaining", callback: (($obj: Infile, pspec: GObject.ParamSpec) => void)): number
1015
+ emit(sigName: "notify::remaining", ...args: any[]): void
1016
+ connect(sigName: string, callback: (...args: any[]) => void): number
1017
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
1018
+ emit(sigName: string, ...args: any[]): void
1019
+ disconnect(id: number): void
1020
+ }
1021
+
1022
+ /**
1023
+ * Class representing an input file.
1024
+ * @class
1025
+ */
1026
+ export class Infile extends Input {
1027
+
1028
+ // Own properties of Gsf-1.Gsf.Infile
1029
+
1030
+ static name: string
1031
+ static $gtype: GObject.GType<Infile>
1032
+
1033
+ // Constructors of Gsf-1.Gsf.Infile
1034
+
1035
+ constructor(config?: Infile.ConstructorProperties)
1036
+ _init(config?: Infile.ConstructorProperties): void
1037
+ }
1038
+
1039
+ export module InfileMSOle {
1040
+
1041
+ // Constructor properties interface
1042
+
1043
+ export interface ConstructorProperties extends Infile.ConstructorProperties {
1044
+ }
1045
+
1046
+ }
1047
+
1048
+ export interface InfileMSOle {
1049
+
1050
+ // Owm methods of Gsf-1.Gsf.InfileMSOle
1051
+
1052
+ /**
1053
+ * Retrieves the 16 byte indentifier (often a GUID in MS Windows apps)
1054
+ * stored within the directory associated with `ole` and stores it in `res`.
1055
+ * @param res 16 byte identifier (often a GUID in MS Windows apps)
1056
+ * @returns TRUE on success
1057
+ */
1058
+ get_class_id(res: number): boolean
1059
+
1060
+ // Class property signals of Gsf-1.Gsf.InfileMSOle
1061
+
1062
+ connect(sigName: "notify::eof", callback: (($obj: InfileMSOle, pspec: GObject.ParamSpec) => void)): number
1063
+ connect_after(sigName: "notify::eof", callback: (($obj: InfileMSOle, pspec: GObject.ParamSpec) => void)): number
1064
+ emit(sigName: "notify::eof", ...args: any[]): void
1065
+ connect(sigName: "notify::modtime", callback: (($obj: InfileMSOle, pspec: GObject.ParamSpec) => void)): number
1066
+ connect_after(sigName: "notify::modtime", callback: (($obj: InfileMSOle, pspec: GObject.ParamSpec) => void)): number
1067
+ emit(sigName: "notify::modtime", ...args: any[]): void
1068
+ connect(sigName: "notify::position", callback: (($obj: InfileMSOle, pspec: GObject.ParamSpec) => void)): number
1069
+ connect_after(sigName: "notify::position", callback: (($obj: InfileMSOle, pspec: GObject.ParamSpec) => void)): number
1070
+ emit(sigName: "notify::position", ...args: any[]): void
1071
+ connect(sigName: "notify::remaining", callback: (($obj: InfileMSOle, pspec: GObject.ParamSpec) => void)): number
1072
+ connect_after(sigName: "notify::remaining", callback: (($obj: InfileMSOle, pspec: GObject.ParamSpec) => void)): number
1073
+ emit(sigName: "notify::remaining", ...args: any[]): void
1074
+ connect(sigName: string, callback: (...args: any[]) => void): number
1075
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
1076
+ emit(sigName: string, ...args: any[]): void
1077
+ disconnect(id: number): void
1078
+ }
1079
+
1080
+ export class InfileMSOle extends Infile {
1081
+
1082
+ // Own properties of Gsf-1.Gsf.InfileMSOle
1083
+
1084
+ static name: string
1085
+ static $gtype: GObject.GType<InfileMSOle>
1086
+
1087
+ // Constructors of Gsf-1.Gsf.InfileMSOle
1088
+
1089
+ constructor(config?: InfileMSOle.ConstructorProperties)
1090
+ /**
1091
+ * Opens the root directory of an MS OLE file.
1092
+ * <note>This adds a reference to `source`.</note>
1093
+ * @constructor
1094
+ * @param source #GsfInput
1095
+ * @returns the new ole file handler
1096
+ */
1097
+ constructor(source: Input)
1098
+ /**
1099
+ * Opens the root directory of an MS OLE file.
1100
+ * <note>This adds a reference to `source`.</note>
1101
+ * @constructor
1102
+ * @param source #GsfInput
1103
+ * @returns the new ole file handler
1104
+ */
1105
+ static new(source: Input): InfileMSOle
1106
+ _init(config?: InfileMSOle.ConstructorProperties): void
1107
+ }
1108
+
1109
+ export module InfileMSVBA {
1110
+
1111
+ // Constructor properties interface
1112
+
1113
+ export interface ConstructorProperties extends Infile.ConstructorProperties {
1114
+ }
1115
+
1116
+ }
1117
+
1118
+ export interface InfileMSVBA {
1119
+
1120
+ // Owm methods of Gsf-1.Gsf.InfileMSVBA
1121
+
1122
+ /**
1123
+ * a collection of names and source code.
1124
+ * @returns A #GHashTable of names and source code (unknown encoding).
1125
+ */
1126
+ get_modules(): GLib.HashTable | null
1127
+ /**
1128
+ * A collection of names and source code which the caller is responsible for destroying.
1129
+ * @returns A #GHashTable of names and source code (unknown encoding).
1130
+ */
1131
+ steal_modules(): GLib.HashTable | null
1132
+
1133
+ // Class property signals of Gsf-1.Gsf.InfileMSVBA
1134
+
1135
+ connect(sigName: "notify::eof", callback: (($obj: InfileMSVBA, pspec: GObject.ParamSpec) => void)): number
1136
+ connect_after(sigName: "notify::eof", callback: (($obj: InfileMSVBA, pspec: GObject.ParamSpec) => void)): number
1137
+ emit(sigName: "notify::eof", ...args: any[]): void
1138
+ connect(sigName: "notify::modtime", callback: (($obj: InfileMSVBA, pspec: GObject.ParamSpec) => void)): number
1139
+ connect_after(sigName: "notify::modtime", callback: (($obj: InfileMSVBA, pspec: GObject.ParamSpec) => void)): number
1140
+ emit(sigName: "notify::modtime", ...args: any[]): void
1141
+ connect(sigName: "notify::position", callback: (($obj: InfileMSVBA, pspec: GObject.ParamSpec) => void)): number
1142
+ connect_after(sigName: "notify::position", callback: (($obj: InfileMSVBA, pspec: GObject.ParamSpec) => void)): number
1143
+ emit(sigName: "notify::position", ...args: any[]): void
1144
+ connect(sigName: "notify::remaining", callback: (($obj: InfileMSVBA, pspec: GObject.ParamSpec) => void)): number
1145
+ connect_after(sigName: "notify::remaining", callback: (($obj: InfileMSVBA, pspec: GObject.ParamSpec) => void)): number
1146
+ emit(sigName: "notify::remaining", ...args: any[]): void
1147
+ connect(sigName: string, callback: (...args: any[]) => void): number
1148
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
1149
+ emit(sigName: string, ...args: any[]): void
1150
+ disconnect(id: number): void
1151
+ }
1152
+
1153
+ export class InfileMSVBA extends Infile {
1154
+
1155
+ // Own properties of Gsf-1.Gsf.InfileMSVBA
1156
+
1157
+ static name: string
1158
+ static $gtype: GObject.GType<InfileMSVBA>
1159
+
1160
+ // Constructors of Gsf-1.Gsf.InfileMSVBA
1161
+
1162
+ constructor(config?: InfileMSVBA.ConstructorProperties)
1163
+ constructor(source: Infile)
1164
+ static new(source: Infile): InfileMSVBA
1165
+ _init(config?: InfileMSVBA.ConstructorProperties): void
1166
+ }
1167
+
1168
+ export module InfileStdio {
1169
+
1170
+ // Constructor properties interface
1171
+
1172
+ export interface ConstructorProperties extends Infile.ConstructorProperties {
1173
+ }
1174
+
1175
+ }
1176
+
1177
+ export interface InfileStdio {
1178
+
1179
+ // Class property signals of Gsf-1.Gsf.InfileStdio
1180
+
1181
+ connect(sigName: "notify::eof", callback: (($obj: InfileStdio, pspec: GObject.ParamSpec) => void)): number
1182
+ connect_after(sigName: "notify::eof", callback: (($obj: InfileStdio, pspec: GObject.ParamSpec) => void)): number
1183
+ emit(sigName: "notify::eof", ...args: any[]): void
1184
+ connect(sigName: "notify::modtime", callback: (($obj: InfileStdio, pspec: GObject.ParamSpec) => void)): number
1185
+ connect_after(sigName: "notify::modtime", callback: (($obj: InfileStdio, pspec: GObject.ParamSpec) => void)): number
1186
+ emit(sigName: "notify::modtime", ...args: any[]): void
1187
+ connect(sigName: "notify::position", callback: (($obj: InfileStdio, pspec: GObject.ParamSpec) => void)): number
1188
+ connect_after(sigName: "notify::position", callback: (($obj: InfileStdio, pspec: GObject.ParamSpec) => void)): number
1189
+ emit(sigName: "notify::position", ...args: any[]): void
1190
+ connect(sigName: "notify::remaining", callback: (($obj: InfileStdio, pspec: GObject.ParamSpec) => void)): number
1191
+ connect_after(sigName: "notify::remaining", callback: (($obj: InfileStdio, pspec: GObject.ParamSpec) => void)): number
1192
+ emit(sigName: "notify::remaining", ...args: any[]): void
1193
+ connect(sigName: string, callback: (...args: any[]) => void): number
1194
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
1195
+ emit(sigName: string, ...args: any[]): void
1196
+ disconnect(id: number): void
1197
+ }
1198
+
1199
+ export class InfileStdio extends Infile {
1200
+
1201
+ // Own properties of Gsf-1.Gsf.InfileStdio
1202
+
1203
+ static name: string
1204
+ static $gtype: GObject.GType<InfileStdio>
1205
+
1206
+ // Constructors of Gsf-1.Gsf.InfileStdio
1207
+
1208
+ constructor(config?: InfileStdio.ConstructorProperties)
1209
+ constructor(root: string | null)
1210
+ static new(root: string | null): InfileStdio
1211
+ _init(config?: InfileStdio.ConstructorProperties): void
1212
+ }
1213
+
1214
+ export module InfileTar {
1215
+
1216
+ // Constructor properties interface
1217
+
1218
+ export interface ConstructorProperties extends Infile.ConstructorProperties {
1219
+
1220
+ // Own constructor properties of Gsf-1.Gsf.InfileTar
1221
+
1222
+ source?: Input | null
1223
+ }
1224
+
1225
+ }
1226
+
1227
+ export interface InfileTar {
1228
+
1229
+ // Own properties of Gsf-1.Gsf.InfileTar
1230
+
1231
+ readonly source: Input
1232
+
1233
+ // Class property signals of Gsf-1.Gsf.InfileTar
1234
+
1235
+ connect(sigName: "notify::source", callback: (($obj: InfileTar, pspec: GObject.ParamSpec) => void)): number
1236
+ connect_after(sigName: "notify::source", callback: (($obj: InfileTar, pspec: GObject.ParamSpec) => void)): number
1237
+ emit(sigName: "notify::source", ...args: any[]): void
1238
+ connect(sigName: "notify::eof", callback: (($obj: InfileTar, pspec: GObject.ParamSpec) => void)): number
1239
+ connect_after(sigName: "notify::eof", callback: (($obj: InfileTar, pspec: GObject.ParamSpec) => void)): number
1240
+ emit(sigName: "notify::eof", ...args: any[]): void
1241
+ connect(sigName: "notify::modtime", callback: (($obj: InfileTar, pspec: GObject.ParamSpec) => void)): number
1242
+ connect_after(sigName: "notify::modtime", callback: (($obj: InfileTar, pspec: GObject.ParamSpec) => void)): number
1243
+ emit(sigName: "notify::modtime", ...args: any[]): void
1244
+ connect(sigName: "notify::position", callback: (($obj: InfileTar, pspec: GObject.ParamSpec) => void)): number
1245
+ connect_after(sigName: "notify::position", callback: (($obj: InfileTar, pspec: GObject.ParamSpec) => void)): number
1246
+ emit(sigName: "notify::position", ...args: any[]): void
1247
+ connect(sigName: "notify::remaining", callback: (($obj: InfileTar, pspec: GObject.ParamSpec) => void)): number
1248
+ connect_after(sigName: "notify::remaining", callback: (($obj: InfileTar, pspec: GObject.ParamSpec) => void)): number
1249
+ emit(sigName: "notify::remaining", ...args: any[]): void
1250
+ connect(sigName: string, callback: (...args: any[]) => void): number
1251
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
1252
+ emit(sigName: string, ...args: any[]): void
1253
+ disconnect(id: number): void
1254
+ }
1255
+
1256
+ export class InfileTar extends Infile {
1257
+
1258
+ // Own properties of Gsf-1.Gsf.InfileTar
1259
+
1260
+ static name: string
1261
+ static $gtype: GObject.GType<InfileTar>
1262
+
1263
+ // Constructors of Gsf-1.Gsf.InfileTar
1264
+
1265
+ constructor(config?: InfileTar.ConstructorProperties)
1266
+ /**
1267
+ * Opens the root directory of a Tar file.
1268
+ * <note>This adds a reference to `source`.</note>
1269
+ * @constructor
1270
+ * @param source A base #GsfInput
1271
+ * @returns the new tar file handler
1272
+ */
1273
+ constructor(source: Input)
1274
+ /**
1275
+ * Opens the root directory of a Tar file.
1276
+ * <note>This adds a reference to `source`.</note>
1277
+ * @constructor
1278
+ * @param source A base #GsfInput
1279
+ * @returns the new tar file handler
1280
+ */
1281
+ static new(source: Input): InfileTar
1282
+ _init(config?: InfileTar.ConstructorProperties): void
1283
+ }
1284
+
1285
+ export module InfileZip {
1286
+
1287
+ // Constructor properties interface
1288
+
1289
+ export interface ConstructorProperties extends Infile.ConstructorProperties {
1290
+
1291
+ // Own constructor properties of Gsf-1.Gsf.InfileZip
1292
+
1293
+ internal_parent?: InfileZip | null
1294
+ source?: Input | null
1295
+ }
1296
+
1297
+ }
1298
+
1299
+ export interface InfileZip {
1300
+
1301
+ // Own properties of Gsf-1.Gsf.InfileZip
1302
+
1303
+ /**
1304
+ * Controls the level of compression used for new members.
1305
+ */
1306
+ readonly compression_level: number
1307
+ readonly internal_parent: InfileZip
1308
+ readonly source: Input
1309
+ readonly zip64: boolean
1310
+
1311
+ // Class property signals of Gsf-1.Gsf.InfileZip
1312
+
1313
+ connect(sigName: "notify::compression-level", callback: (($obj: InfileZip, pspec: GObject.ParamSpec) => void)): number
1314
+ connect_after(sigName: "notify::compression-level", callback: (($obj: InfileZip, pspec: GObject.ParamSpec) => void)): number
1315
+ emit(sigName: "notify::compression-level", ...args: any[]): void
1316
+ connect(sigName: "notify::internal-parent", callback: (($obj: InfileZip, pspec: GObject.ParamSpec) => void)): number
1317
+ connect_after(sigName: "notify::internal-parent", callback: (($obj: InfileZip, pspec: GObject.ParamSpec) => void)): number
1318
+ emit(sigName: "notify::internal-parent", ...args: any[]): void
1319
+ connect(sigName: "notify::source", callback: (($obj: InfileZip, pspec: GObject.ParamSpec) => void)): number
1320
+ connect_after(sigName: "notify::source", callback: (($obj: InfileZip, pspec: GObject.ParamSpec) => void)): number
1321
+ emit(sigName: "notify::source", ...args: any[]): void
1322
+ connect(sigName: "notify::zip64", callback: (($obj: InfileZip, pspec: GObject.ParamSpec) => void)): number
1323
+ connect_after(sigName: "notify::zip64", callback: (($obj: InfileZip, pspec: GObject.ParamSpec) => void)): number
1324
+ emit(sigName: "notify::zip64", ...args: any[]): void
1325
+ connect(sigName: "notify::eof", callback: (($obj: InfileZip, pspec: GObject.ParamSpec) => void)): number
1326
+ connect_after(sigName: "notify::eof", callback: (($obj: InfileZip, pspec: GObject.ParamSpec) => void)): number
1327
+ emit(sigName: "notify::eof", ...args: any[]): void
1328
+ connect(sigName: "notify::modtime", callback: (($obj: InfileZip, pspec: GObject.ParamSpec) => void)): number
1329
+ connect_after(sigName: "notify::modtime", callback: (($obj: InfileZip, pspec: GObject.ParamSpec) => void)): number
1330
+ emit(sigName: "notify::modtime", ...args: any[]): void
1331
+ connect(sigName: "notify::position", callback: (($obj: InfileZip, pspec: GObject.ParamSpec) => void)): number
1332
+ connect_after(sigName: "notify::position", callback: (($obj: InfileZip, pspec: GObject.ParamSpec) => void)): number
1333
+ emit(sigName: "notify::position", ...args: any[]): void
1334
+ connect(sigName: "notify::remaining", callback: (($obj: InfileZip, pspec: GObject.ParamSpec) => void)): number
1335
+ connect_after(sigName: "notify::remaining", callback: (($obj: InfileZip, pspec: GObject.ParamSpec) => void)): number
1336
+ emit(sigName: "notify::remaining", ...args: any[]): void
1337
+ connect(sigName: string, callback: (...args: any[]) => void): number
1338
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
1339
+ emit(sigName: string, ...args: any[]): void
1340
+ disconnect(id: number): void
1341
+ }
1342
+
1343
+ export class InfileZip extends Infile {
1344
+
1345
+ // Own properties of Gsf-1.Gsf.InfileZip
1346
+
1347
+ static name: string
1348
+ static $gtype: GObject.GType<InfileZip>
1349
+
1350
+ // Constructors of Gsf-1.Gsf.InfileZip
1351
+
1352
+ constructor(config?: InfileZip.ConstructorProperties)
1353
+ /**
1354
+ * Opens the root directory of a Zip file.
1355
+ * <note>This adds a reference to `source`.</note>
1356
+ * @constructor
1357
+ * @param source A base #GsfInput
1358
+ * @returns the new zip file handler
1359
+ */
1360
+ constructor(source: Input)
1361
+ /**
1362
+ * Opens the root directory of a Zip file.
1363
+ * <note>This adds a reference to `source`.</note>
1364
+ * @constructor
1365
+ * @param source A base #GsfInput
1366
+ * @returns the new zip file handler
1367
+ */
1368
+ static new(source: Input): InfileZip
1369
+ _init(config?: InfileZip.ConstructorProperties): void
1370
+ }
1371
+
1372
+ export module Input {
1373
+
1374
+ // Constructor properties interface
1375
+
1376
+ export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
1377
+ }
1378
+
1379
+ }
1380
+
1381
+ export interface Input {
1382
+
1383
+ // Own properties of Gsf-1.Gsf.Input
1384
+
1385
+ /**
1386
+ * %TRUE if the end of the file has been reached.
1387
+ */
1388
+ readonly eof: boolean
1389
+ /**
1390
+ * The time the input was last updated. This represents the
1391
+ * timestamp from the originating file or `GsfInfile` member.
1392
+ * It is not supported by all derived classes.
1393
+ */
1394
+ readonly modtime: GLib.DateTime
1395
+ /**
1396
+ * The current position in the input.
1397
+ */
1398
+ readonly position: number
1399
+ /**
1400
+ * The number of bytes remaining in the file.
1401
+ */
1402
+ readonly remaining: number
1403
+
1404
+ // Own fields of Gsf-1.Gsf.Input
1405
+
1406
+ g_object: GObject.Object
1407
+ size: gsf_off_t
1408
+ cur_offset: gsf_off_t
1409
+ name: string | null
1410
+ container: Infile
1411
+
1412
+ // Owm methods of Gsf-1.Gsf.Input
1413
+
1414
+ /**
1415
+ * Copy the contents from `input` to `output` from their respective
1416
+ * current positions. So if you want to be sure to copy *everything*,
1417
+ * make sure to call gsf_input_seek (input, 0, G_SEEK_SET) and
1418
+ * gsf_output_seek (output, 0, G_SEEK_SET) first, if applicable.
1419
+ * @param output a non-null #GsfOutput
1420
+ * @returns %TRUE on success
1421
+ */
1422
+ copy(output: Output): boolean
1423
+ /**
1424
+ * Dumps `input'`s contents to STDOUT, optionally in hex format.
1425
+ * @param dump_as_hex If %TRUE, dump in hexidecmal format
1426
+ */
1427
+ dump(dump_as_hex: boolean): void
1428
+ /**
1429
+ * Duplicates `input` leaving the new one at the same offset.
1430
+ * @returns the duplicate
1431
+ */
1432
+ dup(): Input | null
1433
+ /**
1434
+ * A utility routine that attempts to find the VBA file withint a stream.
1435
+ * @returns a GsfInfile
1436
+ */
1437
+ find_vba(): InfileMSVBA | null
1438
+ get_modtime(): GLib.DateTime
1439
+ /**
1440
+ * Read `num_bytes`. Does not change the current position if there
1441
+ * is an error. Will only read if the entire amount can be read.
1442
+ * @param num_bytes number of bytes to read
1443
+ * @returns the data read.
1444
+ */
1445
+ read(num_bytes: number): Uint8Array
1446
+ /**
1447
+ * Move the current location in the input stream.
1448
+ * @param offset target offset
1449
+ * @param whence determines whether the offset is relative to the beginning or the end of the stream, or to the current location.
1450
+ * @returns %TRUE on error.
1451
+ */
1452
+ seek(offset: gsf_off_t, whence: GLib.SeekType): boolean
1453
+ /**
1454
+ * Emulate forward seeks by reading.
1455
+ * @param pos absolute position to seek to
1456
+ * @returns %TRUE if the emulation failed.
1457
+ */
1458
+ seek_emulate(pos: gsf_off_t): boolean
1459
+ set_container(container: Infile | null): boolean
1460
+ /**
1461
+ * protected.
1462
+ * @param modtime the new modification time.
1463
+ * @returns %TRUE if the assignment was ok.
1464
+ */
1465
+ set_modtime(modtime: GLib.DateTime | null): boolean
1466
+ set_modtime_from_stat(st: any | null): boolean
1467
+ /**
1468
+ * protected.
1469
+ * @param name the new name of the stream
1470
+ * @returns %TRUE if the assignment was ok.
1471
+ */
1472
+ set_name(name: string | null): boolean
1473
+ /**
1474
+ * protected.
1475
+ * @param filename the (fs-sys encoded) filename
1476
+ * @returns %TRUE if the assignment was ok.
1477
+ */
1478
+ set_name_from_filename(filename: string | null): boolean
1479
+ set_size(size: gsf_off_t): boolean
1480
+ /**
1481
+ * UNIMPLEMENTED BY ANY BACKEND
1482
+ * and it is probably unnecessary. gsf_input_get_container provides
1483
+ * enough power to do what is necessary.
1484
+ *
1485
+ * Attempts to open a 'sibling' of `input`. The caller is responsible for
1486
+ * managing the resulting object.
1487
+ * @param name name.
1488
+ * @returns A related #GsfInput
1489
+ */
1490
+ sibling(name: string | null): Input
1491
+ tell(): gsf_off_t
1492
+ /**
1493
+ * This functions takes ownership of the incoming reference and yields a
1494
+ * new one as its output.
1495
+ * @returns A stream equivalent to the source stream, but uncompressed if the source was compressed.
1496
+ */
1497
+ uncompress(): Input
1498
+
1499
+ // Own virtual methods of Gsf-1.Gsf.Input
1500
+
1501
+ /**
1502
+ * Duplicates `input` leaving the new one at the same offset.
1503
+ * @virtual
1504
+ * @returns the duplicate
1505
+ */
1506
+ vfunc_Dup(): Input | null
1507
+ /**
1508
+ * UNIMPLEMENTED BY ANY BACKEND
1509
+ * and it is probably unnecessary. gsf_input_get_container provides
1510
+ * enough power to do what is necessary.
1511
+ *
1512
+ * Attempts to open a 'sibling' of `input`. The caller is responsible for
1513
+ * managing the resulting object.
1514
+ * @virtual
1515
+ * @param name name.
1516
+ * @returns A related #GsfInput
1517
+ */
1518
+ vfunc_OpenSibling(name: string | null): Input
1519
+ /**
1520
+ * Move the current location in the input stream.
1521
+ * @virtual
1522
+ * @param offset target offset
1523
+ * @param whence determines whether the offset is relative to the beginning or the end of the stream, or to the current location.
1524
+ * @returns %TRUE on error.
1525
+ */
1526
+ vfunc_Seek(offset: gsf_off_t, whence: GLib.SeekType): boolean
1527
+
1528
+ // Class property signals of Gsf-1.Gsf.Input
1529
+
1530
+ connect(sigName: "notify::eof", callback: (($obj: Input, pspec: GObject.ParamSpec) => void)): number
1531
+ connect_after(sigName: "notify::eof", callback: (($obj: Input, pspec: GObject.ParamSpec) => void)): number
1532
+ emit(sigName: "notify::eof", ...args: any[]): void
1533
+ connect(sigName: "notify::modtime", callback: (($obj: Input, pspec: GObject.ParamSpec) => void)): number
1534
+ connect_after(sigName: "notify::modtime", callback: (($obj: Input, pspec: GObject.ParamSpec) => void)): number
1535
+ emit(sigName: "notify::modtime", ...args: any[]): void
1536
+ connect(sigName: "notify::position", callback: (($obj: Input, pspec: GObject.ParamSpec) => void)): number
1537
+ connect_after(sigName: "notify::position", callback: (($obj: Input, pspec: GObject.ParamSpec) => void)): number
1538
+ emit(sigName: "notify::position", ...args: any[]): void
1539
+ connect(sigName: "notify::remaining", callback: (($obj: Input, pspec: GObject.ParamSpec) => void)): number
1540
+ connect_after(sigName: "notify::remaining", callback: (($obj: Input, pspec: GObject.ParamSpec) => void)): number
1541
+ emit(sigName: "notify::remaining", ...args: any[]): void
1542
+ connect(sigName: string, callback: (...args: any[]) => void): number
1543
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
1544
+ emit(sigName: string, ...args: any[]): void
1545
+ disconnect(id: number): void
1546
+ }
1547
+
1548
+ /**
1549
+ * Class representing an input stream.
1550
+ * @class
1551
+ */
1552
+ export class Input extends GObject.Object {
1553
+
1554
+ // Own properties of Gsf-1.Gsf.Input
1555
+
1556
+ static name: string
1557
+ static $gtype: GObject.GType<Input>
1558
+
1559
+ // Constructors of Gsf-1.Gsf.Input
1560
+
1561
+ constructor(config?: Input.ConstructorProperties)
1562
+ static mmap_new(filename: string | null): Input
1563
+ _init(config?: Input.ConstructorProperties): void
1564
+ static error_id(): GLib.Quark
1565
+ }
1566
+
1567
+ export module InputGZip {
1568
+
1569
+ // Constructor properties interface
1570
+
1571
+ export interface ConstructorProperties extends Input.ConstructorProperties {
1572
+
1573
+ // Own constructor properties of Gsf-1.Gsf.InputGZip
1574
+
1575
+ raw?: boolean | null
1576
+ source?: Input | null
1577
+ uncompressed_size?: number | null
1578
+ }
1579
+
1580
+ }
1581
+
1582
+ export interface InputGZip {
1583
+
1584
+ // Own properties of Gsf-1.Gsf.InputGZip
1585
+
1586
+ readonly raw: boolean
1587
+ readonly source: Input
1588
+ readonly uncompressed_size: number
1589
+
1590
+ // Class property signals of Gsf-1.Gsf.InputGZip
1591
+
1592
+ connect(sigName: "notify::raw", callback: (($obj: InputGZip, pspec: GObject.ParamSpec) => void)): number
1593
+ connect_after(sigName: "notify::raw", callback: (($obj: InputGZip, pspec: GObject.ParamSpec) => void)): number
1594
+ emit(sigName: "notify::raw", ...args: any[]): void
1595
+ connect(sigName: "notify::source", callback: (($obj: InputGZip, pspec: GObject.ParamSpec) => void)): number
1596
+ connect_after(sigName: "notify::source", callback: (($obj: InputGZip, pspec: GObject.ParamSpec) => void)): number
1597
+ emit(sigName: "notify::source", ...args: any[]): void
1598
+ connect(sigName: "notify::uncompressed-size", callback: (($obj: InputGZip, pspec: GObject.ParamSpec) => void)): number
1599
+ connect_after(sigName: "notify::uncompressed-size", callback: (($obj: InputGZip, pspec: GObject.ParamSpec) => void)): number
1600
+ emit(sigName: "notify::uncompressed-size", ...args: any[]): void
1601
+ connect(sigName: "notify::eof", callback: (($obj: InputGZip, pspec: GObject.ParamSpec) => void)): number
1602
+ connect_after(sigName: "notify::eof", callback: (($obj: InputGZip, pspec: GObject.ParamSpec) => void)): number
1603
+ emit(sigName: "notify::eof", ...args: any[]): void
1604
+ connect(sigName: "notify::modtime", callback: (($obj: InputGZip, pspec: GObject.ParamSpec) => void)): number
1605
+ connect_after(sigName: "notify::modtime", callback: (($obj: InputGZip, pspec: GObject.ParamSpec) => void)): number
1606
+ emit(sigName: "notify::modtime", ...args: any[]): void
1607
+ connect(sigName: "notify::position", callback: (($obj: InputGZip, pspec: GObject.ParamSpec) => void)): number
1608
+ connect_after(sigName: "notify::position", callback: (($obj: InputGZip, pspec: GObject.ParamSpec) => void)): number
1609
+ emit(sigName: "notify::position", ...args: any[]): void
1610
+ connect(sigName: "notify::remaining", callback: (($obj: InputGZip, pspec: GObject.ParamSpec) => void)): number
1611
+ connect_after(sigName: "notify::remaining", callback: (($obj: InputGZip, pspec: GObject.ParamSpec) => void)): number
1612
+ emit(sigName: "notify::remaining", ...args: any[]): void
1613
+ connect(sigName: string, callback: (...args: any[]) => void): number
1614
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
1615
+ emit(sigName: string, ...args: any[]): void
1616
+ disconnect(id: number): void
1617
+ }
1618
+
1619
+ export class InputGZip extends Input {
1620
+
1621
+ // Own properties of Gsf-1.Gsf.InputGZip
1622
+
1623
+ static name: string
1624
+ static $gtype: GObject.GType<InputGZip>
1625
+
1626
+ // Constructors of Gsf-1.Gsf.InputGZip
1627
+
1628
+ constructor(config?: InputGZip.ConstructorProperties)
1629
+ /**
1630
+ * Adds a reference to `source`.
1631
+ * @constructor
1632
+ * @param source The underlying data source.
1633
+ * @returns a new file or %NULL.
1634
+ */
1635
+ constructor(source: Input)
1636
+ /**
1637
+ * Adds a reference to `source`.
1638
+ * @constructor
1639
+ * @param source The underlying data source.
1640
+ * @returns a new file or %NULL.
1641
+ */
1642
+ static new(source: Input): InputGZip
1643
+ _init(config?: InputGZip.ConstructorProperties): void
1644
+ }
1645
+
1646
+ export module InputGio {
1647
+
1648
+ // Constructor properties interface
1649
+
1650
+ export interface ConstructorProperties extends Input.ConstructorProperties {
1651
+ }
1652
+
1653
+ }
1654
+
1655
+ export interface InputGio {
1656
+
1657
+ // Class property signals of Gsf-1.Gsf.InputGio
1658
+
1659
+ connect(sigName: "notify::eof", callback: (($obj: InputGio, pspec: GObject.ParamSpec) => void)): number
1660
+ connect_after(sigName: "notify::eof", callback: (($obj: InputGio, pspec: GObject.ParamSpec) => void)): number
1661
+ emit(sigName: "notify::eof", ...args: any[]): void
1662
+ connect(sigName: "notify::modtime", callback: (($obj: InputGio, pspec: GObject.ParamSpec) => void)): number
1663
+ connect_after(sigName: "notify::modtime", callback: (($obj: InputGio, pspec: GObject.ParamSpec) => void)): number
1664
+ emit(sigName: "notify::modtime", ...args: any[]): void
1665
+ connect(sigName: "notify::position", callback: (($obj: InputGio, pspec: GObject.ParamSpec) => void)): number
1666
+ connect_after(sigName: "notify::position", callback: (($obj: InputGio, pspec: GObject.ParamSpec) => void)): number
1667
+ emit(sigName: "notify::position", ...args: any[]): void
1668
+ connect(sigName: "notify::remaining", callback: (($obj: InputGio, pspec: GObject.ParamSpec) => void)): number
1669
+ connect_after(sigName: "notify::remaining", callback: (($obj: InputGio, pspec: GObject.ParamSpec) => void)): number
1670
+ emit(sigName: "notify::remaining", ...args: any[]): void
1671
+ connect(sigName: string, callback: (...args: any[]) => void): number
1672
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
1673
+ emit(sigName: string, ...args: any[]): void
1674
+ disconnect(id: number): void
1675
+ }
1676
+
1677
+ export class InputGio extends Input {
1678
+
1679
+ // Own properties of Gsf-1.Gsf.InputGio
1680
+
1681
+ static name: string
1682
+ static $gtype: GObject.GType<InputGio>
1683
+
1684
+ // Constructors of Gsf-1.Gsf.InputGio
1685
+
1686
+ constructor(config?: InputGio.ConstructorProperties)
1687
+ constructor(file: Gio.File)
1688
+ static new(file: Gio.File): InputGio
1689
+ static new_for_path(path: string | null): InputGio
1690
+ static new_for_uri(uri: string | null): InputGio
1691
+ _init(config?: InputGio.ConstructorProperties): void
1692
+ }
1693
+
1694
+ export module InputHTTP {
1695
+
1696
+ // Constructor properties interface
1697
+
1698
+ export interface ConstructorProperties extends Input.ConstructorProperties {
1699
+
1700
+ // Own constructor properties of Gsf-1.Gsf.InputHTTP
1701
+
1702
+ content_type?: string | null
1703
+ url?: string | null
1704
+ }
1705
+
1706
+ }
1707
+
1708
+ export interface InputHTTP {
1709
+
1710
+ // Own properties of Gsf-1.Gsf.InputHTTP
1711
+
1712
+ readonly content_type: string | null
1713
+ readonly url: string | null
1714
+
1715
+ // Owm methods of Gsf-1.Gsf.InputHTTP
1716
+
1717
+ get_content_type(): string | null
1718
+ get_url(): string | null
1719
+
1720
+ // Class property signals of Gsf-1.Gsf.InputHTTP
1721
+
1722
+ connect(sigName: "notify::content-type", callback: (($obj: InputHTTP, pspec: GObject.ParamSpec) => void)): number
1723
+ connect_after(sigName: "notify::content-type", callback: (($obj: InputHTTP, pspec: GObject.ParamSpec) => void)): number
1724
+ emit(sigName: "notify::content-type", ...args: any[]): void
1725
+ connect(sigName: "notify::url", callback: (($obj: InputHTTP, pspec: GObject.ParamSpec) => void)): number
1726
+ connect_after(sigName: "notify::url", callback: (($obj: InputHTTP, pspec: GObject.ParamSpec) => void)): number
1727
+ emit(sigName: "notify::url", ...args: any[]): void
1728
+ connect(sigName: "notify::eof", callback: (($obj: InputHTTP, pspec: GObject.ParamSpec) => void)): number
1729
+ connect_after(sigName: "notify::eof", callback: (($obj: InputHTTP, pspec: GObject.ParamSpec) => void)): number
1730
+ emit(sigName: "notify::eof", ...args: any[]): void
1731
+ connect(sigName: "notify::modtime", callback: (($obj: InputHTTP, pspec: GObject.ParamSpec) => void)): number
1732
+ connect_after(sigName: "notify::modtime", callback: (($obj: InputHTTP, pspec: GObject.ParamSpec) => void)): number
1733
+ emit(sigName: "notify::modtime", ...args: any[]): void
1734
+ connect(sigName: "notify::position", callback: (($obj: InputHTTP, pspec: GObject.ParamSpec) => void)): number
1735
+ connect_after(sigName: "notify::position", callback: (($obj: InputHTTP, pspec: GObject.ParamSpec) => void)): number
1736
+ emit(sigName: "notify::position", ...args: any[]): void
1737
+ connect(sigName: "notify::remaining", callback: (($obj: InputHTTP, pspec: GObject.ParamSpec) => void)): number
1738
+ connect_after(sigName: "notify::remaining", callback: (($obj: InputHTTP, pspec: GObject.ParamSpec) => void)): number
1739
+ emit(sigName: "notify::remaining", ...args: any[]): void
1740
+ connect(sigName: string, callback: (...args: any[]) => void): number
1741
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
1742
+ emit(sigName: string, ...args: any[]): void
1743
+ disconnect(id: number): void
1744
+ }
1745
+
1746
+ export class InputHTTP extends Input {
1747
+
1748
+ // Own properties of Gsf-1.Gsf.InputHTTP
1749
+
1750
+ static name: string
1751
+ static $gtype: GObject.GType<InputHTTP>
1752
+
1753
+ // Constructors of Gsf-1.Gsf.InputHTTP
1754
+
1755
+ constructor(config?: InputHTTP.ConstructorProperties)
1756
+ constructor(url: string | null)
1757
+ static new(url: string | null): InputHTTP
1758
+ _init(config?: InputHTTP.ConstructorProperties): void
1759
+ }
1760
+
1761
+ export module InputMemory {
1762
+
1763
+ // Constructor properties interface
1764
+
1765
+ export interface ConstructorProperties extends Input.ConstructorProperties {
1766
+ }
1767
+
1768
+ }
1769
+
1770
+ export interface InputMemory {
1771
+
1772
+ // Class property signals of Gsf-1.Gsf.InputMemory
1773
+
1774
+ connect(sigName: "notify::eof", callback: (($obj: InputMemory, pspec: GObject.ParamSpec) => void)): number
1775
+ connect_after(sigName: "notify::eof", callback: (($obj: InputMemory, pspec: GObject.ParamSpec) => void)): number
1776
+ emit(sigName: "notify::eof", ...args: any[]): void
1777
+ connect(sigName: "notify::modtime", callback: (($obj: InputMemory, pspec: GObject.ParamSpec) => void)): number
1778
+ connect_after(sigName: "notify::modtime", callback: (($obj: InputMemory, pspec: GObject.ParamSpec) => void)): number
1779
+ emit(sigName: "notify::modtime", ...args: any[]): void
1780
+ connect(sigName: "notify::position", callback: (($obj: InputMemory, pspec: GObject.ParamSpec) => void)): number
1781
+ connect_after(sigName: "notify::position", callback: (($obj: InputMemory, pspec: GObject.ParamSpec) => void)): number
1782
+ emit(sigName: "notify::position", ...args: any[]): void
1783
+ connect(sigName: "notify::remaining", callback: (($obj: InputMemory, pspec: GObject.ParamSpec) => void)): number
1784
+ connect_after(sigName: "notify::remaining", callback: (($obj: InputMemory, pspec: GObject.ParamSpec) => void)): number
1785
+ emit(sigName: "notify::remaining", ...args: any[]): void
1786
+ connect(sigName: string, callback: (...args: any[]) => void): number
1787
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
1788
+ emit(sigName: string, ...args: any[]): void
1789
+ disconnect(id: number): void
1790
+ }
1791
+
1792
+ export class InputMemory extends Input {
1793
+
1794
+ // Own properties of Gsf-1.Gsf.InputMemory
1795
+
1796
+ static name: string
1797
+ static $gtype: GObject.GType<InputMemory>
1798
+
1799
+ // Constructors of Gsf-1.Gsf.InputMemory
1800
+
1801
+ constructor(config?: InputMemory.ConstructorProperties)
1802
+ constructor(buf: Uint8Array, needs_free: boolean)
1803
+ static new(buf: Uint8Array, needs_free: boolean): InputMemory
1804
+ static new_clone(buf: Uint8Array): InputMemory
1805
+ static new_from_bzip(source: Input): InputMemory
1806
+ static new_from_iochannel(channel: GLib.IOChannel): InputMemory
1807
+ _init(config?: InputMemory.ConstructorProperties): void
1808
+ }
1809
+
1810
+ export module InputProxy {
1811
+
1812
+ // Constructor properties interface
1813
+
1814
+ export interface ConstructorProperties extends Input.ConstructorProperties {
1815
+ }
1816
+
1817
+ }
1818
+
1819
+ export interface InputProxy {
1820
+
1821
+ // Class property signals of Gsf-1.Gsf.InputProxy
1822
+
1823
+ connect(sigName: "notify::eof", callback: (($obj: InputProxy, pspec: GObject.ParamSpec) => void)): number
1824
+ connect_after(sigName: "notify::eof", callback: (($obj: InputProxy, pspec: GObject.ParamSpec) => void)): number
1825
+ emit(sigName: "notify::eof", ...args: any[]): void
1826
+ connect(sigName: "notify::modtime", callback: (($obj: InputProxy, pspec: GObject.ParamSpec) => void)): number
1827
+ connect_after(sigName: "notify::modtime", callback: (($obj: InputProxy, pspec: GObject.ParamSpec) => void)): number
1828
+ emit(sigName: "notify::modtime", ...args: any[]): void
1829
+ connect(sigName: "notify::position", callback: (($obj: InputProxy, pspec: GObject.ParamSpec) => void)): number
1830
+ connect_after(sigName: "notify::position", callback: (($obj: InputProxy, pspec: GObject.ParamSpec) => void)): number
1831
+ emit(sigName: "notify::position", ...args: any[]): void
1832
+ connect(sigName: "notify::remaining", callback: (($obj: InputProxy, pspec: GObject.ParamSpec) => void)): number
1833
+ connect_after(sigName: "notify::remaining", callback: (($obj: InputProxy, pspec: GObject.ParamSpec) => void)): number
1834
+ emit(sigName: "notify::remaining", ...args: any[]): void
1835
+ connect(sigName: string, callback: (...args: any[]) => void): number
1836
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
1837
+ emit(sigName: string, ...args: any[]): void
1838
+ disconnect(id: number): void
1839
+ }
1840
+
1841
+ export class InputProxy extends Input {
1842
+
1843
+ // Own properties of Gsf-1.Gsf.InputProxy
1844
+
1845
+ static name: string
1846
+ static $gtype: GObject.GType<InputProxy>
1847
+
1848
+ // Constructors of Gsf-1.Gsf.InputProxy
1849
+
1850
+ constructor(config?: InputProxy.ConstructorProperties)
1851
+ /**
1852
+ * This creates a new proxy to the entire, given input source. See
1853
+ * gsf_input_proxy_new_section for details.
1854
+ * @constructor
1855
+ * @param source The underlying data source.
1856
+ * @returns a new input object.
1857
+ */
1858
+ constructor(source: Input)
1859
+ /**
1860
+ * This creates a new proxy to the entire, given input source. See
1861
+ * gsf_input_proxy_new_section for details.
1862
+ * @constructor
1863
+ * @param source The underlying data source.
1864
+ * @returns a new input object.
1865
+ */
1866
+ static new(source: Input): InputProxy
1867
+ /**
1868
+ * This creates a new proxy to a section of the given source. The new
1869
+ * object will have its own current position, but any operation on it
1870
+ * can change the source's position.
1871
+ *
1872
+ * If a proxy to a proxy is created, the intermediate proxy is short-
1873
+ * circuited.
1874
+ *
1875
+ * This function will ref the source.
1876
+ * @constructor
1877
+ * @param source The underlying data source.
1878
+ * @param offset Offset into source for start of section.
1879
+ * @param size Length of section.
1880
+ * @returns a new input object.
1881
+ */
1882
+ static new_section(source: Input, offset: gsf_off_t, size: gsf_off_t): InputProxy
1883
+ _init(config?: InputProxy.ConstructorProperties): void
1884
+ }
1885
+
1886
+ export module InputStdio {
1887
+
1888
+ // Constructor properties interface
1889
+
1890
+ export interface ConstructorProperties extends Input.ConstructorProperties {
1891
+ }
1892
+
1893
+ }
1894
+
1895
+ export interface InputStdio {
1896
+
1897
+ // Class property signals of Gsf-1.Gsf.InputStdio
1898
+
1899
+ connect(sigName: "notify::eof", callback: (($obj: InputStdio, pspec: GObject.ParamSpec) => void)): number
1900
+ connect_after(sigName: "notify::eof", callback: (($obj: InputStdio, pspec: GObject.ParamSpec) => void)): number
1901
+ emit(sigName: "notify::eof", ...args: any[]): void
1902
+ connect(sigName: "notify::modtime", callback: (($obj: InputStdio, pspec: GObject.ParamSpec) => void)): number
1903
+ connect_after(sigName: "notify::modtime", callback: (($obj: InputStdio, pspec: GObject.ParamSpec) => void)): number
1904
+ emit(sigName: "notify::modtime", ...args: any[]): void
1905
+ connect(sigName: "notify::position", callback: (($obj: InputStdio, pspec: GObject.ParamSpec) => void)): number
1906
+ connect_after(sigName: "notify::position", callback: (($obj: InputStdio, pspec: GObject.ParamSpec) => void)): number
1907
+ emit(sigName: "notify::position", ...args: any[]): void
1908
+ connect(sigName: "notify::remaining", callback: (($obj: InputStdio, pspec: GObject.ParamSpec) => void)): number
1909
+ connect_after(sigName: "notify::remaining", callback: (($obj: InputStdio, pspec: GObject.ParamSpec) => void)): number
1910
+ emit(sigName: "notify::remaining", ...args: any[]): void
1911
+ connect(sigName: string, callback: (...args: any[]) => void): number
1912
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
1913
+ emit(sigName: string, ...args: any[]): void
1914
+ disconnect(id: number): void
1915
+ }
1916
+
1917
+ export class InputStdio extends Input {
1918
+
1919
+ // Own properties of Gsf-1.Gsf.InputStdio
1920
+
1921
+ static name: string
1922
+ static $gtype: GObject.GType<InputStdio>
1923
+
1924
+ // Constructors of Gsf-1.Gsf.InputStdio
1925
+
1926
+ constructor(config?: InputStdio.ConstructorProperties)
1927
+ constructor(filename: string | null)
1928
+ static new(filename: string | null): InputStdio
1929
+ /**
1930
+ * Assumes ownership of `file` when succeeding. If `keep_open` is true,
1931
+ * ownership reverts to caller when the #GsfInput is closed.
1932
+ * @constructor
1933
+ * @param filename The filename corresponding to `file`.
1934
+ * @param file an existing stdio <type>FILE</type> *
1935
+ * @param keep_open Should `file` be closed when the wrapper is closed
1936
+ * @returns a new #GsfInput wrapper for @file. Note that if the file is not seekable, this function will make a local copy of the entire file.
1937
+ */
1938
+ static new_FILE(filename: string | null, file: any | null, keep_open: boolean): InputStdio
1939
+ _init(config?: InputStdio.ConstructorProperties): void
1940
+ }
1941
+
1942
+ export module InputTextline {
1943
+
1944
+ // Constructor properties interface
1945
+
1946
+ export interface ConstructorProperties extends Input.ConstructorProperties {
1947
+ }
1948
+
1949
+ }
1950
+
1951
+ export interface InputTextline {
1952
+
1953
+ // Owm methods of Gsf-1.Gsf.InputTextline
1954
+
1955
+ /**
1956
+ * A utility routine to read things line by line from the underlying source.
1957
+ * Trailing newlines and carriage returns are stripped, and the resultant buffer
1958
+ * can be edited.
1959
+ * @returns the string read, or %NULL on eof.
1960
+ */
1961
+ ascii_gets(): Uint8Array | null
1962
+ /**
1963
+ * A utility routine to read things line by line from the underlying source.
1964
+ * Trailing newlines and carriage returns are stripped, and the resultant buffer
1965
+ * can be edited.
1966
+ * @returns the string read, or %NULL on eof.
1967
+ */
1968
+ utf8_gets(): Uint8Array | null
1969
+
1970
+ // Class property signals of Gsf-1.Gsf.InputTextline
1971
+
1972
+ connect(sigName: "notify::eof", callback: (($obj: InputTextline, pspec: GObject.ParamSpec) => void)): number
1973
+ connect_after(sigName: "notify::eof", callback: (($obj: InputTextline, pspec: GObject.ParamSpec) => void)): number
1974
+ emit(sigName: "notify::eof", ...args: any[]): void
1975
+ connect(sigName: "notify::modtime", callback: (($obj: InputTextline, pspec: GObject.ParamSpec) => void)): number
1976
+ connect_after(sigName: "notify::modtime", callback: (($obj: InputTextline, pspec: GObject.ParamSpec) => void)): number
1977
+ emit(sigName: "notify::modtime", ...args: any[]): void
1978
+ connect(sigName: "notify::position", callback: (($obj: InputTextline, pspec: GObject.ParamSpec) => void)): number
1979
+ connect_after(sigName: "notify::position", callback: (($obj: InputTextline, pspec: GObject.ParamSpec) => void)): number
1980
+ emit(sigName: "notify::position", ...args: any[]): void
1981
+ connect(sigName: "notify::remaining", callback: (($obj: InputTextline, pspec: GObject.ParamSpec) => void)): number
1982
+ connect_after(sigName: "notify::remaining", callback: (($obj: InputTextline, pspec: GObject.ParamSpec) => void)): number
1983
+ emit(sigName: "notify::remaining", ...args: any[]): void
1984
+ connect(sigName: string, callback: (...args: any[]) => void): number
1985
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
1986
+ emit(sigName: string, ...args: any[]): void
1987
+ disconnect(id: number): void
1988
+ }
1989
+
1990
+ export class InputTextline extends Input {
1991
+
1992
+ // Own properties of Gsf-1.Gsf.InputTextline
1993
+
1994
+ static name: string
1995
+ static $gtype: GObject.GType<InputTextline>
1996
+
1997
+ // Constructors of Gsf-1.Gsf.InputTextline
1998
+
1999
+ constructor(config?: InputTextline.ConstructorProperties)
2000
+ /**
2001
+ * <note>This adds a reference to `source`.</note>
2002
+ * @constructor
2003
+ * @param source in some combination of ascii and utf8
2004
+ * @returns a new file
2005
+ */
2006
+ constructor(source: Input)
2007
+ /**
2008
+ * <note>This adds a reference to `source`.</note>
2009
+ * @constructor
2010
+ * @param source in some combination of ascii and utf8
2011
+ * @returns a new file
2012
+ */
2013
+ static new(source: Input): InputTextline
2014
+ _init(config?: InputTextline.ConstructorProperties): void
2015
+ }
2016
+
2017
+ export module ODFOut {
2018
+
2019
+ // Constructor properties interface
2020
+
2021
+ export interface ConstructorProperties extends XMLOut.ConstructorProperties {
2022
+
2023
+ // Own constructor properties of Gsf-1.Gsf.ODFOut
2024
+
2025
+ odf_version?: number | null
2026
+ }
2027
+
2028
+ }
2029
+
2030
+ export interface ODFOut {
2031
+
2032
+ // Own properties of Gsf-1.Gsf.ODFOut
2033
+
2034
+ readonly odf_version: number
2035
+
2036
+ // Own fields of Gsf-1.Gsf.ODFOut
2037
+
2038
+ base: any
2039
+ priv: any
2040
+
2041
+ // Owm methods of Gsf-1.Gsf.ODFOut
2042
+
2043
+ get_version(): number
2044
+ get_version_string(): string | null
2045
+
2046
+ // Class property signals of Gsf-1.Gsf.ODFOut
2047
+
2048
+ connect(sigName: "notify::odf-version", callback: (($obj: ODFOut, pspec: GObject.ParamSpec) => void)): number
2049
+ connect_after(sigName: "notify::odf-version", callback: (($obj: ODFOut, pspec: GObject.ParamSpec) => void)): number
2050
+ emit(sigName: "notify::odf-version", ...args: any[]): void
2051
+ connect(sigName: "notify::pretty-print", callback: (($obj: ODFOut, pspec: GObject.ParamSpec) => void)): number
2052
+ connect_after(sigName: "notify::pretty-print", callback: (($obj: ODFOut, pspec: GObject.ParamSpec) => void)): number
2053
+ emit(sigName: "notify::pretty-print", ...args: any[]): void
2054
+ connect(sigName: "notify::sink", callback: (($obj: ODFOut, pspec: GObject.ParamSpec) => void)): number
2055
+ connect_after(sigName: "notify::sink", callback: (($obj: ODFOut, pspec: GObject.ParamSpec) => void)): number
2056
+ emit(sigName: "notify::sink", ...args: any[]): void
2057
+ connect(sigName: string, callback: (...args: any[]) => void): number
2058
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
2059
+ emit(sigName: string, ...args: any[]): void
2060
+ disconnect(id: number): void
2061
+ }
2062
+
2063
+ export class ODFOut extends XMLOut {
2064
+
2065
+ // Own properties of Gsf-1.Gsf.ODFOut
2066
+
2067
+ static name: string
2068
+ static $gtype: GObject.GType<ODFOut>
2069
+
2070
+ // Constructors of Gsf-1.Gsf.ODFOut
2071
+
2072
+ constructor(config?: ODFOut.ConstructorProperties)
2073
+ _init(config?: ODFOut.ConstructorProperties): void
2074
+ }
2075
+
2076
+ export module Outfile {
2077
+
2078
+ // Constructor properties interface
2079
+
2080
+ export interface ConstructorProperties extends Output.ConstructorProperties {
2081
+ }
2082
+
2083
+ }
2084
+
2085
+ export interface Outfile {
2086
+
2087
+ // Own fields of Gsf-1.Gsf.Outfile
2088
+
2089
+ parent: Output
2090
+
2091
+ // Owm methods of Gsf-1.Gsf.Outfile
2092
+
2093
+ new_child(name: string | null, is_dir: boolean): Output
2094
+ /**
2095
+ * A convenience wrapper to create a child in `dir` of `content_type` then create
2096
+ * a `type` relation to `parent`
2097
+ * @param name target name
2098
+ * @param content_type non-%NULL content type
2099
+ * @param parent #GsfOutfile
2100
+ * @param type target type
2101
+ * @returns the new part.
2102
+ */
2103
+ open_pkg_add_rel(name: string | null, content_type: string | null, parent: Outfile, type: string | null): Output
2104
+
2105
+ // Class property signals of Gsf-1.Gsf.Outfile
2106
+
2107
+ connect(sigName: "notify::modtime", callback: (($obj: Outfile, pspec: GObject.ParamSpec) => void)): number
2108
+ connect_after(sigName: "notify::modtime", callback: (($obj: Outfile, pspec: GObject.ParamSpec) => void)): number
2109
+ emit(sigName: "notify::modtime", ...args: any[]): void
2110
+ connect(sigName: "notify::position", callback: (($obj: Outfile, pspec: GObject.ParamSpec) => void)): number
2111
+ connect_after(sigName: "notify::position", callback: (($obj: Outfile, pspec: GObject.ParamSpec) => void)): number
2112
+ emit(sigName: "notify::position", ...args: any[]): void
2113
+ connect(sigName: "notify::size", callback: (($obj: Outfile, pspec: GObject.ParamSpec) => void)): number
2114
+ connect_after(sigName: "notify::size", callback: (($obj: Outfile, pspec: GObject.ParamSpec) => void)): number
2115
+ emit(sigName: "notify::size", ...args: any[]): void
2116
+ connect(sigName: string, callback: (...args: any[]) => void): number
2117
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
2118
+ emit(sigName: string, ...args: any[]): void
2119
+ disconnect(id: number): void
2120
+ }
2121
+
2122
+ /**
2123
+ * Class representing an output file, counterpart to #GsfInfile.
2124
+ * @class
2125
+ */
2126
+ export class Outfile extends Output {
2127
+
2128
+ // Own properties of Gsf-1.Gsf.Outfile
2129
+
2130
+ static name: string
2131
+ static $gtype: GObject.GType<Outfile>
2132
+
2133
+ // Constructors of Gsf-1.Gsf.Outfile
2134
+
2135
+ constructor(config?: Outfile.ConstructorProperties)
2136
+ _init(config?: Outfile.ConstructorProperties): void
2137
+ }
2138
+
2139
+ export module OutfileMSOle {
2140
+
2141
+ // Constructor properties interface
2142
+
2143
+ export interface ConstructorProperties extends Outfile.ConstructorProperties {
2144
+
2145
+ // Own constructor properties of Gsf-1.Gsf.OutfileMSOle
2146
+
2147
+ big_block_size?: number | null
2148
+ sink?: Output | null
2149
+ small_block_size?: number | null
2150
+ }
2151
+
2152
+ }
2153
+
2154
+ export interface OutfileMSOle {
2155
+
2156
+ // Own properties of Gsf-1.Gsf.OutfileMSOle
2157
+
2158
+ readonly big_block_size: number
2159
+ readonly sink: Output
2160
+ readonly small_block_size: number
2161
+
2162
+ // Owm methods of Gsf-1.Gsf.OutfileMSOle
2163
+
2164
+ /**
2165
+ * Write `clsid` to the directory associated with `ole`.
2166
+ * @param clsid Identifier (often a GUID in MS Windows apps)
2167
+ * @returns %TRUE on success.
2168
+ */
2169
+ set_class_id(clsid: Uint8Array): boolean
2170
+
2171
+ // Class property signals of Gsf-1.Gsf.OutfileMSOle
2172
+
2173
+ connect(sigName: "notify::big-block-size", callback: (($obj: OutfileMSOle, pspec: GObject.ParamSpec) => void)): number
2174
+ connect_after(sigName: "notify::big-block-size", callback: (($obj: OutfileMSOle, pspec: GObject.ParamSpec) => void)): number
2175
+ emit(sigName: "notify::big-block-size", ...args: any[]): void
2176
+ connect(sigName: "notify::sink", callback: (($obj: OutfileMSOle, pspec: GObject.ParamSpec) => void)): number
2177
+ connect_after(sigName: "notify::sink", callback: (($obj: OutfileMSOle, pspec: GObject.ParamSpec) => void)): number
2178
+ emit(sigName: "notify::sink", ...args: any[]): void
2179
+ connect(sigName: "notify::small-block-size", callback: (($obj: OutfileMSOle, pspec: GObject.ParamSpec) => void)): number
2180
+ connect_after(sigName: "notify::small-block-size", callback: (($obj: OutfileMSOle, pspec: GObject.ParamSpec) => void)): number
2181
+ emit(sigName: "notify::small-block-size", ...args: any[]): void
2182
+ connect(sigName: "notify::modtime", callback: (($obj: OutfileMSOle, pspec: GObject.ParamSpec) => void)): number
2183
+ connect_after(sigName: "notify::modtime", callback: (($obj: OutfileMSOle, pspec: GObject.ParamSpec) => void)): number
2184
+ emit(sigName: "notify::modtime", ...args: any[]): void
2185
+ connect(sigName: "notify::position", callback: (($obj: OutfileMSOle, pspec: GObject.ParamSpec) => void)): number
2186
+ connect_after(sigName: "notify::position", callback: (($obj: OutfileMSOle, pspec: GObject.ParamSpec) => void)): number
2187
+ emit(sigName: "notify::position", ...args: any[]): void
2188
+ connect(sigName: "notify::size", callback: (($obj: OutfileMSOle, pspec: GObject.ParamSpec) => void)): number
2189
+ connect_after(sigName: "notify::size", callback: (($obj: OutfileMSOle, pspec: GObject.ParamSpec) => void)): number
2190
+ emit(sigName: "notify::size", ...args: any[]): void
2191
+ connect(sigName: string, callback: (...args: any[]) => void): number
2192
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
2193
+ emit(sigName: string, ...args: any[]): void
2194
+ disconnect(id: number): void
2195
+ }
2196
+
2197
+ export class OutfileMSOle extends Outfile {
2198
+
2199
+ // Own properties of Gsf-1.Gsf.OutfileMSOle
2200
+
2201
+ static name: string
2202
+ static $gtype: GObject.GType<OutfileMSOle>
2203
+
2204
+ // Constructors of Gsf-1.Gsf.OutfileMSOle
2205
+
2206
+ constructor(config?: OutfileMSOle.ConstructorProperties)
2207
+ /**
2208
+ * Creates the root directory of an MS OLE file and manages the addition of
2209
+ * children.
2210
+ *
2211
+ * <note>This adds a reference to `sink`.</note>
2212
+ * @constructor
2213
+ * @param sink a #GsfOutput to hold the OLE2 file
2214
+ * @returns the new ole file handler.
2215
+ */
2216
+ constructor(sink: Output)
2217
+ /**
2218
+ * Creates the root directory of an MS OLE file and manages the addition of
2219
+ * children.
2220
+ *
2221
+ * <note>This adds a reference to `sink`.</note>
2222
+ * @constructor
2223
+ * @param sink a #GsfOutput to hold the OLE2 file
2224
+ * @returns the new ole file handler.
2225
+ */
2226
+ static new(sink: Output): OutfileMSOle
2227
+ /**
2228
+ * Creates the root directory of an MS OLE file and manages the addition of
2229
+ * children.
2230
+ *
2231
+ * <note>This adds a reference to `sink`.</note>
2232
+ * @constructor
2233
+ * @param sink a #GsfOutput to hold the OLE2 file.
2234
+ * @param bb_size size of large blocks.
2235
+ * @param sb_size size of small blocks.
2236
+ * @returns the new ole file handler.
2237
+ */
2238
+ static new_full(sink: Output, bb_size: number, sb_size: number): OutfileMSOle
2239
+ _init(config?: OutfileMSOle.ConstructorProperties): void
2240
+ }
2241
+
2242
+ export module OutfileOpenPkg {
2243
+
2244
+ // Constructor properties interface
2245
+
2246
+ export interface ConstructorProperties extends Outfile.ConstructorProperties {
2247
+
2248
+ // Own constructor properties of Gsf-1.Gsf.OutfileOpenPkg
2249
+
2250
+ content_type?: string | null
2251
+ is_dir?: boolean | null
2252
+ sink?: Outfile | null
2253
+ }
2254
+
2255
+ }
2256
+
2257
+ export interface OutfileOpenPkg {
2258
+
2259
+ // Own properties of Gsf-1.Gsf.OutfileOpenPkg
2260
+
2261
+ readonly content_type: string | null
2262
+ readonly is_dir: boolean
2263
+ readonly sink: Outfile
2264
+
2265
+ // Owm methods of Gsf-1.Gsf.OutfileOpenPkg
2266
+
2267
+ /**
2268
+ * Add an external relation to `parent`.
2269
+ * @param target target type
2270
+ * @param content_type target content
2271
+ * @returns The id of the relation. The string is managed by the parent and should not be changed or freed by the caller.
2272
+ */
2273
+ add_extern_rel(target: string | null, content_type: string | null): string | null
2274
+ /**
2275
+ * Create a relationship between `child` and `parent` of `type`.
2276
+ * @param parent #GsfOutfileOpenPkg
2277
+ * @param type target type
2278
+ * @returns the relID which the caller does not own but will live as long as @parent.
2279
+ */
2280
+ relate(parent: OutfileOpenPkg, type: string | null): string | null
2281
+ set_content_type(content_type: string | null): void
2282
+ /**
2283
+ * Assigns a GsfOutput (`sink)` to store the package into.
2284
+ * @param sink #GsfOutput
2285
+ */
2286
+ set_sink(sink: Output): void
2287
+
2288
+ // Class property signals of Gsf-1.Gsf.OutfileOpenPkg
2289
+
2290
+ connect(sigName: "notify::content-type", callback: (($obj: OutfileOpenPkg, pspec: GObject.ParamSpec) => void)): number
2291
+ connect_after(sigName: "notify::content-type", callback: (($obj: OutfileOpenPkg, pspec: GObject.ParamSpec) => void)): number
2292
+ emit(sigName: "notify::content-type", ...args: any[]): void
2293
+ connect(sigName: "notify::is-dir", callback: (($obj: OutfileOpenPkg, pspec: GObject.ParamSpec) => void)): number
2294
+ connect_after(sigName: "notify::is-dir", callback: (($obj: OutfileOpenPkg, pspec: GObject.ParamSpec) => void)): number
2295
+ emit(sigName: "notify::is-dir", ...args: any[]): void
2296
+ connect(sigName: "notify::sink", callback: (($obj: OutfileOpenPkg, pspec: GObject.ParamSpec) => void)): number
2297
+ connect_after(sigName: "notify::sink", callback: (($obj: OutfileOpenPkg, pspec: GObject.ParamSpec) => void)): number
2298
+ emit(sigName: "notify::sink", ...args: any[]): void
2299
+ connect(sigName: "notify::modtime", callback: (($obj: OutfileOpenPkg, pspec: GObject.ParamSpec) => void)): number
2300
+ connect_after(sigName: "notify::modtime", callback: (($obj: OutfileOpenPkg, pspec: GObject.ParamSpec) => void)): number
2301
+ emit(sigName: "notify::modtime", ...args: any[]): void
2302
+ connect(sigName: "notify::position", callback: (($obj: OutfileOpenPkg, pspec: GObject.ParamSpec) => void)): number
2303
+ connect_after(sigName: "notify::position", callback: (($obj: OutfileOpenPkg, pspec: GObject.ParamSpec) => void)): number
2304
+ emit(sigName: "notify::position", ...args: any[]): void
2305
+ connect(sigName: "notify::size", callback: (($obj: OutfileOpenPkg, pspec: GObject.ParamSpec) => void)): number
2306
+ connect_after(sigName: "notify::size", callback: (($obj: OutfileOpenPkg, pspec: GObject.ParamSpec) => void)): number
2307
+ emit(sigName: "notify::size", ...args: any[]): void
2308
+ connect(sigName: string, callback: (...args: any[]) => void): number
2309
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
2310
+ emit(sigName: string, ...args: any[]): void
2311
+ disconnect(id: number): void
2312
+ }
2313
+
2314
+ export class OutfileOpenPkg extends Outfile {
2315
+
2316
+ // Own properties of Gsf-1.Gsf.OutfileOpenPkg
2317
+
2318
+ static name: string
2319
+ static $gtype: GObject.GType<OutfileOpenPkg>
2320
+
2321
+ // Constructors of Gsf-1.Gsf.OutfileOpenPkg
2322
+
2323
+ constructor(config?: OutfileOpenPkg.ConstructorProperties)
2324
+ /**
2325
+ * Convenience routine to create a GsfOutfileOpenPkg inside `sink`.
2326
+ * @constructor
2327
+ * @param sink #GsfOutfile
2328
+ * @returns a GsfOutfile that the caller is responsible for.
2329
+ */
2330
+ constructor(sink: Outfile)
2331
+ /**
2332
+ * Convenience routine to create a GsfOutfileOpenPkg inside `sink`.
2333
+ * @constructor
2334
+ * @param sink #GsfOutfile
2335
+ * @returns a GsfOutfile that the caller is responsible for.
2336
+ */
2337
+ static new(sink: Outfile): OutfileOpenPkg
2338
+ _init(config?: OutfileOpenPkg.ConstructorProperties): void
2339
+ }
2340
+
2341
+ export module OutfileStdio {
2342
+
2343
+ // Constructor properties interface
2344
+
2345
+ export interface ConstructorProperties extends Outfile.ConstructorProperties {
2346
+ }
2347
+
2348
+ }
2349
+
2350
+ export interface OutfileStdio {
2351
+
2352
+ // Class property signals of Gsf-1.Gsf.OutfileStdio
2353
+
2354
+ connect(sigName: "notify::modtime", callback: (($obj: OutfileStdio, pspec: GObject.ParamSpec) => void)): number
2355
+ connect_after(sigName: "notify::modtime", callback: (($obj: OutfileStdio, pspec: GObject.ParamSpec) => void)): number
2356
+ emit(sigName: "notify::modtime", ...args: any[]): void
2357
+ connect(sigName: "notify::position", callback: (($obj: OutfileStdio, pspec: GObject.ParamSpec) => void)): number
2358
+ connect_after(sigName: "notify::position", callback: (($obj: OutfileStdio, pspec: GObject.ParamSpec) => void)): number
2359
+ emit(sigName: "notify::position", ...args: any[]): void
2360
+ connect(sigName: "notify::size", callback: (($obj: OutfileStdio, pspec: GObject.ParamSpec) => void)): number
2361
+ connect_after(sigName: "notify::size", callback: (($obj: OutfileStdio, pspec: GObject.ParamSpec) => void)): number
2362
+ emit(sigName: "notify::size", ...args: any[]): void
2363
+ connect(sigName: string, callback: (...args: any[]) => void): number
2364
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
2365
+ emit(sigName: string, ...args: any[]): void
2366
+ disconnect(id: number): void
2367
+ }
2368
+
2369
+ export class OutfileStdio extends Outfile {
2370
+
2371
+ // Own properties of Gsf-1.Gsf.OutfileStdio
2372
+
2373
+ static name: string
2374
+ static $gtype: GObject.GType<OutfileStdio>
2375
+
2376
+ // Constructors of Gsf-1.Gsf.OutfileStdio
2377
+
2378
+ constructor(config?: OutfileStdio.ConstructorProperties)
2379
+ constructor(root: string | null)
2380
+ static new(root: string | null): OutfileStdio
2381
+ _init(config?: OutfileStdio.ConstructorProperties): void
2382
+ }
2383
+
2384
+ export module OutfileZip {
2385
+
2386
+ // Constructor properties interface
2387
+
2388
+ export interface ConstructorProperties extends Outfile.ConstructorProperties {
2389
+
2390
+ // Own constructor properties of Gsf-1.Gsf.OutfileZip
2391
+
2392
+ compression_level?: number | null
2393
+ deflate_level?: number | null
2394
+ entry_name?: string | null
2395
+ sink?: Output | null
2396
+ zip64?: number | null
2397
+ }
2398
+
2399
+ }
2400
+
2401
+ export interface OutfileZip {
2402
+
2403
+ // Own properties of Gsf-1.Gsf.OutfileZip
2404
+
2405
+ readonly compression_level: number
2406
+ readonly deflate_level: number
2407
+ readonly entry_name: string | null
2408
+ readonly sink: Output
2409
+ readonly zip64: number
2410
+
2411
+ // Owm methods of Gsf-1.Gsf.OutfileZip
2412
+
2413
+ set_compression_method(method: ZipCompressionMethod): boolean
2414
+
2415
+ // Class property signals of Gsf-1.Gsf.OutfileZip
2416
+
2417
+ connect(sigName: "notify::compression-level", callback: (($obj: OutfileZip, pspec: GObject.ParamSpec) => void)): number
2418
+ connect_after(sigName: "notify::compression-level", callback: (($obj: OutfileZip, pspec: GObject.ParamSpec) => void)): number
2419
+ emit(sigName: "notify::compression-level", ...args: any[]): void
2420
+ connect(sigName: "notify::deflate-level", callback: (($obj: OutfileZip, pspec: GObject.ParamSpec) => void)): number
2421
+ connect_after(sigName: "notify::deflate-level", callback: (($obj: OutfileZip, pspec: GObject.ParamSpec) => void)): number
2422
+ emit(sigName: "notify::deflate-level", ...args: any[]): void
2423
+ connect(sigName: "notify::entry-name", callback: (($obj: OutfileZip, pspec: GObject.ParamSpec) => void)): number
2424
+ connect_after(sigName: "notify::entry-name", callback: (($obj: OutfileZip, pspec: GObject.ParamSpec) => void)): number
2425
+ emit(sigName: "notify::entry-name", ...args: any[]): void
2426
+ connect(sigName: "notify::sink", callback: (($obj: OutfileZip, pspec: GObject.ParamSpec) => void)): number
2427
+ connect_after(sigName: "notify::sink", callback: (($obj: OutfileZip, pspec: GObject.ParamSpec) => void)): number
2428
+ emit(sigName: "notify::sink", ...args: any[]): void
2429
+ connect(sigName: "notify::zip64", callback: (($obj: OutfileZip, pspec: GObject.ParamSpec) => void)): number
2430
+ connect_after(sigName: "notify::zip64", callback: (($obj: OutfileZip, pspec: GObject.ParamSpec) => void)): number
2431
+ emit(sigName: "notify::zip64", ...args: any[]): void
2432
+ connect(sigName: "notify::modtime", callback: (($obj: OutfileZip, pspec: GObject.ParamSpec) => void)): number
2433
+ connect_after(sigName: "notify::modtime", callback: (($obj: OutfileZip, pspec: GObject.ParamSpec) => void)): number
2434
+ emit(sigName: "notify::modtime", ...args: any[]): void
2435
+ connect(sigName: "notify::position", callback: (($obj: OutfileZip, pspec: GObject.ParamSpec) => void)): number
2436
+ connect_after(sigName: "notify::position", callback: (($obj: OutfileZip, pspec: GObject.ParamSpec) => void)): number
2437
+ emit(sigName: "notify::position", ...args: any[]): void
2438
+ connect(sigName: "notify::size", callback: (($obj: OutfileZip, pspec: GObject.ParamSpec) => void)): number
2439
+ connect_after(sigName: "notify::size", callback: (($obj: OutfileZip, pspec: GObject.ParamSpec) => void)): number
2440
+ emit(sigName: "notify::size", ...args: any[]): void
2441
+ connect(sigName: string, callback: (...args: any[]) => void): number
2442
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
2443
+ emit(sigName: string, ...args: any[]): void
2444
+ disconnect(id: number): void
2445
+ }
2446
+
2447
+ export class OutfileZip extends Outfile {
2448
+
2449
+ // Own properties of Gsf-1.Gsf.OutfileZip
2450
+
2451
+ static name: string
2452
+ static $gtype: GObject.GType<OutfileZip>
2453
+
2454
+ // Constructors of Gsf-1.Gsf.OutfileZip
2455
+
2456
+ constructor(config?: OutfileZip.ConstructorProperties)
2457
+ /**
2458
+ * Creates the root directory of a Zip file and manages the addition of
2459
+ * children.
2460
+ *
2461
+ * <note>This adds a reference to `sink`.</note>
2462
+ * @constructor
2463
+ * @param sink a #GsfOutput to hold the ZIP file
2464
+ * @returns the new zip file handler
2465
+ */
2466
+ constructor(sink: Output)
2467
+ /**
2468
+ * Creates the root directory of a Zip file and manages the addition of
2469
+ * children.
2470
+ *
2471
+ * <note>This adds a reference to `sink`.</note>
2472
+ * @constructor
2473
+ * @param sink a #GsfOutput to hold the ZIP file
2474
+ * @returns the new zip file handler
2475
+ */
2476
+ static new(sink: Output): OutfileZip
2477
+ _init(config?: OutfileZip.ConstructorProperties): void
2478
+ }
2479
+
2480
+ export module Output {
2481
+
2482
+ // Constructor properties interface
2483
+
2484
+ export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
2485
+
2486
+ // Own constructor properties of Gsf-1.Gsf.Output
2487
+
2488
+ /**
2489
+ * The container, optionally %NULL, in which this output lives.
2490
+ */
2491
+ container?: Outfile | null
2492
+ /**
2493
+ * The time the output was last updated. This must be set on object
2494
+ * construction and represents the timestamp to put on the resulting
2495
+ * file or #GsfOutfile member. Not all derived classes will actually
2496
+ * do anything with this property.
2497
+ */
2498
+ modtime?: GLib.DateTime | null
2499
+ name?: string | null
2500
+ }
2501
+
2502
+ }
2503
+
2504
+ export interface Output {
2505
+
2506
+ // Own properties of Gsf-1.Gsf.Output
2507
+
2508
+ /**
2509
+ * The time the output was last updated. This must be set on object
2510
+ * construction and represents the timestamp to put on the resulting
2511
+ * file or #GsfOutfile member. Not all derived classes will actually
2512
+ * do anything with this property.
2513
+ */
2514
+ readonly modtime: GLib.DateTime
2515
+ /**
2516
+ * The current position in the output.
2517
+ */
2518
+ readonly position: number
2519
+ /**
2520
+ * The current file size.
2521
+ */
2522
+ readonly size: number
2523
+
2524
+ // Own fields of Gsf-1.Gsf.Output
2525
+
2526
+ g_object: GObject.Object
2527
+ cur_size: gsf_off_t
2528
+ cur_offset: gsf_off_t
2529
+ name: string | null
2530
+ wrapped_by: GObject.Object
2531
+ container: Outfile
2532
+ err: GLib.Error
2533
+ is_closed: boolean
2534
+ printf_buf: string | null
2535
+ printf_buf_size: number
2536
+
2537
+ // Owm methods of Gsf-1.Gsf.Output
2538
+
2539
+ /**
2540
+ * Close a stream.
2541
+ * @returns %FALSE on error
2542
+ */
2543
+ close(): boolean
2544
+ error(): GLib.Error | null
2545
+ get_modtime(): GLib.DateTime | null
2546
+ /**
2547
+ * Like fputs, this assumes that the line already ends with a newline
2548
+ * @param line Nul terminated string to write
2549
+ * @returns %TRUE if successful, %FALSE if not
2550
+ */
2551
+ puts(line: string | null): boolean
2552
+ /**
2553
+ * Reposition in output stream `output`. `whence` specifies what the offset is
2554
+ * relative to: the beginning of the stream (%G_SEEK_SET), current position in
2555
+ * the stream (%G_SEEK_CUR) or the end of the stream (%G_SEEK_END).
2556
+ * This function is similar to
2557
+ * <citerefentry><refentrytitle>fseek</refentrytitle>
2558
+ * <manvolnum>3</manvolnum></citerefentry>.
2559
+ * @param offset Relative amount to reposition
2560
+ * @param whence What the offset is relative to.
2561
+ * @returns %FALSE on error.
2562
+ */
2563
+ seek(offset: gsf_off_t, whence: GLib.SeekType): boolean
2564
+ /**
2565
+ * <note>This is a utility routine that should only be used by derived
2566
+ * outputs.</note>
2567
+ * @param container #GsfOutfile
2568
+ * @returns %TRUE if the assignment was ok.
2569
+ */
2570
+ set_container(container: Outfile | null): boolean
2571
+ set_modtime(modtime: GLib.DateTime | null): boolean
2572
+ /**
2573
+ * <note>This is a utility routine that should only be used by derived
2574
+ * outputs.</note>
2575
+ * @param name the new name
2576
+ * @returns %TRUE if the assignment was ok.
2577
+ */
2578
+ set_name(name: string | null): boolean
2579
+ /**
2580
+ * <note>This is a utility routine that should only be used by derived
2581
+ * outputs.</note>
2582
+ * @param filename the (fs-sys encoded) filename
2583
+ * @returns %TRUE if the assignment was ok.
2584
+ */
2585
+ set_name_from_filename(filename: string | null): boolean
2586
+ /**
2587
+ * Tell the current position in `output,` similar to
2588
+ * <citerefentry><refentrytitle>ftell</refentrytitle>
2589
+ * <manvolnum>3</manvolnum></citerefentry>.
2590
+ * @returns the current position in the file
2591
+ */
2592
+ tell(): gsf_off_t
2593
+ /**
2594
+ * Write `num_bytes` of `data` to `output`.
2595
+ * @param data Data to write.
2596
+ * @returns %FALSE on error.
2597
+ */
2598
+ write(data: Uint8Array): boolean
2599
+
2600
+ // Own virtual methods of Gsf-1.Gsf.Output
2601
+
2602
+ /**
2603
+ * Close a stream.
2604
+ * @virtual
2605
+ * @returns %FALSE on error
2606
+ */
2607
+ vfunc_Close(): boolean
2608
+ /**
2609
+ * Reposition in output stream `output`. `whence` specifies what the offset is
2610
+ * relative to: the beginning of the stream (%G_SEEK_SET), current position in
2611
+ * the stream (%G_SEEK_CUR) or the end of the stream (%G_SEEK_END).
2612
+ * This function is similar to
2613
+ * <citerefentry><refentrytitle>fseek</refentrytitle>
2614
+ * <manvolnum>3</manvolnum></citerefentry>.
2615
+ * @virtual
2616
+ * @param offset Relative amount to reposition
2617
+ * @param whence What the offset is relative to.
2618
+ * @returns %FALSE on error.
2619
+ */
2620
+ vfunc_Seek(offset: gsf_off_t, whence: GLib.SeekType): boolean
2621
+ /**
2622
+ * Write `num_bytes` of `data` to `output`.
2623
+ * @virtual
2624
+ * @param data Data to write.
2625
+ * @returns %FALSE on error.
2626
+ */
2627
+ vfunc_Write(data: Uint8Array): boolean
2628
+
2629
+ // Class property signals of Gsf-1.Gsf.Output
2630
+
2631
+ connect(sigName: "notify::modtime", callback: (($obj: Output, pspec: GObject.ParamSpec) => void)): number
2632
+ connect_after(sigName: "notify::modtime", callback: (($obj: Output, pspec: GObject.ParamSpec) => void)): number
2633
+ emit(sigName: "notify::modtime", ...args: any[]): void
2634
+ connect(sigName: "notify::position", callback: (($obj: Output, pspec: GObject.ParamSpec) => void)): number
2635
+ connect_after(sigName: "notify::position", callback: (($obj: Output, pspec: GObject.ParamSpec) => void)): number
2636
+ emit(sigName: "notify::position", ...args: any[]): void
2637
+ connect(sigName: "notify::size", callback: (($obj: Output, pspec: GObject.ParamSpec) => void)): number
2638
+ connect_after(sigName: "notify::size", callback: (($obj: Output, pspec: GObject.ParamSpec) => void)): number
2639
+ emit(sigName: "notify::size", ...args: any[]): void
2640
+ connect(sigName: string, callback: (...args: any[]) => void): number
2641
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
2642
+ emit(sigName: string, ...args: any[]): void
2643
+ disconnect(id: number): void
2644
+ }
2645
+
2646
+ /**
2647
+ * Class representing an output stream, counterpart to #GsfInput.
2648
+ * @class
2649
+ */
2650
+ export class Output extends GObject.Object {
2651
+
2652
+ // Own properties of Gsf-1.Gsf.Output
2653
+
2654
+ static name: string
2655
+ static $gtype: GObject.GType<Output>
2656
+
2657
+ // Constructors of Gsf-1.Gsf.Output
2658
+
2659
+ constructor(config?: Output.ConstructorProperties)
2660
+ _init(config?: Output.ConstructorProperties): void
2661
+ static error_id(): GLib.Quark
2662
+ static unwrap(wrapper: GObject.Object, wrapee: Output): boolean
2663
+ static wrap(wrapper: GObject.Object, wrapee: Output): boolean
2664
+ }
2665
+
2666
+ export module OutputBzip {
2667
+
2668
+ // Constructor properties interface
2669
+
2670
+ export interface ConstructorProperties extends Output.ConstructorProperties {
2671
+ }
2672
+
2673
+ }
2674
+
2675
+ export interface OutputBzip {
2676
+
2677
+ // Class property signals of Gsf-1.Gsf.OutputBzip
2678
+
2679
+ connect(sigName: "notify::modtime", callback: (($obj: OutputBzip, pspec: GObject.ParamSpec) => void)): number
2680
+ connect_after(sigName: "notify::modtime", callback: (($obj: OutputBzip, pspec: GObject.ParamSpec) => void)): number
2681
+ emit(sigName: "notify::modtime", ...args: any[]): void
2682
+ connect(sigName: "notify::position", callback: (($obj: OutputBzip, pspec: GObject.ParamSpec) => void)): number
2683
+ connect_after(sigName: "notify::position", callback: (($obj: OutputBzip, pspec: GObject.ParamSpec) => void)): number
2684
+ emit(sigName: "notify::position", ...args: any[]): void
2685
+ connect(sigName: "notify::size", callback: (($obj: OutputBzip, pspec: GObject.ParamSpec) => void)): number
2686
+ connect_after(sigName: "notify::size", callback: (($obj: OutputBzip, pspec: GObject.ParamSpec) => void)): number
2687
+ emit(sigName: "notify::size", ...args: any[]): void
2688
+ connect(sigName: string, callback: (...args: any[]) => void): number
2689
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
2690
+ emit(sigName: string, ...args: any[]): void
2691
+ disconnect(id: number): void
2692
+ }
2693
+
2694
+ export class OutputBzip extends Output {
2695
+
2696
+ // Own properties of Gsf-1.Gsf.OutputBzip
2697
+
2698
+ static name: string
2699
+ static $gtype: GObject.GType<OutputBzip>
2700
+
2701
+ // Constructors of Gsf-1.Gsf.OutputBzip
2702
+
2703
+ constructor(config?: OutputBzip.ConstructorProperties)
2704
+ /**
2705
+ * Adds a reference to `sink`.
2706
+ * @constructor
2707
+ * @param sink The underlying data source.
2708
+ * @returns a new file or %NULL.
2709
+ */
2710
+ constructor(sink: Output)
2711
+ /**
2712
+ * Adds a reference to `sink`.
2713
+ * @constructor
2714
+ * @param sink The underlying data source.
2715
+ * @returns a new file or %NULL.
2716
+ */
2717
+ static new(sink: Output): OutputBzip
2718
+ _init(config?: OutputBzip.ConstructorProperties): void
2719
+ }
2720
+
2721
+ export module OutputCsv {
2722
+
2723
+ // Constructor properties interface
2724
+
2725
+ export interface ConstructorProperties extends Output.ConstructorProperties {
2726
+
2727
+ // Own constructor properties of Gsf-1.Gsf.OutputCsv
2728
+
2729
+ eol?: string | null
2730
+ quote?: string | null
2731
+ quoting_mode?: OutputCsvQuotingMode | null
2732
+ quoting_on_whitespace?: boolean | null
2733
+ quoting_triggers?: string | null
2734
+ separator?: string | null
2735
+ sink?: Output | null
2736
+ }
2737
+
2738
+ }
2739
+
2740
+ export interface OutputCsv {
2741
+
2742
+ // Own properties of Gsf-1.Gsf.OutputCsv
2743
+
2744
+ quoting_on_whitespace: boolean
2745
+
2746
+ // Own fields of Gsf-1.Gsf.OutputCsv
2747
+
2748
+ output: Output
2749
+ sink: Output
2750
+ quote: string | null
2751
+ quote_len: number
2752
+ quoting_mode: OutputCsvQuotingMode
2753
+ quoting_triggers: string | null
2754
+ eol: string | null
2755
+ eol_len: number
2756
+ separator: string | null
2757
+ separator_len: number
2758
+ fields_on_line: boolean
2759
+ buf: GLib.String
2760
+
2761
+ // Owm methods of Gsf-1.Gsf.OutputCsv
2762
+
2763
+ write_eol(): boolean
2764
+ write_field(field: string | null, len: number): boolean
2765
+
2766
+ // Class property signals of Gsf-1.Gsf.OutputCsv
2767
+
2768
+ connect(sigName: "notify::quoting-on-whitespace", callback: (($obj: OutputCsv, pspec: GObject.ParamSpec) => void)): number
2769
+ connect_after(sigName: "notify::quoting-on-whitespace", callback: (($obj: OutputCsv, pspec: GObject.ParamSpec) => void)): number
2770
+ emit(sigName: "notify::quoting-on-whitespace", ...args: any[]): void
2771
+ connect(sigName: "notify::modtime", callback: (($obj: OutputCsv, pspec: GObject.ParamSpec) => void)): number
2772
+ connect_after(sigName: "notify::modtime", callback: (($obj: OutputCsv, pspec: GObject.ParamSpec) => void)): number
2773
+ emit(sigName: "notify::modtime", ...args: any[]): void
2774
+ connect(sigName: "notify::position", callback: (($obj: OutputCsv, pspec: GObject.ParamSpec) => void)): number
2775
+ connect_after(sigName: "notify::position", callback: (($obj: OutputCsv, pspec: GObject.ParamSpec) => void)): number
2776
+ emit(sigName: "notify::position", ...args: any[]): void
2777
+ connect(sigName: "notify::size", callback: (($obj: OutputCsv, pspec: GObject.ParamSpec) => void)): number
2778
+ connect_after(sigName: "notify::size", callback: (($obj: OutputCsv, pspec: GObject.ParamSpec) => void)): number
2779
+ emit(sigName: "notify::size", ...args: any[]): void
2780
+ connect(sigName: string, callback: (...args: any[]) => void): number
2781
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
2782
+ emit(sigName: string, ...args: any[]): void
2783
+ disconnect(id: number): void
2784
+ }
2785
+
2786
+ export class OutputCsv extends Output {
2787
+
2788
+ // Own properties of Gsf-1.Gsf.OutputCsv
2789
+
2790
+ static name: string
2791
+ static $gtype: GObject.GType<OutputCsv>
2792
+
2793
+ // Constructors of Gsf-1.Gsf.OutputCsv
2794
+
2795
+ constructor(config?: OutputCsv.ConstructorProperties)
2796
+ _init(config?: OutputCsv.ConstructorProperties): void
2797
+ }
2798
+
2799
+ export module OutputGZip {
2800
+
2801
+ // Constructor properties interface
2802
+
2803
+ export interface ConstructorProperties extends Output.ConstructorProperties {
2804
+
2805
+ // Own constructor properties of Gsf-1.Gsf.OutputGZip
2806
+
2807
+ deflate_level?: number | null
2808
+ raw?: boolean | null
2809
+ sink?: Output | null
2810
+ }
2811
+
2812
+ }
2813
+
2814
+ export interface OutputGZip {
2815
+
2816
+ // Own properties of Gsf-1.Gsf.OutputGZip
2817
+
2818
+ deflate_level: number
2819
+ readonly raw: boolean
2820
+ readonly sink: Output
2821
+
2822
+ // Class property signals of Gsf-1.Gsf.OutputGZip
2823
+
2824
+ connect(sigName: "notify::deflate-level", callback: (($obj: OutputGZip, pspec: GObject.ParamSpec) => void)): number
2825
+ connect_after(sigName: "notify::deflate-level", callback: (($obj: OutputGZip, pspec: GObject.ParamSpec) => void)): number
2826
+ emit(sigName: "notify::deflate-level", ...args: any[]): void
2827
+ connect(sigName: "notify::raw", callback: (($obj: OutputGZip, pspec: GObject.ParamSpec) => void)): number
2828
+ connect_after(sigName: "notify::raw", callback: (($obj: OutputGZip, pspec: GObject.ParamSpec) => void)): number
2829
+ emit(sigName: "notify::raw", ...args: any[]): void
2830
+ connect(sigName: "notify::sink", callback: (($obj: OutputGZip, pspec: GObject.ParamSpec) => void)): number
2831
+ connect_after(sigName: "notify::sink", callback: (($obj: OutputGZip, pspec: GObject.ParamSpec) => void)): number
2832
+ emit(sigName: "notify::sink", ...args: any[]): void
2833
+ connect(sigName: "notify::modtime", callback: (($obj: OutputGZip, pspec: GObject.ParamSpec) => void)): number
2834
+ connect_after(sigName: "notify::modtime", callback: (($obj: OutputGZip, pspec: GObject.ParamSpec) => void)): number
2835
+ emit(sigName: "notify::modtime", ...args: any[]): void
2836
+ connect(sigName: "notify::position", callback: (($obj: OutputGZip, pspec: GObject.ParamSpec) => void)): number
2837
+ connect_after(sigName: "notify::position", callback: (($obj: OutputGZip, pspec: GObject.ParamSpec) => void)): number
2838
+ emit(sigName: "notify::position", ...args: any[]): void
2839
+ connect(sigName: "notify::size", callback: (($obj: OutputGZip, pspec: GObject.ParamSpec) => void)): number
2840
+ connect_after(sigName: "notify::size", callback: (($obj: OutputGZip, pspec: GObject.ParamSpec) => void)): number
2841
+ emit(sigName: "notify::size", ...args: any[]): void
2842
+ connect(sigName: string, callback: (...args: any[]) => void): number
2843
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
2844
+ emit(sigName: string, ...args: any[]): void
2845
+ disconnect(id: number): void
2846
+ }
2847
+
2848
+ export class OutputGZip extends Output {
2849
+
2850
+ // Own properties of Gsf-1.Gsf.OutputGZip
2851
+
2852
+ static name: string
2853
+ static $gtype: GObject.GType<OutputGZip>
2854
+
2855
+ // Constructors of Gsf-1.Gsf.OutputGZip
2856
+
2857
+ constructor(config?: OutputGZip.ConstructorProperties)
2858
+ /**
2859
+ * Adds a reference to `sink`.
2860
+ * @constructor
2861
+ * @param sink The underlying data source.
2862
+ * @returns a new file or %NULL.
2863
+ */
2864
+ constructor(sink: Output)
2865
+ /**
2866
+ * Adds a reference to `sink`.
2867
+ * @constructor
2868
+ * @param sink The underlying data source.
2869
+ * @returns a new file or %NULL.
2870
+ */
2871
+ static new(sink: Output): OutputGZip
2872
+ _init(config?: OutputGZip.ConstructorProperties): void
2873
+ }
2874
+
2875
+ export module OutputGio {
2876
+
2877
+ // Constructor properties interface
2878
+
2879
+ export interface ConstructorProperties extends Output.ConstructorProperties {
2880
+ }
2881
+
2882
+ }
2883
+
2884
+ export interface OutputGio {
2885
+
2886
+ // Class property signals of Gsf-1.Gsf.OutputGio
2887
+
2888
+ connect(sigName: "notify::modtime", callback: (($obj: OutputGio, pspec: GObject.ParamSpec) => void)): number
2889
+ connect_after(sigName: "notify::modtime", callback: (($obj: OutputGio, pspec: GObject.ParamSpec) => void)): number
2890
+ emit(sigName: "notify::modtime", ...args: any[]): void
2891
+ connect(sigName: "notify::position", callback: (($obj: OutputGio, pspec: GObject.ParamSpec) => void)): number
2892
+ connect_after(sigName: "notify::position", callback: (($obj: OutputGio, pspec: GObject.ParamSpec) => void)): number
2893
+ emit(sigName: "notify::position", ...args: any[]): void
2894
+ connect(sigName: "notify::size", callback: (($obj: OutputGio, pspec: GObject.ParamSpec) => void)): number
2895
+ connect_after(sigName: "notify::size", callback: (($obj: OutputGio, pspec: GObject.ParamSpec) => void)): number
2896
+ emit(sigName: "notify::size", ...args: any[]): void
2897
+ connect(sigName: string, callback: (...args: any[]) => void): number
2898
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
2899
+ emit(sigName: string, ...args: any[]): void
2900
+ disconnect(id: number): void
2901
+ }
2902
+
2903
+ export class OutputGio extends Output {
2904
+
2905
+ // Own properties of Gsf-1.Gsf.OutputGio
2906
+
2907
+ static name: string
2908
+ static $gtype: GObject.GType<OutputGio>
2909
+
2910
+ // Constructors of Gsf-1.Gsf.OutputGio
2911
+
2912
+ constructor(config?: OutputGio.ConstructorProperties)
2913
+ constructor(file: Gio.File)
2914
+ static new(file: Gio.File): OutputGio
2915
+ static new_for_path(path: string | null): OutputGio
2916
+ static new_for_uri(uri: string | null): OutputGio
2917
+ _init(config?: OutputGio.ConstructorProperties): void
2918
+ }
2919
+
2920
+ export module OutputIOChannel {
2921
+
2922
+ // Constructor properties interface
2923
+
2924
+ export interface ConstructorProperties extends Output.ConstructorProperties {
2925
+ }
2926
+
2927
+ }
2928
+
2929
+ export interface OutputIOChannel {
2930
+
2931
+ // Class property signals of Gsf-1.Gsf.OutputIOChannel
2932
+
2933
+ connect(sigName: "notify::modtime", callback: (($obj: OutputIOChannel, pspec: GObject.ParamSpec) => void)): number
2934
+ connect_after(sigName: "notify::modtime", callback: (($obj: OutputIOChannel, pspec: GObject.ParamSpec) => void)): number
2935
+ emit(sigName: "notify::modtime", ...args: any[]): void
2936
+ connect(sigName: "notify::position", callback: (($obj: OutputIOChannel, pspec: GObject.ParamSpec) => void)): number
2937
+ connect_after(sigName: "notify::position", callback: (($obj: OutputIOChannel, pspec: GObject.ParamSpec) => void)): number
2938
+ emit(sigName: "notify::position", ...args: any[]): void
2939
+ connect(sigName: "notify::size", callback: (($obj: OutputIOChannel, pspec: GObject.ParamSpec) => void)): number
2940
+ connect_after(sigName: "notify::size", callback: (($obj: OutputIOChannel, pspec: GObject.ParamSpec) => void)): number
2941
+ emit(sigName: "notify::size", ...args: any[]): void
2942
+ connect(sigName: string, callback: (...args: any[]) => void): number
2943
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
2944
+ emit(sigName: string, ...args: any[]): void
2945
+ disconnect(id: number): void
2946
+ }
2947
+
2948
+ export class OutputIOChannel extends Output {
2949
+
2950
+ // Own properties of Gsf-1.Gsf.OutputIOChannel
2951
+
2952
+ static name: string
2953
+ static $gtype: GObject.GType<OutputIOChannel>
2954
+
2955
+ // Constructors of Gsf-1.Gsf.OutputIOChannel
2956
+
2957
+ constructor(config?: OutputIOChannel.ConstructorProperties)
2958
+ constructor(channel: GLib.IOChannel)
2959
+ static new(channel: GLib.IOChannel): OutputIOChannel
2960
+ _init(config?: OutputIOChannel.ConstructorProperties): void
2961
+ }
2962
+
2963
+ export module OutputIconv {
2964
+
2965
+ // Constructor properties interface
2966
+
2967
+ export interface ConstructorProperties extends Output.ConstructorProperties {
2968
+
2969
+ // Own constructor properties of Gsf-1.Gsf.OutputIconv
2970
+
2971
+ /**
2972
+ * Either NULL or a UTF-8 string (representable in the target encoding)
2973
+ * to convert and output in place of characters that cannot be represented
2974
+ * in the target encoding. NULL means use \u1234 or \U12345678 format.
2975
+ */
2976
+ fallback?: string | null
2977
+ input_charset?: string | null
2978
+ output_charset?: string | null
2979
+ sink?: Output | null
2980
+ }
2981
+
2982
+ }
2983
+
2984
+ export interface OutputIconv {
2985
+
2986
+ // Own properties of Gsf-1.Gsf.OutputIconv
2987
+
2988
+ /**
2989
+ * Either NULL or a UTF-8 string (representable in the target encoding)
2990
+ * to convert and output in place of characters that cannot be represented
2991
+ * in the target encoding. NULL means use \u1234 or \U12345678 format.
2992
+ */
2993
+ fallback: string | null
2994
+ readonly input_charset: string | null
2995
+ readonly output_charset: string | null
2996
+ readonly sink: Output
2997
+
2998
+ // Class property signals of Gsf-1.Gsf.OutputIconv
2999
+
3000
+ connect(sigName: "notify::fallback", callback: (($obj: OutputIconv, pspec: GObject.ParamSpec) => void)): number
3001
+ connect_after(sigName: "notify::fallback", callback: (($obj: OutputIconv, pspec: GObject.ParamSpec) => void)): number
3002
+ emit(sigName: "notify::fallback", ...args: any[]): void
3003
+ connect(sigName: "notify::input-charset", callback: (($obj: OutputIconv, pspec: GObject.ParamSpec) => void)): number
3004
+ connect_after(sigName: "notify::input-charset", callback: (($obj: OutputIconv, pspec: GObject.ParamSpec) => void)): number
3005
+ emit(sigName: "notify::input-charset", ...args: any[]): void
3006
+ connect(sigName: "notify::output-charset", callback: (($obj: OutputIconv, pspec: GObject.ParamSpec) => void)): number
3007
+ connect_after(sigName: "notify::output-charset", callback: (($obj: OutputIconv, pspec: GObject.ParamSpec) => void)): number
3008
+ emit(sigName: "notify::output-charset", ...args: any[]): void
3009
+ connect(sigName: "notify::sink", callback: (($obj: OutputIconv, pspec: GObject.ParamSpec) => void)): number
3010
+ connect_after(sigName: "notify::sink", callback: (($obj: OutputIconv, pspec: GObject.ParamSpec) => void)): number
3011
+ emit(sigName: "notify::sink", ...args: any[]): void
3012
+ connect(sigName: "notify::modtime", callback: (($obj: OutputIconv, pspec: GObject.ParamSpec) => void)): number
3013
+ connect_after(sigName: "notify::modtime", callback: (($obj: OutputIconv, pspec: GObject.ParamSpec) => void)): number
3014
+ emit(sigName: "notify::modtime", ...args: any[]): void
3015
+ connect(sigName: "notify::position", callback: (($obj: OutputIconv, pspec: GObject.ParamSpec) => void)): number
3016
+ connect_after(sigName: "notify::position", callback: (($obj: OutputIconv, pspec: GObject.ParamSpec) => void)): number
3017
+ emit(sigName: "notify::position", ...args: any[]): void
3018
+ connect(sigName: "notify::size", callback: (($obj: OutputIconv, pspec: GObject.ParamSpec) => void)): number
3019
+ connect_after(sigName: "notify::size", callback: (($obj: OutputIconv, pspec: GObject.ParamSpec) => void)): number
3020
+ emit(sigName: "notify::size", ...args: any[]): void
3021
+ connect(sigName: string, callback: (...args: any[]) => void): number
3022
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
3023
+ emit(sigName: string, ...args: any[]): void
3024
+ disconnect(id: number): void
3025
+ }
3026
+
3027
+ export class OutputIconv extends Output {
3028
+
3029
+ // Own properties of Gsf-1.Gsf.OutputIconv
3030
+
3031
+ static name: string
3032
+ static $gtype: GObject.GType<OutputIconv>
3033
+
3034
+ // Constructors of Gsf-1.Gsf.OutputIconv
3035
+
3036
+ constructor(config?: OutputIconv.ConstructorProperties)
3037
+ /**
3038
+ * Adds a reference to `sink`.
3039
+ * @constructor
3040
+ * @param sink The underlying data source.
3041
+ * @param dst The target character set.
3042
+ * @param src The source character set.
3043
+ * @returns a new GsfOutput object or %NULL.
3044
+ */
3045
+ constructor(sink: Output, dst: string | null, src: string | null)
3046
+ /**
3047
+ * Adds a reference to `sink`.
3048
+ * @constructor
3049
+ * @param sink The underlying data source.
3050
+ * @param dst The target character set.
3051
+ * @param src The source character set.
3052
+ * @returns a new GsfOutput object or %NULL.
3053
+ */
3054
+ static new(sink: Output, dst: string | null, src: string | null): OutputIconv
3055
+ _init(config?: OutputIconv.ConstructorProperties): void
3056
+ }
3057
+
3058
+ export module OutputMemory {
3059
+
3060
+ // Constructor properties interface
3061
+
3062
+ export interface ConstructorProperties extends Output.ConstructorProperties {
3063
+ }
3064
+
3065
+ }
3066
+
3067
+ export interface OutputMemory {
3068
+
3069
+ // Owm methods of Gsf-1.Gsf.OutputMemory
3070
+
3071
+ get_bytes(): Uint8Array | null
3072
+ steal_bytes(): Uint8Array | null
3073
+
3074
+ // Class property signals of Gsf-1.Gsf.OutputMemory
3075
+
3076
+ connect(sigName: "notify::modtime", callback: (($obj: OutputMemory, pspec: GObject.ParamSpec) => void)): number
3077
+ connect_after(sigName: "notify::modtime", callback: (($obj: OutputMemory, pspec: GObject.ParamSpec) => void)): number
3078
+ emit(sigName: "notify::modtime", ...args: any[]): void
3079
+ connect(sigName: "notify::position", callback: (($obj: OutputMemory, pspec: GObject.ParamSpec) => void)): number
3080
+ connect_after(sigName: "notify::position", callback: (($obj: OutputMemory, pspec: GObject.ParamSpec) => void)): number
3081
+ emit(sigName: "notify::position", ...args: any[]): void
3082
+ connect(sigName: "notify::size", callback: (($obj: OutputMemory, pspec: GObject.ParamSpec) => void)): number
3083
+ connect_after(sigName: "notify::size", callback: (($obj: OutputMemory, pspec: GObject.ParamSpec) => void)): number
3084
+ emit(sigName: "notify::size", ...args: any[]): void
3085
+ connect(sigName: string, callback: (...args: any[]) => void): number
3086
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
3087
+ emit(sigName: string, ...args: any[]): void
3088
+ disconnect(id: number): void
3089
+ }
3090
+
3091
+ export class OutputMemory extends Output {
3092
+
3093
+ // Own properties of Gsf-1.Gsf.OutputMemory
3094
+
3095
+ static name: string
3096
+ static $gtype: GObject.GType<OutputMemory>
3097
+
3098
+ // Constructors of Gsf-1.Gsf.OutputMemory
3099
+
3100
+ constructor(config?: OutputMemory.ConstructorProperties)
3101
+ constructor()
3102
+ static new(): OutputMemory
3103
+ _init(config?: OutputMemory.ConstructorProperties): void
3104
+ }
3105
+
3106
+ export module OutputStdio {
3107
+
3108
+ // Constructor properties interface
3109
+
3110
+ export interface ConstructorProperties extends Output.ConstructorProperties {
3111
+ }
3112
+
3113
+ }
3114
+
3115
+ export interface OutputStdio {
3116
+
3117
+ // Class property signals of Gsf-1.Gsf.OutputStdio
3118
+
3119
+ connect(sigName: "notify::modtime", callback: (($obj: OutputStdio, pspec: GObject.ParamSpec) => void)): number
3120
+ connect_after(sigName: "notify::modtime", callback: (($obj: OutputStdio, pspec: GObject.ParamSpec) => void)): number
3121
+ emit(sigName: "notify::modtime", ...args: any[]): void
3122
+ connect(sigName: "notify::position", callback: (($obj: OutputStdio, pspec: GObject.ParamSpec) => void)): number
3123
+ connect_after(sigName: "notify::position", callback: (($obj: OutputStdio, pspec: GObject.ParamSpec) => void)): number
3124
+ emit(sigName: "notify::position", ...args: any[]): void
3125
+ connect(sigName: "notify::size", callback: (($obj: OutputStdio, pspec: GObject.ParamSpec) => void)): number
3126
+ connect_after(sigName: "notify::size", callback: (($obj: OutputStdio, pspec: GObject.ParamSpec) => void)): number
3127
+ emit(sigName: "notify::size", ...args: any[]): void
3128
+ connect(sigName: string, callback: (...args: any[]) => void): number
3129
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
3130
+ emit(sigName: string, ...args: any[]): void
3131
+ disconnect(id: number): void
3132
+ }
3133
+
3134
+ export class OutputStdio extends Output {
3135
+
3136
+ // Own properties of Gsf-1.Gsf.OutputStdio
3137
+
3138
+ static name: string
3139
+ static $gtype: GObject.GType<OutputStdio>
3140
+
3141
+ // Constructors of Gsf-1.Gsf.OutputStdio
3142
+
3143
+ constructor(config?: OutputStdio.ConstructorProperties)
3144
+ constructor(filename: string | null)
3145
+ static new(filename: string | null): OutputStdio
3146
+ _init(config?: OutputStdio.ConstructorProperties): void
3147
+ }
3148
+
3149
+ export module SharedMemory {
3150
+
3151
+ // Constructor properties interface
3152
+
3153
+ export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
3154
+ }
3155
+
3156
+ }
3157
+
3158
+ export interface SharedMemory {
3159
+
3160
+ // Own fields of Gsf-1.Gsf.SharedMemory
3161
+
3162
+ g_object: GObject.Object
3163
+ buf: any
3164
+ size: gsf_off_t
3165
+ needs_free: boolean
3166
+ needs_unmap: boolean
3167
+
3168
+ // Class property signals of Gsf-1.Gsf.SharedMemory
3169
+
3170
+ connect(sigName: string, callback: (...args: any[]) => void): number
3171
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
3172
+ emit(sigName: string, ...args: any[]): void
3173
+ disconnect(id: number): void
3174
+ }
3175
+
3176
+ export class SharedMemory extends GObject.Object {
3177
+
3178
+ // Own properties of Gsf-1.Gsf.SharedMemory
3179
+
3180
+ static name: string
3181
+ static $gtype: GObject.GType<SharedMemory>
3182
+
3183
+ // Constructors of Gsf-1.Gsf.SharedMemory
3184
+
3185
+ constructor(config?: SharedMemory.ConstructorProperties)
3186
+ static mmapped_new(buf: any | null, size: gsf_off_t): SharedMemory
3187
+ constructor(buf: any | null, size: gsf_off_t, needs_free: boolean)
3188
+ static new(buf: any | null, size: gsf_off_t, needs_free: boolean): SharedMemory
3189
+ _init(config?: SharedMemory.ConstructorProperties): void
3190
+ }
3191
+
3192
+ export module StructuredBlob {
3193
+
3194
+ // Constructor properties interface
3195
+
3196
+ export interface ConstructorProperties extends Infile.ConstructorProperties {
3197
+ }
3198
+
3199
+ }
3200
+
3201
+ export interface StructuredBlob {
3202
+
3203
+ // Owm methods of Gsf-1.Gsf.StructuredBlob
3204
+
3205
+ /**
3206
+ * Dumps structured blob `blob` onto the `container`. Will fail if the output is
3207
+ * not an Outfile and blob has multiple streams.
3208
+ * @param container #GsfOutfile
3209
+ * @returns %TRUE on success.
3210
+ */
3211
+ write(container: Outfile): boolean
3212
+
3213
+ // Class property signals of Gsf-1.Gsf.StructuredBlob
3214
+
3215
+ connect(sigName: "notify::eof", callback: (($obj: StructuredBlob, pspec: GObject.ParamSpec) => void)): number
3216
+ connect_after(sigName: "notify::eof", callback: (($obj: StructuredBlob, pspec: GObject.ParamSpec) => void)): number
3217
+ emit(sigName: "notify::eof", ...args: any[]): void
3218
+ connect(sigName: "notify::modtime", callback: (($obj: StructuredBlob, pspec: GObject.ParamSpec) => void)): number
3219
+ connect_after(sigName: "notify::modtime", callback: (($obj: StructuredBlob, pspec: GObject.ParamSpec) => void)): number
3220
+ emit(sigName: "notify::modtime", ...args: any[]): void
3221
+ connect(sigName: "notify::position", callback: (($obj: StructuredBlob, pspec: GObject.ParamSpec) => void)): number
3222
+ connect_after(sigName: "notify::position", callback: (($obj: StructuredBlob, pspec: GObject.ParamSpec) => void)): number
3223
+ emit(sigName: "notify::position", ...args: any[]): void
3224
+ connect(sigName: "notify::remaining", callback: (($obj: StructuredBlob, pspec: GObject.ParamSpec) => void)): number
3225
+ connect_after(sigName: "notify::remaining", callback: (($obj: StructuredBlob, pspec: GObject.ParamSpec) => void)): number
3226
+ emit(sigName: "notify::remaining", ...args: any[]): void
3227
+ connect(sigName: string, callback: (...args: any[]) => void): number
3228
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
3229
+ emit(sigName: string, ...args: any[]): void
3230
+ disconnect(id: number): void
3231
+ }
3232
+
3233
+ export class StructuredBlob extends Infile {
3234
+
3235
+ // Own properties of Gsf-1.Gsf.StructuredBlob
3236
+
3237
+ static name: string
3238
+ static $gtype: GObject.GType<StructuredBlob>
3239
+
3240
+ // Constructors of Gsf-1.Gsf.StructuredBlob
3241
+
3242
+ constructor(config?: StructuredBlob.ConstructorProperties)
3243
+ _init(config?: StructuredBlob.ConstructorProperties): void
3244
+ /**
3245
+ * Create a tree of binary blobs with unknown content from a #GsfInput or
3246
+ * #GsfInfile and store it in a newly created #GsfStructuredBlob.
3247
+ * @param input An input (potentially a GsfInfile) holding the blob
3248
+ * @returns a new #GsfStructuredBlob object which the caller is responsible for.
3249
+ */
3250
+ static read(input: Input): StructuredBlob
3251
+ }
3252
+
3253
+ export module XMLOut {
3254
+
3255
+ // Constructor properties interface
3256
+
3257
+ export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
3258
+
3259
+ // Own constructor properties of Gsf-1.Gsf.XMLOut
3260
+
3261
+ pretty_print?: boolean | null
3262
+ sink?: Output | null
3263
+ }
3264
+
3265
+ }
3266
+
3267
+ export interface XMLOut {
3268
+
3269
+ // Own properties of Gsf-1.Gsf.XMLOut
3270
+
3271
+ pretty_print: boolean
3272
+ readonly sink: Output
3273
+
3274
+ // Own fields of Gsf-1.Gsf.XMLOut
3275
+
3276
+ base: GObject.Object
3277
+ output: Output
3278
+ priv: any
3279
+
3280
+ // Owm methods of Gsf-1.Gsf.XMLOut
3281
+
3282
+ /**
3283
+ * Dump `len` bytes in `data` into the content of node `id` using base64
3284
+ * @param id tag id, or %NULL for node content
3285
+ * @param data Data to be written
3286
+ */
3287
+ add_base64(id: string | null, data: Uint8Array): void
3288
+ /**
3289
+ * dump boolean value `val` to an attribute named `id` or as the nodes content
3290
+ * Use '1' or '0' to simplify import
3291
+ * @param id tag id, or %NULL for node content
3292
+ * @param val a boolean
3293
+ */
3294
+ add_bool(id: string | null, val: boolean): void
3295
+ /**
3296
+ * dump Color `r`.`g`.`b` to an attribute named `id` or as the nodes content
3297
+ * @param id tag id, or %NULL for node content
3298
+ * @param r Red value
3299
+ * @param g Green value
3300
+ * @param b Blue value
3301
+ */
3302
+ add_color(id: string | null, r: number, g: number, b: number): void
3303
+ /**
3304
+ * dump `val_utf8` to an attribute named `id` or as the nodes content escaping
3305
+ * characters as necessary. If `val_utf8` is %NULL do nothing (no warning, no
3306
+ * output)
3307
+ * @param id tag id, or %NULL for node content
3308
+ * @param val_utf8 a utf8 encoded string
3309
+ */
3310
+ add_cstr(id: string | null, val_utf8: string | null): void
3311
+ /**
3312
+ * dump `val_utf8` to an attribute named `id` without checking to see if
3313
+ * the content needs escaping. A useful performance enhancement when
3314
+ * the application knows that structure of the content well. If
3315
+ * `val_utf8` is %NULL do nothing (no warning, no output)
3316
+ * @param id tag id, or %NULL for node content
3317
+ * @param val_utf8 a utf8 encoded string to export
3318
+ */
3319
+ add_cstr_unchecked(id: string | null, val_utf8: string | null): void
3320
+ /**
3321
+ * Output the name of value `val` of enumeration type `etype`.
3322
+ * @param id tag id, or %NULL for node content
3323
+ * @param etype #GType
3324
+ * @param val enum element number
3325
+ */
3326
+ add_enum(id: string | null, etype: GObject.GType, val: number): void
3327
+ /**
3328
+ * dump float value `val` to an attribute named `id` or as the nodes
3329
+ * content with precision `precision`. The number will be formattted
3330
+ * according to the "C" locale.
3331
+ * @param id tag id, or %NULL for node content
3332
+ * @param val the value
3333
+ * @param precision the number of significant digits to use, -1 meaning "enough".
3334
+ */
3335
+ add_float(id: string | null, val: number, precision: number): void
3336
+ /**
3337
+ * Output the value of `val` as a string. Does NOT store any type information
3338
+ * with the string, just thevalue.
3339
+ * @param id tag id, or %NULL for node content
3340
+ * @param val #GValue
3341
+ */
3342
+ add_gvalue(id: string | null, val: any): void
3343
+ /**
3344
+ * dump integer value `val` to an attribute named `id` or as the nodes content
3345
+ * @param id tag id, or %NULL for node content
3346
+ * @param val the value
3347
+ */
3348
+ add_int(id: string | null, val: number): void
3349
+ /**
3350
+ * dump unsigned integer value `val` to an attribute named `id` or as the nodes
3351
+ * content
3352
+ * @param id tag id, or %NULL for node content
3353
+ * @param val the value
3354
+ */
3355
+ add_uint(id: string | null, val: number): void
3356
+ /**
3357
+ * Closes/ends an XML element.
3358
+ * @returns the element that has been closed.
3359
+ */
3360
+ end_element(): string | null
3361
+ /**
3362
+ * Get the #GsfOutput we are writing to..
3363
+ * @returns #GsfInput
3364
+ */
3365
+ get_output(): Output | null
3366
+ get_pretty_print(): boolean
3367
+ /**
3368
+ * Store some optional &lt;!DOCTYPE .. &gt; content
3369
+ * @param type the document type declaration
3370
+ */
3371
+ set_doc_type(type: string | null): void
3372
+ set_pretty_print(pp: boolean): boolean
3373
+ /**
3374
+ * Convenience routine to output a simple `id` element with content `content`.
3375
+ * @param id Element name
3376
+ * @param content Content of the element
3377
+ */
3378
+ simple_element(id: string | null, content: string | null): void
3379
+ /**
3380
+ * Convenience routine to output an element `id` with float value `val` using
3381
+ * `precision` significant digits.
3382
+ * @param id Element name
3383
+ * @param val Element value
3384
+ * @param precision the number of significant digits to use, -1 meaning "enough".
3385
+ */
3386
+ simple_float_element(id: string | null, val: number, precision: number): void
3387
+ /**
3388
+ * Convenience routine to output an element `id` with integer value `val`.
3389
+ * @param id Element name
3390
+ * @param val Element value
3391
+ */
3392
+ simple_int_element(id: string | null, val: number): void
3393
+ /**
3394
+ * Output a start element `id,` if necessary preceeded by an XML declaration.
3395
+ * @param id Element name
3396
+ */
3397
+ start_element(id: string | null): void
3398
+
3399
+ // Class property signals of Gsf-1.Gsf.XMLOut
3400
+
3401
+ connect(sigName: "notify::pretty-print", callback: (($obj: XMLOut, pspec: GObject.ParamSpec) => void)): number
3402
+ connect_after(sigName: "notify::pretty-print", callback: (($obj: XMLOut, pspec: GObject.ParamSpec) => void)): number
3403
+ emit(sigName: "notify::pretty-print", ...args: any[]): void
3404
+ connect(sigName: "notify::sink", callback: (($obj: XMLOut, pspec: GObject.ParamSpec) => void)): number
3405
+ connect_after(sigName: "notify::sink", callback: (($obj: XMLOut, pspec: GObject.ParamSpec) => void)): number
3406
+ emit(sigName: "notify::sink", ...args: any[]): void
3407
+ connect(sigName: string, callback: (...args: any[]) => void): number
3408
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
3409
+ emit(sigName: string, ...args: any[]): void
3410
+ disconnect(id: number): void
3411
+ }
3412
+
3413
+ export class XMLOut extends GObject.Object {
3414
+
3415
+ // Own properties of Gsf-1.Gsf.XMLOut
3416
+
3417
+ static name: string
3418
+ static $gtype: GObject.GType<XMLOut>
3419
+
3420
+ // Constructors of Gsf-1.Gsf.XMLOut
3421
+
3422
+ constructor(config?: XMLOut.ConstructorProperties)
3423
+ /**
3424
+ * Create an XML output stream.
3425
+ * @constructor
3426
+ * @param output #GsfOutput
3427
+ * @returns #GsfXMLOut
3428
+ */
3429
+ constructor(output: Output)
3430
+ /**
3431
+ * Create an XML output stream.
3432
+ * @constructor
3433
+ * @param output #GsfOutput
3434
+ * @returns #GsfXMLOut
3435
+ */
3436
+ static new(output: Output): XMLOut
3437
+ _init(config?: XMLOut.ConstructorProperties): void
3438
+ }
3439
+
3440
+ export interface BlobClass {
3441
+ }
3442
+
3443
+ export abstract class BlobClass {
3444
+
3445
+ // Own properties of Gsf-1.Gsf.BlobClass
3446
+
3447
+ static name: string
3448
+ }
3449
+
3450
+ export interface BlobPrivate {
3451
+ }
3452
+
3453
+ export class BlobPrivate {
3454
+
3455
+ // Own properties of Gsf-1.Gsf.BlobPrivate
3456
+
3457
+ static name: string
3458
+ }
3459
+
3460
+ export interface ClipDataClass {
3461
+ }
3462
+
3463
+ export abstract class ClipDataClass {
3464
+
3465
+ // Own properties of Gsf-1.Gsf.ClipDataClass
3466
+
3467
+ static name: string
3468
+ }
3469
+
3470
+ export interface ClipDataPrivate {
3471
+ }
3472
+
3473
+ export class ClipDataPrivate {
3474
+
3475
+ // Own properties of Gsf-1.Gsf.ClipDataPrivate
3476
+
3477
+ static name: string
3478
+ }
3479
+
3480
+ export interface DocProp {
3481
+
3482
+ // Owm methods of Gsf-1.Gsf.DocProp
3483
+
3484
+ /**
3485
+ * A debugging utility to dump `prop` as text via g_print
3486
+ * New in 1.14.2
3487
+ */
3488
+ dump(): void
3489
+ /**
3490
+ * Release the given property.
3491
+ */
3492
+ free(): void
3493
+ get_link(): string | null
3494
+ get_name(): string | null
3495
+ get_val(): any
3496
+ /**
3497
+ * Sets `prop'`s link to `link`
3498
+ * @param link a link.
3499
+ */
3500
+ set_link(link: string | null): void
3501
+ /**
3502
+ * Assigns `val` to `prop,` and unsets and frees the current value.
3503
+ * @param val #GValue
3504
+ */
3505
+ set_val(val: any): void
3506
+ swap_val(val: any): any
3507
+ }
3508
+
3509
+ /**
3510
+ * Class representing a properties of a document.
3511
+ * @record
3512
+ */
3513
+ export class DocProp {
3514
+
3515
+ // Own properties of Gsf-1.Gsf.DocProp
3516
+
3517
+ static name: string
3518
+
3519
+ // Constructors of Gsf-1.Gsf.DocProp
3520
+
3521
+ constructor(name: string | null)
3522
+ static new(name: string | null): DocProp
3523
+ }
3524
+
3525
+ export interface InfileClass {
3526
+
3527
+ // Own fields of Gsf-1.Gsf.InfileClass
3528
+
3529
+ input_class: InputClass
3530
+ num_children: (infile: Infile) => number
3531
+ name_by_index: (infile: Infile, i: number) => string | null
3532
+ }
3533
+
3534
+ export abstract class InfileClass {
3535
+
3536
+ // Own properties of Gsf-1.Gsf.InfileClass
3537
+
3538
+ static name: string
3539
+ }
3540
+
3541
+ export interface InputClass {
3542
+
3543
+ // Own fields of Gsf-1.Gsf.InputClass
3544
+
3545
+ g_object_class: GObject.ObjectClass
3546
+ Dup: (input: Input) => Input | null
3547
+ Read: (input: Input, num_bytes: number, optional_buffer: Uint8Array | null) => Uint8Array | null
3548
+ Seek: (input: Input, offset: gsf_off_t, whence: GLib.SeekType) => boolean
3549
+ OpenSibling: (input: Input, name: string | null) => Input
3550
+ }
3551
+
3552
+ export abstract class InputClass {
3553
+
3554
+ // Own properties of Gsf-1.Gsf.InputClass
3555
+
3556
+ static name: string
3557
+ }
3558
+
3559
+ export interface MSOleSortingKey {
3560
+
3561
+ // Owm methods of Gsf-1.Gsf.MSOleSortingKey
3562
+
3563
+ cmp(b: MSOleSortingKey): number
3564
+ free(): void
3565
+ }
3566
+
3567
+ export class MSOleSortingKey {
3568
+
3569
+ // Own properties of Gsf-1.Gsf.MSOleSortingKey
3570
+
3571
+ static name: string
3572
+
3573
+ // Constructors of Gsf-1.Gsf.MSOleSortingKey
3574
+
3575
+ constructor(name: string | null)
3576
+ static new(name: string | null): MSOleSortingKey
3577
+ }
3578
+
3579
+ export interface ODFOutClass {
3580
+
3581
+ // Own fields of Gsf-1.Gsf.ODFOutClass
3582
+
3583
+ base: XMLOutClass
3584
+ }
3585
+
3586
+ export abstract class ODFOutClass {
3587
+
3588
+ // Own properties of Gsf-1.Gsf.ODFOutClass
3589
+
3590
+ static name: string
3591
+ }
3592
+
3593
+ export interface OpenPkgRel {
3594
+
3595
+ // Owm methods of Gsf-1.Gsf.OpenPkgRel
3596
+
3597
+ get_target(): string | null
3598
+ get_type(): string | null
3599
+ is_extern(): boolean
3600
+ }
3601
+
3602
+ export class OpenPkgRel {
3603
+
3604
+ // Own properties of Gsf-1.Gsf.OpenPkgRel
3605
+
3606
+ static name: string
3607
+ }
3608
+
3609
+ export interface OpenPkgRels {
3610
+ }
3611
+
3612
+ export class OpenPkgRels {
3613
+
3614
+ // Own properties of Gsf-1.Gsf.OpenPkgRels
3615
+
3616
+ static name: string
3617
+ }
3618
+
3619
+ export interface OutfileClass {
3620
+
3621
+ // Own fields of Gsf-1.Gsf.OutfileClass
3622
+
3623
+ output_class: OutputClass
3624
+ }
3625
+
3626
+ export abstract class OutfileClass {
3627
+
3628
+ // Own properties of Gsf-1.Gsf.OutfileClass
3629
+
3630
+ static name: string
3631
+ }
3632
+
3633
+ export interface OutputClass {
3634
+
3635
+ // Own fields of Gsf-1.Gsf.OutputClass
3636
+
3637
+ g_object_class: GObject.ObjectClass
3638
+ Close: (output: Output) => boolean
3639
+ Seek: (output: Output, offset: gsf_off_t, whence: GLib.SeekType) => boolean
3640
+ Write: (output: Output, data: Uint8Array) => boolean
3641
+ }
3642
+
3643
+ export abstract class OutputClass {
3644
+
3645
+ // Own properties of Gsf-1.Gsf.OutputClass
3646
+
3647
+ static name: string
3648
+ }
3649
+
3650
+ export interface OutputCsvClass {
3651
+
3652
+ // Own fields of Gsf-1.Gsf.OutputCsvClass
3653
+
3654
+ output_class: OutputClass
3655
+ }
3656
+
3657
+ export abstract class OutputCsvClass {
3658
+
3659
+ // Own properties of Gsf-1.Gsf.OutputCsvClass
3660
+
3661
+ static name: string
3662
+ }
3663
+
3664
+ export interface OutputIconvClass {
3665
+
3666
+ // Own fields of Gsf-1.Gsf.OutputIconvClass
3667
+
3668
+ output_class: OutputClass
3669
+ }
3670
+
3671
+ export abstract class OutputIconvClass {
3672
+
3673
+ // Own properties of Gsf-1.Gsf.OutputIconvClass
3674
+
3675
+ static name: string
3676
+ }
3677
+
3678
+ export interface Timestamp {
3679
+
3680
+ // Own fields of Gsf-1.Gsf.Timestamp
3681
+
3682
+ /**
3683
+ * #GDate in local timezone
3684
+ * @field
3685
+ */
3686
+ date: GLib.Date
3687
+ /**
3688
+ * #glong number of seconds since `date`.
3689
+ * @field
3690
+ */
3691
+ seconds: number
3692
+ /**
3693
+ * possibly blank #GString of the timezone
3694
+ * @field
3695
+ */
3696
+ time_zone: GLib.String
3697
+ /**
3698
+ * as from g_date_time_to_unix.
3699
+ * @field
3700
+ */
3701
+ timet: number
3702
+
3703
+ // Owm methods of Gsf-1.Gsf.Timestamp
3704
+
3705
+ /**
3706
+ * Produce a string representation (ISO 8601 format) of `stamp`.
3707
+ * @returns a string representation of @stamp. When @stamp is invalid, the representation is "&lt;invalid&gt;".
3708
+ */
3709
+ as_string(): string | null
3710
+ /**
3711
+ * Copies a timestamp.
3712
+ * @returns a separate copy of @stamp.
3713
+ */
3714
+ copy(): Timestamp
3715
+ /**
3716
+ * Compare timestamps `a` and `b`.
3717
+ * @param b another timestamp
3718
+ * @returns true if @a and @b represent the same point in time; false otherwise.
3719
+ */
3720
+ equal(b: Timestamp): boolean
3721
+ /**
3722
+ * Releases the memory in use for `stamp` (if any).
3723
+ */
3724
+ free(): void
3725
+ hash(): number
3726
+ /**
3727
+ * Parser for time stamps. Requires a ISO 8601 formatted string.
3728
+ * @param spec The string to parse
3729
+ * @returns %TRUE on success
3730
+ */
3731
+ load_from_string(spec: string | null): number
3732
+ set_time(t: number): void
3733
+ /**
3734
+ * Calls g_value_set_box (value, stamp);
3735
+ * @param value #GValue
3736
+ */
3737
+ to_value(value: any): void
3738
+ }
3739
+
3740
+ /**
3741
+ * A point in time.
3742
+ * @record
3743
+ */
3744
+ export class Timestamp {
3745
+
3746
+ // Own properties of Gsf-1.Gsf.Timestamp
3747
+
3748
+ static name: string
3749
+
3750
+ // Constructors of Gsf-1.Gsf.Timestamp
3751
+
3752
+ constructor()
3753
+ static new(): Timestamp
3754
+ }
3755
+
3756
+ export interface XMLBlob {
3757
+ }
3758
+
3759
+ export class XMLBlob {
3760
+
3761
+ // Own properties of Gsf-1.Gsf.XMLBlob
3762
+
3763
+ static name: string
3764
+ }
3765
+
3766
+ export interface XMLIn {
3767
+
3768
+ // Own fields of Gsf-1.Gsf.XMLIn
3769
+
3770
+ /**
3771
+ * user data
3772
+ * @field
3773
+ */
3774
+ user_state: any
3775
+ /**
3776
+ * the current node content
3777
+ * @field
3778
+ */
3779
+ content: GLib.String
3780
+ /**
3781
+ * Current document being parsed #GsfXMLInDoc
3782
+ * @field
3783
+ */
3784
+ doc: XMLInDoc
3785
+ /**
3786
+ * current node (not on the stack)
3787
+ * @field
3788
+ */
3789
+ node: XMLInNode
3790
+
3791
+ // Owm methods of Gsf-1.Gsf.XMLIn
3792
+
3793
+ /**
3794
+ * According to `state` is `str` in the namespace `ns_id` ?
3795
+ * @param str string to check
3796
+ * @param ns_id the namespace id
3797
+ * @returns a pointer to @str after the namespace if successful, otherwise %NULL.
3798
+ */
3799
+ check_ns(str: string | null, ns_id: number): string | null
3800
+ /**
3801
+ * (New in 1.14.2)
3802
+ * @returns (but does not reference) the stream being parsed.
3803
+ */
3804
+ get_input(): Input
3805
+ /**
3806
+ * Checks to see if `str` is the same as `ns_id:`:`name` with either an explicit
3807
+ * namespace or the current default namespace.
3808
+ * @param str The potentially namespace qualified node name.
3809
+ * @param ns_id The name space id to check
3810
+ * @param name The target node name
3811
+ * @returns %TRUE if @str == @ns_id:@name according to @state.
3812
+ */
3813
+ namecmp(str: string | null, ns_id: number, name: string | null): boolean
3814
+ /**
3815
+ * Take the first node from `doc` as the current node and call its start handler.
3816
+ * @param doc #GsfXMLInDoc
3817
+ * @param new_state arbitrary content for the parser
3818
+ * @param dtor #GsfXMLInExtDtor
3819
+ * @param attrs array of xmlChar const *
3820
+ */
3821
+ push_state(doc: XMLInDoc, new_state: any | null, dtor: XMLInExtDtor, attrs: string[]): void
3822
+ /**
3823
+ * (New in 1.14.33)
3824
+ *
3825
+ * This provides a means to silently ignore unknown tags in contexts where
3826
+ * they are expected.
3827
+ * @param silent whether to be silent about unknown tags
3828
+ */
3829
+ set_silent_unknowns(silent: boolean): void
3830
+ }
3831
+
3832
+ export class XMLIn {
3833
+
3834
+ // Own properties of Gsf-1.Gsf.XMLIn
3835
+
3836
+ static name: string
3837
+ }
3838
+
3839
+ export interface XMLInDoc {
3840
+
3841
+ // Owm methods of Gsf-1.Gsf.XMLInDoc
3842
+
3843
+ /**
3844
+ * Adds additional nodes to the structure of `doc`
3845
+ * @param nodes %NULL terminated array of #GsfXMLInNode
3846
+ */
3847
+ add_nodes(nodes: XMLInNode[]): void
3848
+ /**
3849
+ * Free up resources
3850
+ */
3851
+ free(): void
3852
+ /**
3853
+ * Read an xml document from `input` and parse based on the the descriptor in
3854
+ * `doc`
3855
+ * @param input #GsfInput
3856
+ * @param user_state arbitrary content stored in the parser
3857
+ * @returns %FALSE on error
3858
+ */
3859
+ parse(input: Input, user_state: any | null): boolean
3860
+ /**
3861
+ * Call the function `handler` when an unexpected child node is found
3862
+ * @param handler The function to call
3863
+ */
3864
+ set_unknown_handler(handler: XMLInUnknownFunc): void
3865
+ }
3866
+
3867
+ export class XMLInDoc {
3868
+
3869
+ // Own properties of Gsf-1.Gsf.XMLInDoc
3870
+
3871
+ static name: string
3872
+
3873
+ // Constructors of Gsf-1.Gsf.XMLInDoc
3874
+
3875
+ /**
3876
+ * Combine the nodes in the %NULL terminated array starting at `nodes` with the
3877
+ * name spaces in the %NULL terminated array starting at `ns`. Prepare the
3878
+ * data structures necessary to validate a doument based on that description.
3879
+ * @constructor
3880
+ * @param nodes an array of node descriptors
3881
+ * @param ns an array of namespace identifiers
3882
+ * @returns a #GsfXMLInDoc
3883
+ */
3884
+ constructor(nodes: XMLInNode[], ns: XMLInNS[])
3885
+ /**
3886
+ * Combine the nodes in the %NULL terminated array starting at `nodes` with the
3887
+ * name spaces in the %NULL terminated array starting at `ns`. Prepare the
3888
+ * data structures necessary to validate a doument based on that description.
3889
+ * @constructor
3890
+ * @param nodes an array of node descriptors
3891
+ * @param ns an array of namespace identifiers
3892
+ * @returns a #GsfXMLInDoc
3893
+ */
3894
+ static new(nodes: XMLInNode[], ns: XMLInNS[]): XMLInDoc
3895
+ }
3896
+
3897
+ export interface XMLInNS {
3898
+
3899
+ // Own fields of Gsf-1.Gsf.XMLInNS
3900
+
3901
+ /**
3902
+ * URI
3903
+ * @field
3904
+ */
3905
+ uri: string | null
3906
+ ns_id: number
3907
+ }
3908
+
3909
+ export class XMLInNS {
3910
+
3911
+ // Own properties of Gsf-1.Gsf.XMLInNS
3912
+
3913
+ static name: string
3914
+ }
3915
+
3916
+ export interface XMLInNode {
3917
+
3918
+ // Own fields of Gsf-1.Gsf.XMLInNode
3919
+
3920
+ /**
3921
+ * identifier unique in the entire tree
3922
+ * @field
3923
+ */
3924
+ id: string | null
3925
+ /**
3926
+ * namespace identifier
3927
+ * @field
3928
+ */
3929
+ ns_id: number
3930
+ /**
3931
+ * node name
3932
+ * @field
3933
+ */
3934
+ name: string | null
3935
+ /**
3936
+ * parent node identifier
3937
+ * @field
3938
+ */
3939
+ parent_id: string | null
3940
+ start: (xin: XMLIn, attrs: libxml2.Char) => void
3941
+ end: (xin: XMLIn, unknown: XMLBlob) => void
3942
+ /**
3943
+ * whether the node has content
3944
+ * @field
3945
+ */
3946
+ has_content: XMLContent
3947
+ /**
3948
+ * whether to check namespace for children
3949
+ * @field
3950
+ */
3951
+ check_children_for_ns: number
3952
+ /**
3953
+ * whether to share children with parent.
3954
+ * @field
3955
+ */
3956
+ share_children_with_parent: number
3957
+ }
3958
+
3959
+ export class XMLInNode {
3960
+
3961
+ // Own properties of Gsf-1.Gsf.XMLInNode
3962
+
3963
+ static name: string
3964
+ }
3965
+
3966
+ export interface XMLOutClass {
3967
+
3968
+ // Own fields of Gsf-1.Gsf.XMLOutClass
3969
+
3970
+ base: GObject.ObjectClass
3971
+ }
3972
+
3973
+ export abstract class XMLOutClass {
3974
+
3975
+ // Own properties of Gsf-1.Gsf.XMLOutClass
3976
+
3977
+ static name: string
3978
+ }
3979
+
3980
+ export type gsf_off_t = number
3981
+ /**
3982
+ * Name of the imported GIR library
3983
+ * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
3984
+ */
3985
+ export const __name__: string
3986
+ /**
3987
+ * Version of the imported GIR library
3988
+ * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
3989
+ */
3990
+ export const __version__: string
3991
+ // END