@girs/gupnpdlna-2.0 2.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/README.md +33 -0
- package/gupnpdlna-2.0.cjs +9 -0
- package/gupnpdlna-2.0.d.cts +1123 -0
- package/gupnpdlna-2.0.d.ts +1128 -0
- package/gupnpdlna-2.0.js +8 -0
- package/package.json +53 -0
- package/tsconfig.doc.json +19 -0
|
@@ -0,0 +1,1123 @@
|
|
|
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
|
+
* GUPnPDLNA-2.0
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
import type GObject from '@girs/gobject-2.0';
|
|
13
|
+
import type GLib from '@girs/glib-2.0';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Flags describing a state of GUPnP DLNA Value.
|
|
17
|
+
*/
|
|
18
|
+
export enum ValueState {
|
|
19
|
+
/**
|
|
20
|
+
* Value is set.
|
|
21
|
+
*/
|
|
22
|
+
SET,
|
|
23
|
+
/**
|
|
24
|
+
* Value is unset.
|
|
25
|
+
*/
|
|
26
|
+
UNSET,
|
|
27
|
+
/**
|
|
28
|
+
* Value is unsupported.
|
|
29
|
+
*/
|
|
30
|
+
UNSUPPORTED,
|
|
31
|
+
}
|
|
32
|
+
export module AudioInformation {
|
|
33
|
+
|
|
34
|
+
// Constructor properties interface
|
|
35
|
+
|
|
36
|
+
export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface AudioInformation {
|
|
42
|
+
|
|
43
|
+
// Own fields of GUPnPDLNA-2.0.GUPnPDLNA.AudioInformation
|
|
44
|
+
|
|
45
|
+
parent_instance: GObject.Object
|
|
46
|
+
|
|
47
|
+
// Class property signals of GUPnPDLNA-2.0.GUPnPDLNA.AudioInformation
|
|
48
|
+
|
|
49
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
50
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
51
|
+
emit(sigName: string, ...args: any[]): void
|
|
52
|
+
disconnect(id: number): void
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export class AudioInformation extends GObject.Object {
|
|
56
|
+
|
|
57
|
+
// Own properties of GUPnPDLNA-2.0.GUPnPDLNA.AudioInformation
|
|
58
|
+
|
|
59
|
+
static name: string
|
|
60
|
+
static $gtype: GObject.GType<AudioInformation>
|
|
61
|
+
|
|
62
|
+
// Constructors of GUPnPDLNA-2.0.GUPnPDLNA.AudioInformation
|
|
63
|
+
|
|
64
|
+
constructor(config?: AudioInformation.ConstructorProperties)
|
|
65
|
+
_init(config?: AudioInformation.ConstructorProperties): void
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export module ContainerInformation {
|
|
69
|
+
|
|
70
|
+
// Constructor properties interface
|
|
71
|
+
|
|
72
|
+
export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export interface ContainerInformation {
|
|
78
|
+
|
|
79
|
+
// Own fields of GUPnPDLNA-2.0.GUPnPDLNA.ContainerInformation
|
|
80
|
+
|
|
81
|
+
parent_instance: GObject.Object
|
|
82
|
+
|
|
83
|
+
// Class property signals of GUPnPDLNA-2.0.GUPnPDLNA.ContainerInformation
|
|
84
|
+
|
|
85
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
86
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
87
|
+
emit(sigName: string, ...args: any[]): void
|
|
88
|
+
disconnect(id: number): void
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export class ContainerInformation extends GObject.Object {
|
|
92
|
+
|
|
93
|
+
// Own properties of GUPnPDLNA-2.0.GUPnPDLNA.ContainerInformation
|
|
94
|
+
|
|
95
|
+
static name: string
|
|
96
|
+
static $gtype: GObject.GType<ContainerInformation>
|
|
97
|
+
|
|
98
|
+
// Constructors of GUPnPDLNA-2.0.GUPnPDLNA.ContainerInformation
|
|
99
|
+
|
|
100
|
+
constructor(config?: ContainerInformation.ConstructorProperties)
|
|
101
|
+
_init(config?: ContainerInformation.ConstructorProperties): void
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export module ImageInformation {
|
|
105
|
+
|
|
106
|
+
// Constructor properties interface
|
|
107
|
+
|
|
108
|
+
export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export interface ImageInformation {
|
|
114
|
+
|
|
115
|
+
// Own fields of GUPnPDLNA-2.0.GUPnPDLNA.ImageInformation
|
|
116
|
+
|
|
117
|
+
parent_instance: GObject.Object
|
|
118
|
+
|
|
119
|
+
// Class property signals of GUPnPDLNA-2.0.GUPnPDLNA.ImageInformation
|
|
120
|
+
|
|
121
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
122
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
123
|
+
emit(sigName: string, ...args: any[]): void
|
|
124
|
+
disconnect(id: number): void
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export class ImageInformation extends GObject.Object {
|
|
128
|
+
|
|
129
|
+
// Own properties of GUPnPDLNA-2.0.GUPnPDLNA.ImageInformation
|
|
130
|
+
|
|
131
|
+
static name: string
|
|
132
|
+
static $gtype: GObject.GType<ImageInformation>
|
|
133
|
+
|
|
134
|
+
// Constructors of GUPnPDLNA-2.0.GUPnPDLNA.ImageInformation
|
|
135
|
+
|
|
136
|
+
constructor(config?: ImageInformation.ConstructorProperties)
|
|
137
|
+
_init(config?: ImageInformation.ConstructorProperties): void
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export module Information {
|
|
141
|
+
|
|
142
|
+
// Constructor properties interface
|
|
143
|
+
|
|
144
|
+
export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
145
|
+
|
|
146
|
+
// Own constructor properties of GUPnPDLNA-2.0.GUPnPDLNA.Information
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* URI of file which metadata this object stores.
|
|
150
|
+
*/
|
|
151
|
+
uri?: string | null
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export interface Information {
|
|
157
|
+
|
|
158
|
+
// Own properties of GUPnPDLNA-2.0.GUPnPDLNA.Information
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Audio information of a file.
|
|
162
|
+
*/
|
|
163
|
+
readonly audio_information: AudioInformation
|
|
164
|
+
/**
|
|
165
|
+
* Container information of a file.
|
|
166
|
+
*/
|
|
167
|
+
readonly container_information: ContainerInformation
|
|
168
|
+
/**
|
|
169
|
+
* Image information of a file.
|
|
170
|
+
*/
|
|
171
|
+
readonly image_information: ImageInformation
|
|
172
|
+
/**
|
|
173
|
+
* URI of file which metadata this object stores.
|
|
174
|
+
*/
|
|
175
|
+
readonly uri: string | null
|
|
176
|
+
/**
|
|
177
|
+
* Video information of a file.
|
|
178
|
+
*/
|
|
179
|
+
readonly video_information: VideoInformation
|
|
180
|
+
|
|
181
|
+
// Own fields of GUPnPDLNA-2.0.GUPnPDLNA.Information
|
|
182
|
+
|
|
183
|
+
parent_instance: GObject.Object
|
|
184
|
+
|
|
185
|
+
// Owm methods of GUPnPDLNA-2.0.GUPnPDLNA.Information
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* Get an audio information of media file if applicable (e.g. for
|
|
189
|
+
* video and audio files).
|
|
190
|
+
* @returns A #GUPnPDLNAAudioInformation object or %NULL.
|
|
191
|
+
*/
|
|
192
|
+
get_audio_information(): AudioInformation
|
|
193
|
+
/**
|
|
194
|
+
* Get an container information of media file if applicable (e.g. for
|
|
195
|
+
* video and audio files).
|
|
196
|
+
* @returns A #GUPnPDLNAContainerInformation object or %NULL.
|
|
197
|
+
*/
|
|
198
|
+
get_container_information(): ContainerInformation
|
|
199
|
+
/**
|
|
200
|
+
* Get an container information of media file if applicable (e.g. for
|
|
201
|
+
* image files).
|
|
202
|
+
* @returns A #GUPnPDLNAImageInformation object or %NULL.
|
|
203
|
+
*/
|
|
204
|
+
get_image_information(): ImageInformation
|
|
205
|
+
get_profile_name(): string | null
|
|
206
|
+
get_uri(): string | null
|
|
207
|
+
/**
|
|
208
|
+
* Get an container information of media file if applicable (e.g. for
|
|
209
|
+
* video files).
|
|
210
|
+
* @returns A #GUPnPDLNAVideoInformation object or %NULL.
|
|
211
|
+
*/
|
|
212
|
+
get_video_information(): VideoInformation
|
|
213
|
+
|
|
214
|
+
// Own virtual methods of GUPnPDLNA-2.0.GUPnPDLNA.Information
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* Get an audio information of media file if applicable (e.g. for
|
|
218
|
+
* video and audio files).
|
|
219
|
+
* @virtual
|
|
220
|
+
* @returns A #GUPnPDLNAAudioInformation object or %NULL.
|
|
221
|
+
*/
|
|
222
|
+
vfunc_get_audio_information(): AudioInformation
|
|
223
|
+
/**
|
|
224
|
+
* Get an container information of media file if applicable (e.g. for
|
|
225
|
+
* video and audio files).
|
|
226
|
+
* @virtual
|
|
227
|
+
* @returns A #GUPnPDLNAContainerInformation object or %NULL.
|
|
228
|
+
*/
|
|
229
|
+
vfunc_get_container_information(): ContainerInformation
|
|
230
|
+
/**
|
|
231
|
+
* Get an container information of media file if applicable (e.g. for
|
|
232
|
+
* image files).
|
|
233
|
+
* @virtual
|
|
234
|
+
* @returns A #GUPnPDLNAImageInformation object or %NULL.
|
|
235
|
+
*/
|
|
236
|
+
vfunc_get_image_information(): ImageInformation
|
|
237
|
+
vfunc_get_profile_name(): string | null
|
|
238
|
+
/**
|
|
239
|
+
* Get an container information of media file if applicable (e.g. for
|
|
240
|
+
* video files).
|
|
241
|
+
* @virtual
|
|
242
|
+
* @returns A #GUPnPDLNAVideoInformation object or %NULL.
|
|
243
|
+
*/
|
|
244
|
+
vfunc_get_video_information(): VideoInformation
|
|
245
|
+
|
|
246
|
+
// Class property signals of GUPnPDLNA-2.0.GUPnPDLNA.Information
|
|
247
|
+
|
|
248
|
+
connect(sigName: "notify::audio-information", callback: (($obj: Information, pspec: GObject.ParamSpec) => void)): number
|
|
249
|
+
connect_after(sigName: "notify::audio-information", callback: (($obj: Information, pspec: GObject.ParamSpec) => void)): number
|
|
250
|
+
emit(sigName: "notify::audio-information", ...args: any[]): void
|
|
251
|
+
connect(sigName: "notify::container-information", callback: (($obj: Information, pspec: GObject.ParamSpec) => void)): number
|
|
252
|
+
connect_after(sigName: "notify::container-information", callback: (($obj: Information, pspec: GObject.ParamSpec) => void)): number
|
|
253
|
+
emit(sigName: "notify::container-information", ...args: any[]): void
|
|
254
|
+
connect(sigName: "notify::image-information", callback: (($obj: Information, pspec: GObject.ParamSpec) => void)): number
|
|
255
|
+
connect_after(sigName: "notify::image-information", callback: (($obj: Information, pspec: GObject.ParamSpec) => void)): number
|
|
256
|
+
emit(sigName: "notify::image-information", ...args: any[]): void
|
|
257
|
+
connect(sigName: "notify::uri", callback: (($obj: Information, pspec: GObject.ParamSpec) => void)): number
|
|
258
|
+
connect_after(sigName: "notify::uri", callback: (($obj: Information, pspec: GObject.ParamSpec) => void)): number
|
|
259
|
+
emit(sigName: "notify::uri", ...args: any[]): void
|
|
260
|
+
connect(sigName: "notify::video-information", callback: (($obj: Information, pspec: GObject.ParamSpec) => void)): number
|
|
261
|
+
connect_after(sigName: "notify::video-information", callback: (($obj: Information, pspec: GObject.ParamSpec) => void)): number
|
|
262
|
+
emit(sigName: "notify::video-information", ...args: any[]): void
|
|
263
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
264
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
265
|
+
emit(sigName: string, ...args: any[]): void
|
|
266
|
+
disconnect(id: number): void
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
export class Information extends GObject.Object {
|
|
270
|
+
|
|
271
|
+
// Own properties of GUPnPDLNA-2.0.GUPnPDLNA.Information
|
|
272
|
+
|
|
273
|
+
static name: string
|
|
274
|
+
static $gtype: GObject.GType<Information>
|
|
275
|
+
|
|
276
|
+
// Constructors of GUPnPDLNA-2.0.GUPnPDLNA.Information
|
|
277
|
+
|
|
278
|
+
constructor(config?: Information.ConstructorProperties)
|
|
279
|
+
_init(config?: Information.ConstructorProperties): void
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
export module MetadataExtractor {
|
|
283
|
+
|
|
284
|
+
// Signal callback interfaces
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* Signal callback interface for `done`
|
|
288
|
+
*/
|
|
289
|
+
export interface DoneSignalCallback {
|
|
290
|
+
($obj: MetadataExtractor, info: Information, error: GLib.Error | null): void
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
// Constructor properties interface
|
|
295
|
+
|
|
296
|
+
export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
export interface MetadataExtractor {
|
|
302
|
+
|
|
303
|
+
// Own fields of GUPnPDLNA-2.0.GUPnPDLNA.MetadataExtractor
|
|
304
|
+
|
|
305
|
+
parent_instance: GObject.Object
|
|
306
|
+
|
|
307
|
+
// Owm methods of GUPnPDLNA-2.0.GUPnPDLNA.MetadataExtractor
|
|
308
|
+
|
|
309
|
+
/**
|
|
310
|
+
* Emits ::done signal. This function is intended to be used by
|
|
311
|
+
* subclasses of #GUPnPDLNAMetadataExtractor. It is required to always
|
|
312
|
+
* pass a meaningful `info,` even in case of error. That way a receiver
|
|
313
|
+
* of this signal can know which URI discovery failed by using
|
|
314
|
+
* gupnp_dlna_information_get_uri().
|
|
315
|
+
* @param info A #GUPnPDLNAInformation about discovered URI.
|
|
316
|
+
* @param error A #GError.
|
|
317
|
+
*/
|
|
318
|
+
emit_done(info: Information, error: GLib.Error | null): void
|
|
319
|
+
/**
|
|
320
|
+
* Queues `uri` for metadata discovery. When discovery is completed,
|
|
321
|
+
* the ::done signal is emitted on `extractor`.
|
|
322
|
+
* @param uri URI to gather metadata for
|
|
323
|
+
* @param timeout_in_ms Timeout in miliseconds.
|
|
324
|
+
* @returns %TRUE if @uri was successfully queued, %FALSE otherwise.
|
|
325
|
+
*/
|
|
326
|
+
extract_async(uri: string | null, timeout_in_ms: number): boolean
|
|
327
|
+
/**
|
|
328
|
+
* Discovers synchronously metadata of given `uri`.
|
|
329
|
+
* @param uri URI to gather metadata for
|
|
330
|
+
* @param timeout_in_ms Timeout in miliseconds.
|
|
331
|
+
* @returns A #GUPnPDLNAInformation object if discovery succeeded, otherwise %NULL.
|
|
332
|
+
*/
|
|
333
|
+
extract_sync(uri: string | null, timeout_in_ms: number): Information
|
|
334
|
+
|
|
335
|
+
// Own virtual methods of GUPnPDLNA-2.0.GUPnPDLNA.MetadataExtractor
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* Queues `uri` for metadata discovery. When discovery is completed,
|
|
339
|
+
* the ::done signal is emitted on `extractor`.
|
|
340
|
+
* @virtual
|
|
341
|
+
* @param uri URI to gather metadata for
|
|
342
|
+
* @param timeout_in_ms Timeout in miliseconds.
|
|
343
|
+
* @returns %TRUE if @uri was successfully queued, %FALSE otherwise.
|
|
344
|
+
*/
|
|
345
|
+
vfunc_extract_async(uri: string | null, timeout_in_ms: number): boolean
|
|
346
|
+
/**
|
|
347
|
+
* Discovers synchronously metadata of given `uri`.
|
|
348
|
+
* @virtual
|
|
349
|
+
* @param uri URI to gather metadata for
|
|
350
|
+
* @param timeout_in_ms Timeout in miliseconds.
|
|
351
|
+
* @returns A #GUPnPDLNAInformation object if discovery succeeded, otherwise %NULL.
|
|
352
|
+
*/
|
|
353
|
+
vfunc_extract_sync(uri: string | null, timeout_in_ms: number): Information
|
|
354
|
+
|
|
355
|
+
// Own signals of GUPnPDLNA-2.0.GUPnPDLNA.MetadataExtractor
|
|
356
|
+
|
|
357
|
+
connect(sigName: "done", callback: MetadataExtractor.DoneSignalCallback): number
|
|
358
|
+
connect_after(sigName: "done", callback: MetadataExtractor.DoneSignalCallback): number
|
|
359
|
+
emit(sigName: "done", info: Information, error: GLib.Error | null, ...args: any[]): void
|
|
360
|
+
|
|
361
|
+
// Class property signals of GUPnPDLNA-2.0.GUPnPDLNA.MetadataExtractor
|
|
362
|
+
|
|
363
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
364
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
365
|
+
emit(sigName: string, ...args: any[]): void
|
|
366
|
+
disconnect(id: number): void
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
export class MetadataExtractor extends GObject.Object {
|
|
370
|
+
|
|
371
|
+
// Own properties of GUPnPDLNA-2.0.GUPnPDLNA.MetadataExtractor
|
|
372
|
+
|
|
373
|
+
static name: string
|
|
374
|
+
static $gtype: GObject.GType<MetadataExtractor>
|
|
375
|
+
|
|
376
|
+
// Constructors of GUPnPDLNA-2.0.GUPnPDLNA.MetadataExtractor
|
|
377
|
+
|
|
378
|
+
constructor(config?: MetadataExtractor.ConstructorProperties)
|
|
379
|
+
_init(config?: MetadataExtractor.ConstructorProperties): void
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
export module Profile {
|
|
383
|
+
|
|
384
|
+
// Constructor properties interface
|
|
385
|
+
|
|
386
|
+
export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
387
|
+
|
|
388
|
+
// Own constructor properties of GUPnPDLNA-2.0.GUPnPDLNA.Profile
|
|
389
|
+
|
|
390
|
+
audio_restrictions?: any | null
|
|
391
|
+
container_restrictions?: any | null
|
|
392
|
+
/**
|
|
393
|
+
* Whether the DLNA profile is not a part of DLNA specification.
|
|
394
|
+
*/
|
|
395
|
+
extended?: boolean | null
|
|
396
|
+
image_restrictions?: any | null
|
|
397
|
+
/**
|
|
398
|
+
* MIME type of the DLNA profile.
|
|
399
|
+
*/
|
|
400
|
+
mime?: string | null
|
|
401
|
+
/**
|
|
402
|
+
* Name of the DLNA profile.
|
|
403
|
+
*/
|
|
404
|
+
name?: string | null
|
|
405
|
+
video_restrictions?: any | null
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
export interface Profile {
|
|
411
|
+
|
|
412
|
+
// Own properties of GUPnPDLNA-2.0.GUPnPDLNA.Profile
|
|
413
|
+
|
|
414
|
+
readonly audio_restrictions: any
|
|
415
|
+
readonly container_restrictions: any
|
|
416
|
+
/**
|
|
417
|
+
* Whether the DLNA profile is not a part of DLNA specification.
|
|
418
|
+
*/
|
|
419
|
+
readonly extended: boolean
|
|
420
|
+
readonly image_restrictions: any
|
|
421
|
+
/**
|
|
422
|
+
* MIME type of the DLNA profile.
|
|
423
|
+
*/
|
|
424
|
+
readonly mime: string | null
|
|
425
|
+
/**
|
|
426
|
+
* Name of the DLNA profile.
|
|
427
|
+
*/
|
|
428
|
+
readonly name: string | null
|
|
429
|
+
readonly video_restrictions: any
|
|
430
|
+
|
|
431
|
+
// Own fields of GUPnPDLNA-2.0.GUPnPDLNA.Profile
|
|
432
|
+
|
|
433
|
+
parent_instance: GObject.Object
|
|
434
|
+
|
|
435
|
+
// Owm methods of GUPnPDLNA-2.0.GUPnPDLNA.Profile
|
|
436
|
+
|
|
437
|
+
/**
|
|
438
|
+
* Gets a list of audio restrictions.
|
|
439
|
+
* @returns Audio restrictions. Do not modify.
|
|
440
|
+
*/
|
|
441
|
+
get_audio_restrictions(): Restriction[]
|
|
442
|
+
/**
|
|
443
|
+
* Gets a list of container restrictions.
|
|
444
|
+
* @returns Container restrictions. Do not modify.
|
|
445
|
+
*/
|
|
446
|
+
get_container_restrictions(): Restriction[]
|
|
447
|
+
get_extended(): boolean
|
|
448
|
+
/**
|
|
449
|
+
* Gets a list of image restrictions.
|
|
450
|
+
* @returns Image restrictions. Do not modify.
|
|
451
|
+
*/
|
|
452
|
+
get_image_restrictions(): Restriction[]
|
|
453
|
+
get_mime(): string | null
|
|
454
|
+
get_name(): string | null
|
|
455
|
+
/**
|
|
456
|
+
* Gets a list of video restrictions.
|
|
457
|
+
* @returns Video restrictions. Do not modify.
|
|
458
|
+
*/
|
|
459
|
+
get_video_restrictions(): Restriction[]
|
|
460
|
+
|
|
461
|
+
// Class property signals of GUPnPDLNA-2.0.GUPnPDLNA.Profile
|
|
462
|
+
|
|
463
|
+
connect(sigName: "notify::audio-restrictions", callback: (($obj: Profile, pspec: GObject.ParamSpec) => void)): number
|
|
464
|
+
connect_after(sigName: "notify::audio-restrictions", callback: (($obj: Profile, pspec: GObject.ParamSpec) => void)): number
|
|
465
|
+
emit(sigName: "notify::audio-restrictions", ...args: any[]): void
|
|
466
|
+
connect(sigName: "notify::container-restrictions", callback: (($obj: Profile, pspec: GObject.ParamSpec) => void)): number
|
|
467
|
+
connect_after(sigName: "notify::container-restrictions", callback: (($obj: Profile, pspec: GObject.ParamSpec) => void)): number
|
|
468
|
+
emit(sigName: "notify::container-restrictions", ...args: any[]): void
|
|
469
|
+
connect(sigName: "notify::extended", callback: (($obj: Profile, pspec: GObject.ParamSpec) => void)): number
|
|
470
|
+
connect_after(sigName: "notify::extended", callback: (($obj: Profile, pspec: GObject.ParamSpec) => void)): number
|
|
471
|
+
emit(sigName: "notify::extended", ...args: any[]): void
|
|
472
|
+
connect(sigName: "notify::image-restrictions", callback: (($obj: Profile, pspec: GObject.ParamSpec) => void)): number
|
|
473
|
+
connect_after(sigName: "notify::image-restrictions", callback: (($obj: Profile, pspec: GObject.ParamSpec) => void)): number
|
|
474
|
+
emit(sigName: "notify::image-restrictions", ...args: any[]): void
|
|
475
|
+
connect(sigName: "notify::mime", callback: (($obj: Profile, pspec: GObject.ParamSpec) => void)): number
|
|
476
|
+
connect_after(sigName: "notify::mime", callback: (($obj: Profile, pspec: GObject.ParamSpec) => void)): number
|
|
477
|
+
emit(sigName: "notify::mime", ...args: any[]): void
|
|
478
|
+
connect(sigName: "notify::name", callback: (($obj: Profile, pspec: GObject.ParamSpec) => void)): number
|
|
479
|
+
connect_after(sigName: "notify::name", callback: (($obj: Profile, pspec: GObject.ParamSpec) => void)): number
|
|
480
|
+
emit(sigName: "notify::name", ...args: any[]): void
|
|
481
|
+
connect(sigName: "notify::video-restrictions", callback: (($obj: Profile, pspec: GObject.ParamSpec) => void)): number
|
|
482
|
+
connect_after(sigName: "notify::video-restrictions", callback: (($obj: Profile, pspec: GObject.ParamSpec) => void)): number
|
|
483
|
+
emit(sigName: "notify::video-restrictions", ...args: any[]): void
|
|
484
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
485
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
486
|
+
emit(sigName: string, ...args: any[]): void
|
|
487
|
+
disconnect(id: number): void
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
/**
|
|
491
|
+
* The top-level object used for the in-memory representation of the
|
|
492
|
+
* DLNA Profiles.
|
|
493
|
+
* @class
|
|
494
|
+
*/
|
|
495
|
+
export class Profile extends GObject.Object {
|
|
496
|
+
|
|
497
|
+
// Own properties of GUPnPDLNA-2.0.GUPnPDLNA.Profile
|
|
498
|
+
|
|
499
|
+
static name: string
|
|
500
|
+
static $gtype: GObject.GType<Profile>
|
|
501
|
+
|
|
502
|
+
// Constructors of GUPnPDLNA-2.0.GUPnPDLNA.Profile
|
|
503
|
+
|
|
504
|
+
constructor(config?: Profile.ConstructorProperties)
|
|
505
|
+
_init(config?: Profile.ConstructorProperties): void
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
export module ProfileGuesser {
|
|
509
|
+
|
|
510
|
+
// Signal callback interfaces
|
|
511
|
+
|
|
512
|
+
/**
|
|
513
|
+
* Signal callback interface for `done`
|
|
514
|
+
*/
|
|
515
|
+
export interface DoneSignalCallback {
|
|
516
|
+
($obj: ProfileGuesser, info: Information, dlna: Profile | null, error: GLib.Error | null): void
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
|
|
520
|
+
// Constructor properties interface
|
|
521
|
+
|
|
522
|
+
export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
523
|
+
|
|
524
|
+
// Own constructor properties of GUPnPDLNA-2.0.GUPnPDLNA.ProfileGuesser
|
|
525
|
+
|
|
526
|
+
/**
|
|
527
|
+
* Whether profile matching should be done also against DLNA
|
|
528
|
+
* profiles not being a part of DLNA specification.
|
|
529
|
+
*/
|
|
530
|
+
extended_mode?: boolean | null
|
|
531
|
+
/**
|
|
532
|
+
* Whether profile matching should not be strictly compliant
|
|
533
|
+
* with the DLNA specification.
|
|
534
|
+
*/
|
|
535
|
+
relaxed_mode?: boolean | null
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
export interface ProfileGuesser {
|
|
541
|
+
|
|
542
|
+
// Own properties of GUPnPDLNA-2.0.GUPnPDLNA.ProfileGuesser
|
|
543
|
+
|
|
544
|
+
/**
|
|
545
|
+
* Whether profile matching should be done also against DLNA
|
|
546
|
+
* profiles not being a part of DLNA specification.
|
|
547
|
+
*/
|
|
548
|
+
readonly extended_mode: boolean
|
|
549
|
+
/**
|
|
550
|
+
* Whether profile matching should not be strictly compliant
|
|
551
|
+
* with the DLNA specification.
|
|
552
|
+
*/
|
|
553
|
+
readonly relaxed_mode: boolean
|
|
554
|
+
|
|
555
|
+
// Own fields of GUPnPDLNA-2.0.GUPnPDLNA.ProfileGuesser
|
|
556
|
+
|
|
557
|
+
parent_instance: GObject.Object
|
|
558
|
+
|
|
559
|
+
// Owm methods of GUPnPDLNA-2.0.GUPnPDLNA.ProfileGuesser
|
|
560
|
+
|
|
561
|
+
get_extended_mode(): boolean
|
|
562
|
+
/**
|
|
563
|
+
* Lookups for #GUPnPDLNAProfile with given `name`.
|
|
564
|
+
* @param name The name of the DLNA profile to be retrieved.
|
|
565
|
+
* @returns A #GUPnPDLNAProfile object on success, %NULL otherwise.
|
|
566
|
+
*/
|
|
567
|
+
get_profile(name: string | null): Profile
|
|
568
|
+
get_relaxed_mode(): boolean
|
|
569
|
+
/**
|
|
570
|
+
* Asynchronously guesses DLNA profile for given `uri`. When guessing
|
|
571
|
+
* is done, ::done signal is emitted on `guesser`.
|
|
572
|
+
* @param uri URI of media.
|
|
573
|
+
* @param timeout_in_ms Timeout of guessing in miliseconds.
|
|
574
|
+
* @returns %TRUE if @uri was successfully queued, %FALSE otherwise.
|
|
575
|
+
*/
|
|
576
|
+
guess_profile_async(uri: string | null, timeout_in_ms: number): boolean
|
|
577
|
+
/**
|
|
578
|
+
* Guesses the profile which fits to passed `info`.
|
|
579
|
+
* @param info The #GUPnPDLNAInformation object.
|
|
580
|
+
* @returns A #GUPnPDLNAProfile object on success, %NULL otherwise.
|
|
581
|
+
*/
|
|
582
|
+
guess_profile_from_info(info: Information): Profile
|
|
583
|
+
/**
|
|
584
|
+
* Synchronously guesses DLNA profile for given `uri`.
|
|
585
|
+
* @param uri URI of media.
|
|
586
|
+
* @param timeout_in_ms Timeout of guessing in miliseconds.
|
|
587
|
+
* @returns DLNA profile if any had matched, %NULL otherwise.
|
|
588
|
+
*/
|
|
589
|
+
guess_profile_sync(uri: string | null, timeout_in_ms: number): [ /* returnType */ Profile, /* dlna_info */ Information ]
|
|
590
|
+
/**
|
|
591
|
+
* Gets a list of the all DLNA profiles supported by `guesser`.
|
|
592
|
+
* @returns A #GList of #GUPnPDLNAProfile on success, %NULL otherwise.
|
|
593
|
+
*/
|
|
594
|
+
list_profiles(): Profile[]
|
|
595
|
+
|
|
596
|
+
// Own signals of GUPnPDLNA-2.0.GUPnPDLNA.ProfileGuesser
|
|
597
|
+
|
|
598
|
+
connect(sigName: "done", callback: ProfileGuesser.DoneSignalCallback): number
|
|
599
|
+
connect_after(sigName: "done", callback: ProfileGuesser.DoneSignalCallback): number
|
|
600
|
+
emit(sigName: "done", info: Information, dlna: Profile | null, error: GLib.Error | null, ...args: any[]): void
|
|
601
|
+
|
|
602
|
+
// Class property signals of GUPnPDLNA-2.0.GUPnPDLNA.ProfileGuesser
|
|
603
|
+
|
|
604
|
+
connect(sigName: "notify::extended-mode", callback: (($obj: ProfileGuesser, pspec: GObject.ParamSpec) => void)): number
|
|
605
|
+
connect_after(sigName: "notify::extended-mode", callback: (($obj: ProfileGuesser, pspec: GObject.ParamSpec) => void)): number
|
|
606
|
+
emit(sigName: "notify::extended-mode", ...args: any[]): void
|
|
607
|
+
connect(sigName: "notify::relaxed-mode", callback: (($obj: ProfileGuesser, pspec: GObject.ParamSpec) => void)): number
|
|
608
|
+
connect_after(sigName: "notify::relaxed-mode", callback: (($obj: ProfileGuesser, pspec: GObject.ParamSpec) => void)): number
|
|
609
|
+
emit(sigName: "notify::relaxed-mode", ...args: any[]): void
|
|
610
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
611
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
612
|
+
emit(sigName: string, ...args: any[]): void
|
|
613
|
+
disconnect(id: number): void
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
export class ProfileGuesser extends GObject.Object {
|
|
617
|
+
|
|
618
|
+
// Own properties of GUPnPDLNA-2.0.GUPnPDLNA.ProfileGuesser
|
|
619
|
+
|
|
620
|
+
static name: string
|
|
621
|
+
static $gtype: GObject.GType<ProfileGuesser>
|
|
622
|
+
|
|
623
|
+
// Constructors of GUPnPDLNA-2.0.GUPnPDLNA.ProfileGuesser
|
|
624
|
+
|
|
625
|
+
constructor(config?: ProfileGuesser.ConstructorProperties)
|
|
626
|
+
/**
|
|
627
|
+
* Creates a new guesser that will use specific DLNA profiles for
|
|
628
|
+
* matching - i.e. which profiles will be used depends on
|
|
629
|
+
* `relaxed_mode` and `extended_mode`.
|
|
630
|
+
* @constructor
|
|
631
|
+
* @param relaxed_mode %TRUE to enable relaxed mode support. %FALSE otherwise.
|
|
632
|
+
* @param extended_mode %TRUE to enable extended mode support. %FALSE otherwise.
|
|
633
|
+
* @returns A new #GUPnPDLNAProfileGuesser object.
|
|
634
|
+
*/
|
|
635
|
+
constructor(relaxed_mode: boolean, extended_mode: boolean)
|
|
636
|
+
/**
|
|
637
|
+
* Creates a new guesser that will use specific DLNA profiles for
|
|
638
|
+
* matching - i.e. which profiles will be used depends on
|
|
639
|
+
* `relaxed_mode` and `extended_mode`.
|
|
640
|
+
* @constructor
|
|
641
|
+
* @param relaxed_mode %TRUE to enable relaxed mode support. %FALSE otherwise.
|
|
642
|
+
* @param extended_mode %TRUE to enable extended mode support. %FALSE otherwise.
|
|
643
|
+
* @returns A new #GUPnPDLNAProfileGuesser object.
|
|
644
|
+
*/
|
|
645
|
+
static new(relaxed_mode: boolean, extended_mode: boolean): ProfileGuesser
|
|
646
|
+
_init(config?: ProfileGuesser.ConstructorProperties): void
|
|
647
|
+
/**
|
|
648
|
+
* Cleans up the DLNA profiles. Provided to remove Valgrind noise. Not
|
|
649
|
+
* thread-safe. Do not call it if there is even a slightest chance
|
|
650
|
+
* that profile guessing will be performed during process
|
|
651
|
+
* lifetime. The profiles are not reloaded after cleanup.
|
|
652
|
+
*/
|
|
653
|
+
static cleanup(): void
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
export module VideoInformation {
|
|
657
|
+
|
|
658
|
+
// Constructor properties interface
|
|
659
|
+
|
|
660
|
+
export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
export interface VideoInformation {
|
|
666
|
+
|
|
667
|
+
// Own fields of GUPnPDLNA-2.0.GUPnPDLNA.VideoInformation
|
|
668
|
+
|
|
669
|
+
parent_instance: GObject.Object
|
|
670
|
+
|
|
671
|
+
// Class property signals of GUPnPDLNA-2.0.GUPnPDLNA.VideoInformation
|
|
672
|
+
|
|
673
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
674
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
675
|
+
emit(sigName: string, ...args: any[]): void
|
|
676
|
+
disconnect(id: number): void
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
export class VideoInformation extends GObject.Object {
|
|
680
|
+
|
|
681
|
+
// Own properties of GUPnPDLNA-2.0.GUPnPDLNA.VideoInformation
|
|
682
|
+
|
|
683
|
+
static name: string
|
|
684
|
+
static $gtype: GObject.GType<VideoInformation>
|
|
685
|
+
|
|
686
|
+
// Constructors of GUPnPDLNA-2.0.GUPnPDLNA.VideoInformation
|
|
687
|
+
|
|
688
|
+
constructor(config?: VideoInformation.ConstructorProperties)
|
|
689
|
+
_init(config?: VideoInformation.ConstructorProperties): void
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
export interface AudioInformationClass {
|
|
693
|
+
|
|
694
|
+
// Own fields of GUPnPDLNA-2.0.GUPnPDLNA.AudioInformationClass
|
|
695
|
+
|
|
696
|
+
/**
|
|
697
|
+
* Parent class.
|
|
698
|
+
* @field
|
|
699
|
+
*/
|
|
700
|
+
parent_class: GObject.ObjectClass
|
|
701
|
+
/**
|
|
702
|
+
* Padding. Ignore it.
|
|
703
|
+
* @field
|
|
704
|
+
*/
|
|
705
|
+
_reserved: any[]
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
export abstract class AudioInformationClass {
|
|
709
|
+
|
|
710
|
+
// Own properties of GUPnPDLNA-2.0.GUPnPDLNA.AudioInformationClass
|
|
711
|
+
|
|
712
|
+
static name: string
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
export interface BoolValue {
|
|
716
|
+
|
|
717
|
+
// Own fields of GUPnPDLNA-2.0.GUPnPDLNA.BoolValue
|
|
718
|
+
|
|
719
|
+
/**
|
|
720
|
+
* The boolean value.
|
|
721
|
+
* @field
|
|
722
|
+
*/
|
|
723
|
+
value: boolean
|
|
724
|
+
/**
|
|
725
|
+
* The state of #GUPnPDLNABoolValue.
|
|
726
|
+
* @field
|
|
727
|
+
*/
|
|
728
|
+
state: ValueState
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
/**
|
|
732
|
+
* GUPnP DLNA Value representing a boolean value of some metadata attribute.
|
|
733
|
+
* @record
|
|
734
|
+
*/
|
|
735
|
+
export class BoolValue {
|
|
736
|
+
|
|
737
|
+
// Own properties of GUPnPDLNA-2.0.GUPnPDLNA.BoolValue
|
|
738
|
+
|
|
739
|
+
static name: string
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
export interface ContainerInformationClass {
|
|
743
|
+
|
|
744
|
+
// Own fields of GUPnPDLNA-2.0.GUPnPDLNA.ContainerInformationClass
|
|
745
|
+
|
|
746
|
+
/**
|
|
747
|
+
* Parent class.
|
|
748
|
+
* @field
|
|
749
|
+
*/
|
|
750
|
+
parent_class: GObject.ObjectClass
|
|
751
|
+
/**
|
|
752
|
+
* Padding. Ignore it.
|
|
753
|
+
* @field
|
|
754
|
+
*/
|
|
755
|
+
_reserved: any[]
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
export abstract class ContainerInformationClass {
|
|
759
|
+
|
|
760
|
+
// Own properties of GUPnPDLNA-2.0.GUPnPDLNA.ContainerInformationClass
|
|
761
|
+
|
|
762
|
+
static name: string
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
export interface Fraction {
|
|
766
|
+
|
|
767
|
+
// Owm methods of GUPnPDLNA-2.0.GUPnPDLNA.Fraction
|
|
768
|
+
|
|
769
|
+
copy(): Fraction
|
|
770
|
+
/**
|
|
771
|
+
* Frees `fraction`.
|
|
772
|
+
*/
|
|
773
|
+
free(): void
|
|
774
|
+
get_denominator(): number
|
|
775
|
+
get_numerator(): number
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
export class Fraction {
|
|
779
|
+
|
|
780
|
+
// Own properties of GUPnPDLNA-2.0.GUPnPDLNA.Fraction
|
|
781
|
+
|
|
782
|
+
static name: string
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
export interface FractionRange {
|
|
786
|
+
|
|
787
|
+
// Owm methods of GUPnPDLNA-2.0.GUPnPDLNA.FractionRange
|
|
788
|
+
|
|
789
|
+
copy(): FractionRange
|
|
790
|
+
/**
|
|
791
|
+
* Frees `range`.
|
|
792
|
+
*/
|
|
793
|
+
free(): void
|
|
794
|
+
get_max(): Fraction
|
|
795
|
+
get_min(): Fraction
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
export class FractionRange {
|
|
799
|
+
|
|
800
|
+
// Own properties of GUPnPDLNA-2.0.GUPnPDLNA.FractionRange
|
|
801
|
+
|
|
802
|
+
static name: string
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
export interface FractionValue {
|
|
806
|
+
|
|
807
|
+
// Own fields of GUPnPDLNA-2.0.GUPnPDLNA.FractionValue
|
|
808
|
+
|
|
809
|
+
/**
|
|
810
|
+
* The numerator of fraction.
|
|
811
|
+
* @field
|
|
812
|
+
*/
|
|
813
|
+
numerator: number
|
|
814
|
+
/**
|
|
815
|
+
* The denominator of fraction.
|
|
816
|
+
* @field
|
|
817
|
+
*/
|
|
818
|
+
denominator: number
|
|
819
|
+
/**
|
|
820
|
+
* The state of #GUPnPDLNAFractionValue.
|
|
821
|
+
* @field
|
|
822
|
+
*/
|
|
823
|
+
state: ValueState
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
/**
|
|
827
|
+
* GUPnP DLNA Value representing a fraction value of some metadata attribute.
|
|
828
|
+
* @record
|
|
829
|
+
*/
|
|
830
|
+
export class FractionValue {
|
|
831
|
+
|
|
832
|
+
// Own properties of GUPnPDLNA-2.0.GUPnPDLNA.FractionValue
|
|
833
|
+
|
|
834
|
+
static name: string
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
export interface ImageInformationClass {
|
|
838
|
+
|
|
839
|
+
// Own fields of GUPnPDLNA-2.0.GUPnPDLNA.ImageInformationClass
|
|
840
|
+
|
|
841
|
+
/**
|
|
842
|
+
* Parent class.
|
|
843
|
+
* @field
|
|
844
|
+
*/
|
|
845
|
+
parent_class: GObject.ObjectClass
|
|
846
|
+
/**
|
|
847
|
+
* Padding. Ignore it.
|
|
848
|
+
* @field
|
|
849
|
+
*/
|
|
850
|
+
_reserved: any[]
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
export abstract class ImageInformationClass {
|
|
854
|
+
|
|
855
|
+
// Own properties of GUPnPDLNA-2.0.GUPnPDLNA.ImageInformationClass
|
|
856
|
+
|
|
857
|
+
static name: string
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
export interface InformationClass {
|
|
861
|
+
|
|
862
|
+
// Own fields of GUPnPDLNA-2.0.GUPnPDLNA.InformationClass
|
|
863
|
+
|
|
864
|
+
/**
|
|
865
|
+
* Parent class.
|
|
866
|
+
* @field
|
|
867
|
+
*/
|
|
868
|
+
parent_class: GObject.ObjectClass
|
|
869
|
+
get_audio_information: (info: Information) => AudioInformation
|
|
870
|
+
get_container_information: (info: Information) => ContainerInformation
|
|
871
|
+
get_image_information: (info: Information) => ImageInformation
|
|
872
|
+
get_video_information: (info: Information) => VideoInformation
|
|
873
|
+
get_profile_name: (info: Information) => string | null
|
|
874
|
+
/**
|
|
875
|
+
* Padding. Ignore it.
|
|
876
|
+
* @field
|
|
877
|
+
*/
|
|
878
|
+
_reserved: any[]
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
export abstract class InformationClass {
|
|
882
|
+
|
|
883
|
+
// Own properties of GUPnPDLNA-2.0.GUPnPDLNA.InformationClass
|
|
884
|
+
|
|
885
|
+
static name: string
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
export interface IntRange {
|
|
889
|
+
|
|
890
|
+
// Owm methods of GUPnPDLNA-2.0.GUPnPDLNA.IntRange
|
|
891
|
+
|
|
892
|
+
copy(): IntRange
|
|
893
|
+
/**
|
|
894
|
+
* Frees `range`.
|
|
895
|
+
*/
|
|
896
|
+
free(): void
|
|
897
|
+
get_max(): number
|
|
898
|
+
get_min(): number
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
export class IntRange {
|
|
902
|
+
|
|
903
|
+
// Own properties of GUPnPDLNA-2.0.GUPnPDLNA.IntRange
|
|
904
|
+
|
|
905
|
+
static name: string
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
export interface IntValue {
|
|
909
|
+
|
|
910
|
+
// Own fields of GUPnPDLNA-2.0.GUPnPDLNA.IntValue
|
|
911
|
+
|
|
912
|
+
/**
|
|
913
|
+
* The integer value.
|
|
914
|
+
* @field
|
|
915
|
+
*/
|
|
916
|
+
value: number
|
|
917
|
+
/**
|
|
918
|
+
* The state of #GUPnPDLNAIntValue.
|
|
919
|
+
* @field
|
|
920
|
+
*/
|
|
921
|
+
state: ValueState
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
/**
|
|
925
|
+
* GUPnP DLNA Value representing an integer value of some metadata attribute.
|
|
926
|
+
* @record
|
|
927
|
+
*/
|
|
928
|
+
export class IntValue {
|
|
929
|
+
|
|
930
|
+
// Own properties of GUPnPDLNA-2.0.GUPnPDLNA.IntValue
|
|
931
|
+
|
|
932
|
+
static name: string
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
export interface MetadataExtractorClass {
|
|
936
|
+
|
|
937
|
+
// Own fields of GUPnPDLNA-2.0.GUPnPDLNA.MetadataExtractorClass
|
|
938
|
+
|
|
939
|
+
/**
|
|
940
|
+
* Parent class.
|
|
941
|
+
* @field
|
|
942
|
+
*/
|
|
943
|
+
parent_class: GObject.ObjectClass
|
|
944
|
+
extract_async: (extractor: MetadataExtractor, uri: string | null, timeout_in_ms: number) => boolean
|
|
945
|
+
extract_sync: (extractor: MetadataExtractor, uri: string | null, timeout_in_ms: number) => Information
|
|
946
|
+
/**
|
|
947
|
+
* Padding. Ignore it.
|
|
948
|
+
* @field
|
|
949
|
+
*/
|
|
950
|
+
_reserved: any[]
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
export abstract class MetadataExtractorClass {
|
|
954
|
+
|
|
955
|
+
// Own properties of GUPnPDLNA-2.0.GUPnPDLNA.MetadataExtractorClass
|
|
956
|
+
|
|
957
|
+
static name: string
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
export interface ProfileClass {
|
|
961
|
+
|
|
962
|
+
// Own fields of GUPnPDLNA-2.0.GUPnPDLNA.ProfileClass
|
|
963
|
+
|
|
964
|
+
/**
|
|
965
|
+
* A #GObjectClass - parent of this class.
|
|
966
|
+
* @field
|
|
967
|
+
*/
|
|
968
|
+
parent_class: GObject.ObjectClass
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
export abstract class ProfileClass {
|
|
972
|
+
|
|
973
|
+
// Own properties of GUPnPDLNA-2.0.GUPnPDLNA.ProfileClass
|
|
974
|
+
|
|
975
|
+
static name: string
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
export interface ProfileGuesserClass {
|
|
979
|
+
|
|
980
|
+
// Own fields of GUPnPDLNA-2.0.GUPnPDLNA.ProfileGuesserClass
|
|
981
|
+
|
|
982
|
+
/**
|
|
983
|
+
* A #GObjectClass - parent of this class.
|
|
984
|
+
* @field
|
|
985
|
+
*/
|
|
986
|
+
parent_class: GObject.ObjectClass
|
|
987
|
+
}
|
|
988
|
+
|
|
989
|
+
export abstract class ProfileGuesserClass {
|
|
990
|
+
|
|
991
|
+
// Own properties of GUPnPDLNA-2.0.GUPnPDLNA.ProfileGuesserClass
|
|
992
|
+
|
|
993
|
+
static name: string
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
export interface Restriction {
|
|
997
|
+
|
|
998
|
+
// Owm methods of GUPnPDLNA-2.0.GUPnPDLNA.Restriction
|
|
999
|
+
|
|
1000
|
+
copy(): Restriction
|
|
1001
|
+
/**
|
|
1002
|
+
* Frees `restriction`.
|
|
1003
|
+
*/
|
|
1004
|
+
free(): void
|
|
1005
|
+
/**
|
|
1006
|
+
* Gets `restriction'`s entries. It is a string to #GUPnPDLNAValueList
|
|
1007
|
+
* mapping.
|
|
1008
|
+
* @returns Entries. Do not modify.
|
|
1009
|
+
*/
|
|
1010
|
+
get_entries(): GLib.HashTable
|
|
1011
|
+
/**
|
|
1012
|
+
* Gets `restriction'`s MIME type.
|
|
1013
|
+
* @returns MIME type. Do not modify.
|
|
1014
|
+
*/
|
|
1015
|
+
get_mime(): string | null
|
|
1016
|
+
is_empty(): boolean
|
|
1017
|
+
/**
|
|
1018
|
+
* Creates a string representation of `restriction`.
|
|
1019
|
+
* @returns A string representation of @restriction. Free with g_free() when not needed.
|
|
1020
|
+
*/
|
|
1021
|
+
to_string(): string | null
|
|
1022
|
+
}
|
|
1023
|
+
|
|
1024
|
+
export class Restriction {
|
|
1025
|
+
|
|
1026
|
+
// Own properties of GUPnPDLNA-2.0.GUPnPDLNA.Restriction
|
|
1027
|
+
|
|
1028
|
+
static name: string
|
|
1029
|
+
}
|
|
1030
|
+
|
|
1031
|
+
export interface StringValue {
|
|
1032
|
+
|
|
1033
|
+
// Own fields of GUPnPDLNA-2.0.GUPnPDLNA.StringValue
|
|
1034
|
+
|
|
1035
|
+
/**
|
|
1036
|
+
* The string value.
|
|
1037
|
+
* @field
|
|
1038
|
+
*/
|
|
1039
|
+
value: string | null
|
|
1040
|
+
/**
|
|
1041
|
+
* The state of #GUPnPDLNAStringValue.
|
|
1042
|
+
* @field
|
|
1043
|
+
*/
|
|
1044
|
+
state: ValueState
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1047
|
+
/**
|
|
1048
|
+
* GUPnP DLNA Value representing a string value of some metadata
|
|
1049
|
+
* attribute.
|
|
1050
|
+
* @record
|
|
1051
|
+
*/
|
|
1052
|
+
export class StringValue {
|
|
1053
|
+
|
|
1054
|
+
// Own properties of GUPnPDLNA-2.0.GUPnPDLNA.StringValue
|
|
1055
|
+
|
|
1056
|
+
static name: string
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
export interface ValueList {
|
|
1060
|
+
|
|
1061
|
+
// Owm methods of GUPnPDLNA-2.0.GUPnPDLNA.ValueList
|
|
1062
|
+
|
|
1063
|
+
copy(): ValueList
|
|
1064
|
+
/**
|
|
1065
|
+
* Frees the value list.
|
|
1066
|
+
*/
|
|
1067
|
+
free(): void
|
|
1068
|
+
/**
|
|
1069
|
+
* Gets a list of #GValues. #GValues can be of types #G_TYPE_BOOLEAN,
|
|
1070
|
+
* #G_TYPE_INT, #G_TYPE_STRING, #GUPNP_TYPE_DLNA_FRACTION,
|
|
1071
|
+
* #GUPNP_TYPE_DLNA_FRACTION_RANGE or #GUPNP_TYPE_DLNA_INT_RANGE.
|
|
1072
|
+
* @returns A list. Free it with g_list_free_full() with g_free().
|
|
1073
|
+
*/
|
|
1074
|
+
get_g_values(): any[]
|
|
1075
|
+
is_empty(): boolean
|
|
1076
|
+
/**
|
|
1077
|
+
* Creates a string representation of `list`.
|
|
1078
|
+
* @returns A string representation of @list. Free with g_free() when not needed.
|
|
1079
|
+
*/
|
|
1080
|
+
to_string(): string | null
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1083
|
+
export class ValueList {
|
|
1084
|
+
|
|
1085
|
+
// Own properties of GUPnPDLNA-2.0.GUPnPDLNA.ValueList
|
|
1086
|
+
|
|
1087
|
+
static name: string
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1090
|
+
export interface VideoInformationClass {
|
|
1091
|
+
|
|
1092
|
+
// Own fields of GUPnPDLNA-2.0.GUPnPDLNA.VideoInformationClass
|
|
1093
|
+
|
|
1094
|
+
/**
|
|
1095
|
+
* Parent class.
|
|
1096
|
+
* @field
|
|
1097
|
+
*/
|
|
1098
|
+
parent_class: GObject.ObjectClass
|
|
1099
|
+
/**
|
|
1100
|
+
* Padding. Ignore it.
|
|
1101
|
+
* @field
|
|
1102
|
+
*/
|
|
1103
|
+
_reserved: any[]
|
|
1104
|
+
}
|
|
1105
|
+
|
|
1106
|
+
export abstract class VideoInformationClass {
|
|
1107
|
+
|
|
1108
|
+
// Own properties of GUPnPDLNA-2.0.GUPnPDLNA.VideoInformationClass
|
|
1109
|
+
|
|
1110
|
+
static name: string
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1113
|
+
/**
|
|
1114
|
+
* Name of the imported GIR library
|
|
1115
|
+
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
|
|
1116
|
+
*/
|
|
1117
|
+
export const __name__: string
|
|
1118
|
+
/**
|
|
1119
|
+
* Version of the imported GIR library
|
|
1120
|
+
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
|
|
1121
|
+
*/
|
|
1122
|
+
export const __version__: string
|
|
1123
|
+
// END
|