@girs/epc-1.0 1.0.0-3.0.0-beta.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +33 -0
- package/epc-1.0.cjs +9 -0
- package/epc-1.0.d.cts +780 -0
- package/epc-1.0.d.ts +785 -0
- package/epc-1.0.js +8 -0
- package/package.json +53 -0
- package/tsconfig.doc.json +19 -0
package/epc-1.0.d.cts
ADDED
|
@@ -0,0 +1,780 @@
|
|
|
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
|
+
* Epc-1.0
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
import type GObject from '@girs/gobject-2.0';
|
|
13
|
+
import type GLib from '@girs/glib-2.0';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* The address family to use for contacting network services.
|
|
17
|
+
*/
|
|
18
|
+
export enum AddressFamily {
|
|
19
|
+
UNSPEC,
|
|
20
|
+
IPV4,
|
|
21
|
+
IPV6,
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Various strategies for handling service name collisions.
|
|
25
|
+
*/
|
|
26
|
+
export enum CollisionHandling {
|
|
27
|
+
IGNORE,
|
|
28
|
+
CHANGE_NAME,
|
|
29
|
+
UNIQUE_SERVICE,
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* The transport protocols supported by libepc.
|
|
33
|
+
*/
|
|
34
|
+
export enum Protocol {
|
|
35
|
+
UNKNOWN,
|
|
36
|
+
HTTP,
|
|
37
|
+
HTTPS,
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* These flags specify the authentication behaviour of an #EpcPublisher.
|
|
41
|
+
* @bitfield
|
|
42
|
+
*/
|
|
43
|
+
export enum AuthFlags {
|
|
44
|
+
DEFAULT,
|
|
45
|
+
PASSWORD_TEXT_NEEDED,
|
|
46
|
+
}
|
|
47
|
+
export const SERVICE_TYPE_HTTP: string | null
|
|
48
|
+
export const SERVICE_TYPE_HTTPS: string | null
|
|
49
|
+
export const TLS_SECONDS_PER_DAY: number
|
|
50
|
+
export const TLS_SECONDS_PER_HOUR: number
|
|
51
|
+
export const TLS_SECONDS_PER_MINUTE: number
|
|
52
|
+
export function address_family_to_string(value: AddressFamily): string | null
|
|
53
|
+
export function auth_flags_to_string(value: AuthFlags): string | null
|
|
54
|
+
export function avahi_error_quark(): GLib.Quark
|
|
55
|
+
export function collision_handling_to_string(value: CollisionHandling): string | null
|
|
56
|
+
export function http_error_quark(): GLib.Quark
|
|
57
|
+
export function protocol_build_uri(protocol: Protocol, hostname: string | null, port: number, path: string | null): string | null
|
|
58
|
+
export function protocol_from_name(name: string | null, fallback: Protocol): Protocol
|
|
59
|
+
export function protocol_get_service_type(protocol: Protocol): string | null
|
|
60
|
+
export function protocol_get_uri_scheme(protocol: Protocol): string | null
|
|
61
|
+
export function protocol_to_string(value: Protocol): string | null
|
|
62
|
+
export function service_type_get_base(type: string | null): string | null
|
|
63
|
+
export function service_type_get_protocol(service_type: string | null): Protocol
|
|
64
|
+
export function service_type_new(protocol: Protocol, application: string | null): string | null
|
|
65
|
+
export function shell_get_debug_level(): number
|
|
66
|
+
export function shell_get_host_name(): string | null
|
|
67
|
+
export function shell_progress_begin(title: string | null, message: string | null): void
|
|
68
|
+
export function shell_progress_end(): void
|
|
69
|
+
export function shell_progress_update(percentage: number, message: string | null): void
|
|
70
|
+
export function shell_restart_avahi_client(strloc: string | null): void
|
|
71
|
+
export function shell_set_progress_hooks(hooks: ShellProgressHooks, user_data: any, destroy_data: GLib.DestroyNotify): void
|
|
72
|
+
export function shell_watch_remove(id: number): void
|
|
73
|
+
export function tls_error_quark(): GLib.Quark
|
|
74
|
+
export function tls_get_certificate_filename(hostname: string | null): string | null
|
|
75
|
+
export function tls_get_private_key_filename(hostname: string | null): string | null
|
|
76
|
+
export function tls_get_server_credentials(hostname: string | null, crtfile: string | null, keyfile: string | null): boolean
|
|
77
|
+
/**
|
|
78
|
+
* Functions implementing this callback shall return %TRUE when the
|
|
79
|
+
* credentials provided by the authentication request grant access
|
|
80
|
+
* to the resource described by `context`.
|
|
81
|
+
*
|
|
82
|
+
* The `username` is %NULL when no creditials were passed, and anonymous access
|
|
83
|
+
* is tried.
|
|
84
|
+
*
|
|
85
|
+
* See also #epc_publisher_set_auth_flags. When EPC_AUTH_DEFAULT is used,
|
|
86
|
+
* you should call #epc_auth_context_check_password
|
|
87
|
+
* to verify that the password passed in the request matches the known password
|
|
88
|
+
* for that user. In this case there is no way to retrieve the password from
|
|
89
|
+
* the #EpcAuthContext because the network protocol transfers just a hash code,
|
|
90
|
+
* not the actual password.
|
|
91
|
+
*
|
|
92
|
+
* However, when EPC_AUTH_PASSWORD_TEXT_NEEDED is used, you should call
|
|
93
|
+
* epc_auth_context_get_password() and then do your own authentication check.
|
|
94
|
+
* For instance, you might need to delegate the authentication to some other
|
|
95
|
+
* code or server, such as a database server.
|
|
96
|
+
* @callback
|
|
97
|
+
* @param context the #EpcAuthContext
|
|
98
|
+
* @param username the username provided for authentication, or %NULL
|
|
99
|
+
* @returns %TRUE when access is granted, and %FALSE otherwise.
|
|
100
|
+
*/
|
|
101
|
+
export interface AuthHandler {
|
|
102
|
+
(context: AuthContext, username: string | null): boolean
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* This callback is used to generate custom contents published with the
|
|
106
|
+
* #epc_publisher_add_handler function. The arguments passed are the same as
|
|
107
|
+
* passed to #epc_publisher_add_handler. The #EpcPublisher will decrease the
|
|
108
|
+
* reference count of the returned buffer after deliving it. It's valid to
|
|
109
|
+
* return %NULL in situations were no contents can be generated.
|
|
110
|
+
* @callback
|
|
111
|
+
* @param publisher the #EpcPublisher
|
|
112
|
+
* @param key the unique key
|
|
113
|
+
* @returns The #EpcContents buffer for this publication, or %NULL.
|
|
114
|
+
*/
|
|
115
|
+
export interface ContentsHandler {
|
|
116
|
+
(publisher: Publisher, key: string | null): Contents
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* This callback is used to retrieve the next chunk of data for a streaming
|
|
120
|
+
* contents buffer created with #epc_contents_stream_read.
|
|
121
|
+
*
|
|
122
|
+
* Return %FALSE when the buffer has reached its end, and no more data is
|
|
123
|
+
* available. Also return %FALSE, when the buffer size passed in `length` is
|
|
124
|
+
* not sufficient. Copy your minimal buffer size to `length` in that situation.
|
|
125
|
+
*
|
|
126
|
+
* The library might pass %NULL for `buffer` on the first call to start buffer
|
|
127
|
+
* size negotation.
|
|
128
|
+
*
|
|
129
|
+
* See also: #epc_contents_stream_new, #epc_contents_stream_read
|
|
130
|
+
* @callback
|
|
131
|
+
* @param contents a #EpcContents buffer
|
|
132
|
+
* @param buffer a location for storing the contents, or %NULL
|
|
133
|
+
* @param length a location for passing and storing the contents length in bytes.
|
|
134
|
+
* @returns Returns %TRUE when the next chunk could be read, and %FALSE on error.
|
|
135
|
+
*/
|
|
136
|
+
export interface ContentsReadFunc {
|
|
137
|
+
(contents: Contents, buffer: any, length: number): boolean
|
|
138
|
+
}
|
|
139
|
+
export module Consumer {
|
|
140
|
+
|
|
141
|
+
// Signal callback interfaces
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Signal callback interface for `authenticate`
|
|
145
|
+
*/
|
|
146
|
+
export interface AuthenticateSignalCallback {
|
|
147
|
+
($obj: Consumer, object: string): boolean
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* Signal callback interface for `publisher-resolved`
|
|
152
|
+
*/
|
|
153
|
+
export interface PublisherResolvedSignalCallback {
|
|
154
|
+
($obj: Consumer, object: Protocol, p0: string, p1: number): void
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
// Constructor properties interface
|
|
159
|
+
|
|
160
|
+
export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
161
|
+
|
|
162
|
+
// Own constructor properties of Epc-1.0.Epc.Consumer
|
|
163
|
+
|
|
164
|
+
application?: string | null
|
|
165
|
+
domain?: string | null
|
|
166
|
+
hostname?: string | null
|
|
167
|
+
name?: string | null
|
|
168
|
+
password?: string | null
|
|
169
|
+
path?: string | null
|
|
170
|
+
port?: number | null
|
|
171
|
+
protocol?: Protocol | null
|
|
172
|
+
username?: string | null
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export interface Consumer {
|
|
178
|
+
|
|
179
|
+
// Own properties of Epc-1.0.Epc.Consumer
|
|
180
|
+
|
|
181
|
+
readonly application: string
|
|
182
|
+
readonly domain: string
|
|
183
|
+
readonly hostname: string
|
|
184
|
+
readonly name: string
|
|
185
|
+
password: string
|
|
186
|
+
readonly path: string
|
|
187
|
+
readonly port: number
|
|
188
|
+
protocol: Protocol
|
|
189
|
+
username: string
|
|
190
|
+
|
|
191
|
+
// Owm methods of Epc-1.0.Epc.Consumer
|
|
192
|
+
|
|
193
|
+
get_password(): string | null
|
|
194
|
+
get_protocol(): Protocol
|
|
195
|
+
get_username(): string | null
|
|
196
|
+
is_publisher_resolved(): boolean
|
|
197
|
+
resolve_publisher(timeout: number): boolean
|
|
198
|
+
set_password(password: string | null): void
|
|
199
|
+
set_protocol(protocol: Protocol): void
|
|
200
|
+
set_username(username: string | null): void
|
|
201
|
+
|
|
202
|
+
// Own virtual methods of Epc-1.0.Epc.Consumer
|
|
203
|
+
|
|
204
|
+
vfunc_authenticate(realm: string | null): void
|
|
205
|
+
vfunc_publisher_resolved(protocol: Protocol, hostname: string | null, port: number): void
|
|
206
|
+
|
|
207
|
+
// Own signals of Epc-1.0.Epc.Consumer
|
|
208
|
+
|
|
209
|
+
connect(sigName: "authenticate", callback: Consumer.AuthenticateSignalCallback): number
|
|
210
|
+
connect_after(sigName: "authenticate", callback: Consumer.AuthenticateSignalCallback): number
|
|
211
|
+
emit(sigName: "authenticate", object: string, ...args: any[]): void
|
|
212
|
+
connect(sigName: "publisher-resolved", callback: Consumer.PublisherResolvedSignalCallback): number
|
|
213
|
+
connect_after(sigName: "publisher-resolved", callback: Consumer.PublisherResolvedSignalCallback): number
|
|
214
|
+
emit(sigName: "publisher-resolved", object: Protocol, p0: string, p1: number, ...args: any[]): void
|
|
215
|
+
|
|
216
|
+
// Class property signals of Epc-1.0.Epc.Consumer
|
|
217
|
+
|
|
218
|
+
connect(sigName: "notify::application", callback: (($obj: Consumer, pspec: GObject.ParamSpec) => void)): number
|
|
219
|
+
connect_after(sigName: "notify::application", callback: (($obj: Consumer, pspec: GObject.ParamSpec) => void)): number
|
|
220
|
+
emit(sigName: "notify::application", ...args: any[]): void
|
|
221
|
+
connect(sigName: "notify::domain", callback: (($obj: Consumer, pspec: GObject.ParamSpec) => void)): number
|
|
222
|
+
connect_after(sigName: "notify::domain", callback: (($obj: Consumer, pspec: GObject.ParamSpec) => void)): number
|
|
223
|
+
emit(sigName: "notify::domain", ...args: any[]): void
|
|
224
|
+
connect(sigName: "notify::hostname", callback: (($obj: Consumer, pspec: GObject.ParamSpec) => void)): number
|
|
225
|
+
connect_after(sigName: "notify::hostname", callback: (($obj: Consumer, pspec: GObject.ParamSpec) => void)): number
|
|
226
|
+
emit(sigName: "notify::hostname", ...args: any[]): void
|
|
227
|
+
connect(sigName: "notify::name", callback: (($obj: Consumer, pspec: GObject.ParamSpec) => void)): number
|
|
228
|
+
connect_after(sigName: "notify::name", callback: (($obj: Consumer, pspec: GObject.ParamSpec) => void)): number
|
|
229
|
+
emit(sigName: "notify::name", ...args: any[]): void
|
|
230
|
+
connect(sigName: "notify::password", callback: (($obj: Consumer, pspec: GObject.ParamSpec) => void)): number
|
|
231
|
+
connect_after(sigName: "notify::password", callback: (($obj: Consumer, pspec: GObject.ParamSpec) => void)): number
|
|
232
|
+
emit(sigName: "notify::password", ...args: any[]): void
|
|
233
|
+
connect(sigName: "notify::path", callback: (($obj: Consumer, pspec: GObject.ParamSpec) => void)): number
|
|
234
|
+
connect_after(sigName: "notify::path", callback: (($obj: Consumer, pspec: GObject.ParamSpec) => void)): number
|
|
235
|
+
emit(sigName: "notify::path", ...args: any[]): void
|
|
236
|
+
connect(sigName: "notify::port", callback: (($obj: Consumer, pspec: GObject.ParamSpec) => void)): number
|
|
237
|
+
connect_after(sigName: "notify::port", callback: (($obj: Consumer, pspec: GObject.ParamSpec) => void)): number
|
|
238
|
+
emit(sigName: "notify::port", ...args: any[]): void
|
|
239
|
+
connect(sigName: "notify::protocol", callback: (($obj: Consumer, pspec: GObject.ParamSpec) => void)): number
|
|
240
|
+
connect_after(sigName: "notify::protocol", callback: (($obj: Consumer, pspec: GObject.ParamSpec) => void)): number
|
|
241
|
+
emit(sigName: "notify::protocol", ...args: any[]): void
|
|
242
|
+
connect(sigName: "notify::username", callback: (($obj: Consumer, pspec: GObject.ParamSpec) => void)): number
|
|
243
|
+
connect_after(sigName: "notify::username", callback: (($obj: Consumer, pspec: GObject.ParamSpec) => void)): number
|
|
244
|
+
emit(sigName: "notify::username", ...args: any[]): void
|
|
245
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
246
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
247
|
+
emit(sigName: string, ...args: any[]): void
|
|
248
|
+
disconnect(id: number): void
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* Public fields of the #EpcConsumer class.
|
|
253
|
+
* @class
|
|
254
|
+
*/
|
|
255
|
+
export class Consumer extends GObject.Object {
|
|
256
|
+
|
|
257
|
+
// Own properties of Epc-1.0.Epc.Consumer
|
|
258
|
+
|
|
259
|
+
static name: string
|
|
260
|
+
static $gtype: GObject.GType<Consumer>
|
|
261
|
+
|
|
262
|
+
// Constructors of Epc-1.0.Epc.Consumer
|
|
263
|
+
|
|
264
|
+
constructor(config?: Consumer.ConstructorProperties)
|
|
265
|
+
constructor(service: ServiceInfo)
|
|
266
|
+
static new(service: ServiceInfo): Consumer
|
|
267
|
+
static new_for_name(name: string | null): Consumer
|
|
268
|
+
static new_for_name_full(name: string | null, application: string | null, domain: string | null): Consumer
|
|
269
|
+
_init(config?: Consumer.ConstructorProperties): void
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
export module Dispatcher {
|
|
273
|
+
|
|
274
|
+
// Constructor properties interface
|
|
275
|
+
|
|
276
|
+
export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
277
|
+
|
|
278
|
+
// Own constructor properties of Epc-1.0.Epc.Dispatcher
|
|
279
|
+
|
|
280
|
+
collision_handling?: CollisionHandling | null
|
|
281
|
+
cookie?: string | null
|
|
282
|
+
name?: string | null
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
export interface Dispatcher {
|
|
288
|
+
|
|
289
|
+
// Own properties of Epc-1.0.Epc.Dispatcher
|
|
290
|
+
|
|
291
|
+
collision_handling: CollisionHandling
|
|
292
|
+
cookie: string
|
|
293
|
+
name: string
|
|
294
|
+
|
|
295
|
+
// Owm methods of Epc-1.0.Epc.Dispatcher
|
|
296
|
+
|
|
297
|
+
add_service_subtype(type: string | null, subtype: string | null): void
|
|
298
|
+
get_collision_handling(): CollisionHandling
|
|
299
|
+
get_cookie(): string | null
|
|
300
|
+
get_name(): string | null
|
|
301
|
+
reset(): void
|
|
302
|
+
run(): boolean
|
|
303
|
+
set_collision_handling(method: CollisionHandling): void
|
|
304
|
+
set_cookie(cookie: string | null): void
|
|
305
|
+
set_name(name: string | null): void
|
|
306
|
+
|
|
307
|
+
// Class property signals of Epc-1.0.Epc.Dispatcher
|
|
308
|
+
|
|
309
|
+
connect(sigName: "notify::collision-handling", callback: (($obj: Dispatcher, pspec: GObject.ParamSpec) => void)): number
|
|
310
|
+
connect_after(sigName: "notify::collision-handling", callback: (($obj: Dispatcher, pspec: GObject.ParamSpec) => void)): number
|
|
311
|
+
emit(sigName: "notify::collision-handling", ...args: any[]): void
|
|
312
|
+
connect(sigName: "notify::cookie", callback: (($obj: Dispatcher, pspec: GObject.ParamSpec) => void)): number
|
|
313
|
+
connect_after(sigName: "notify::cookie", callback: (($obj: Dispatcher, pspec: GObject.ParamSpec) => void)): number
|
|
314
|
+
emit(sigName: "notify::cookie", ...args: any[]): void
|
|
315
|
+
connect(sigName: "notify::name", callback: (($obj: Dispatcher, pspec: GObject.ParamSpec) => void)): number
|
|
316
|
+
connect_after(sigName: "notify::name", callback: (($obj: Dispatcher, pspec: GObject.ParamSpec) => void)): number
|
|
317
|
+
emit(sigName: "notify::name", ...args: any[]): void
|
|
318
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
319
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
320
|
+
emit(sigName: string, ...args: any[]): void
|
|
321
|
+
disconnect(id: number): void
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
/**
|
|
325
|
+
* Public fields of the #EpcDispatcher class.
|
|
326
|
+
* @class
|
|
327
|
+
*/
|
|
328
|
+
export class Dispatcher extends GObject.Object {
|
|
329
|
+
|
|
330
|
+
// Own properties of Epc-1.0.Epc.Dispatcher
|
|
331
|
+
|
|
332
|
+
static name: string
|
|
333
|
+
static $gtype: GObject.GType<Dispatcher>
|
|
334
|
+
|
|
335
|
+
// Constructors of Epc-1.0.Epc.Dispatcher
|
|
336
|
+
|
|
337
|
+
constructor(config?: Dispatcher.ConstructorProperties)
|
|
338
|
+
constructor(name: string | null)
|
|
339
|
+
static new(name: string | null): Dispatcher
|
|
340
|
+
_init(config?: Dispatcher.ConstructorProperties): void
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
export module Publisher {
|
|
344
|
+
|
|
345
|
+
// Constructor properties interface
|
|
346
|
+
|
|
347
|
+
export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
348
|
+
|
|
349
|
+
// Own constructor properties of Epc-1.0.Epc.Publisher
|
|
350
|
+
|
|
351
|
+
application?: string | null
|
|
352
|
+
auth_flags?: AuthFlags | null
|
|
353
|
+
certificate_file?: string | null
|
|
354
|
+
collision_handling?: CollisionHandling | null
|
|
355
|
+
contents_path?: string | null
|
|
356
|
+
private_key_file?: string | null
|
|
357
|
+
protocol?: Protocol | null
|
|
358
|
+
service_cookie?: string | null
|
|
359
|
+
service_domain?: string | null
|
|
360
|
+
service_name?: string | null
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
export interface Publisher {
|
|
366
|
+
|
|
367
|
+
// Own properties of Epc-1.0.Epc.Publisher
|
|
368
|
+
|
|
369
|
+
application: string
|
|
370
|
+
auth_flags: AuthFlags
|
|
371
|
+
certificate_file: string
|
|
372
|
+
collision_handling: CollisionHandling
|
|
373
|
+
contents_path: string
|
|
374
|
+
private_key_file: string
|
|
375
|
+
protocol: Protocol
|
|
376
|
+
service_cookie: string
|
|
377
|
+
service_domain: string
|
|
378
|
+
service_name: string
|
|
379
|
+
|
|
380
|
+
// Owm methods of Epc-1.0.Epc.Publisher
|
|
381
|
+
|
|
382
|
+
add(key: string | null, data: any, length: number): void
|
|
383
|
+
add_bookmark(key: string | null, label: string | null): void
|
|
384
|
+
add_file(key: string | null, filename: string | null): void
|
|
385
|
+
add_handler(key: string | null, handler: ContentsHandler): void
|
|
386
|
+
get_auth_flags(): AuthFlags
|
|
387
|
+
get_certificate_file(): string | null
|
|
388
|
+
get_collision_handling(): CollisionHandling
|
|
389
|
+
get_contents_path(): string | null
|
|
390
|
+
get_path(key: string | null): string | null
|
|
391
|
+
get_private_key_file(): string | null
|
|
392
|
+
get_protocol(): Protocol
|
|
393
|
+
get_service_cookie(): string | null
|
|
394
|
+
get_service_domain(): string | null
|
|
395
|
+
get_service_name(): string | null
|
|
396
|
+
get_uri(key: string | null): string | null
|
|
397
|
+
has_key(key: string | null): boolean
|
|
398
|
+
quit(): boolean
|
|
399
|
+
remove(key: string | null): boolean
|
|
400
|
+
run(): boolean
|
|
401
|
+
run_async(): boolean
|
|
402
|
+
set_auth_flags(flags: AuthFlags): void
|
|
403
|
+
set_auth_handler(key: string | null, handler: AuthHandler): void
|
|
404
|
+
set_collision_handling(method: CollisionHandling): void
|
|
405
|
+
set_contents_path(path: string | null): void
|
|
406
|
+
set_credentials(certfile: string | null, keyfile: string | null): void
|
|
407
|
+
set_protocol(protocol: Protocol): void
|
|
408
|
+
set_service_cookie(cookie: string | null): void
|
|
409
|
+
set_service_name(name: string | null): void
|
|
410
|
+
|
|
411
|
+
// Class property signals of Epc-1.0.Epc.Publisher
|
|
412
|
+
|
|
413
|
+
connect(sigName: "notify::application", callback: (($obj: Publisher, pspec: GObject.ParamSpec) => void)): number
|
|
414
|
+
connect_after(sigName: "notify::application", callback: (($obj: Publisher, pspec: GObject.ParamSpec) => void)): number
|
|
415
|
+
emit(sigName: "notify::application", ...args: any[]): void
|
|
416
|
+
connect(sigName: "notify::auth-flags", callback: (($obj: Publisher, pspec: GObject.ParamSpec) => void)): number
|
|
417
|
+
connect_after(sigName: "notify::auth-flags", callback: (($obj: Publisher, pspec: GObject.ParamSpec) => void)): number
|
|
418
|
+
emit(sigName: "notify::auth-flags", ...args: any[]): void
|
|
419
|
+
connect(sigName: "notify::certificate-file", callback: (($obj: Publisher, pspec: GObject.ParamSpec) => void)): number
|
|
420
|
+
connect_after(sigName: "notify::certificate-file", callback: (($obj: Publisher, pspec: GObject.ParamSpec) => void)): number
|
|
421
|
+
emit(sigName: "notify::certificate-file", ...args: any[]): void
|
|
422
|
+
connect(sigName: "notify::collision-handling", callback: (($obj: Publisher, pspec: GObject.ParamSpec) => void)): number
|
|
423
|
+
connect_after(sigName: "notify::collision-handling", callback: (($obj: Publisher, pspec: GObject.ParamSpec) => void)): number
|
|
424
|
+
emit(sigName: "notify::collision-handling", ...args: any[]): void
|
|
425
|
+
connect(sigName: "notify::contents-path", callback: (($obj: Publisher, pspec: GObject.ParamSpec) => void)): number
|
|
426
|
+
connect_after(sigName: "notify::contents-path", callback: (($obj: Publisher, pspec: GObject.ParamSpec) => void)): number
|
|
427
|
+
emit(sigName: "notify::contents-path", ...args: any[]): void
|
|
428
|
+
connect(sigName: "notify::private-key-file", callback: (($obj: Publisher, pspec: GObject.ParamSpec) => void)): number
|
|
429
|
+
connect_after(sigName: "notify::private-key-file", callback: (($obj: Publisher, pspec: GObject.ParamSpec) => void)): number
|
|
430
|
+
emit(sigName: "notify::private-key-file", ...args: any[]): void
|
|
431
|
+
connect(sigName: "notify::protocol", callback: (($obj: Publisher, pspec: GObject.ParamSpec) => void)): number
|
|
432
|
+
connect_after(sigName: "notify::protocol", callback: (($obj: Publisher, pspec: GObject.ParamSpec) => void)): number
|
|
433
|
+
emit(sigName: "notify::protocol", ...args: any[]): void
|
|
434
|
+
connect(sigName: "notify::service-cookie", callback: (($obj: Publisher, pspec: GObject.ParamSpec) => void)): number
|
|
435
|
+
connect_after(sigName: "notify::service-cookie", callback: (($obj: Publisher, pspec: GObject.ParamSpec) => void)): number
|
|
436
|
+
emit(sigName: "notify::service-cookie", ...args: any[]): void
|
|
437
|
+
connect(sigName: "notify::service-domain", callback: (($obj: Publisher, pspec: GObject.ParamSpec) => void)): number
|
|
438
|
+
connect_after(sigName: "notify::service-domain", callback: (($obj: Publisher, pspec: GObject.ParamSpec) => void)): number
|
|
439
|
+
emit(sigName: "notify::service-domain", ...args: any[]): void
|
|
440
|
+
connect(sigName: "notify::service-name", callback: (($obj: Publisher, pspec: GObject.ParamSpec) => void)): number
|
|
441
|
+
connect_after(sigName: "notify::service-name", callback: (($obj: Publisher, pspec: GObject.ParamSpec) => void)): number
|
|
442
|
+
emit(sigName: "notify::service-name", ...args: any[]): void
|
|
443
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
444
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
445
|
+
emit(sigName: string, ...args: any[]): void
|
|
446
|
+
disconnect(id: number): void
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
/**
|
|
450
|
+
* Public fields of the #EpcPublisher class.
|
|
451
|
+
* @class
|
|
452
|
+
*/
|
|
453
|
+
export class Publisher extends GObject.Object {
|
|
454
|
+
|
|
455
|
+
// Own properties of Epc-1.0.Epc.Publisher
|
|
456
|
+
|
|
457
|
+
static name: string
|
|
458
|
+
static $gtype: GObject.GType<Publisher>
|
|
459
|
+
|
|
460
|
+
// Constructors of Epc-1.0.Epc.Publisher
|
|
461
|
+
|
|
462
|
+
constructor(config?: Publisher.ConstructorProperties)
|
|
463
|
+
constructor(name: string | null, application: string | null, domain: string | null)
|
|
464
|
+
static new(name: string | null, application: string | null, domain: string | null): Publisher
|
|
465
|
+
_init(config?: Publisher.ConstructorProperties): void
|
|
466
|
+
static expand_name(name: string | null): string | null
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
export module ServiceMonitor {
|
|
470
|
+
|
|
471
|
+
// Signal callback interfaces
|
|
472
|
+
|
|
473
|
+
/**
|
|
474
|
+
* Signal callback interface for `scanning-done`
|
|
475
|
+
*/
|
|
476
|
+
export interface ScanningDoneSignalCallback {
|
|
477
|
+
($obj: ServiceMonitor, object: string): void
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
/**
|
|
481
|
+
* Signal callback interface for `service-found`
|
|
482
|
+
*/
|
|
483
|
+
export interface ServiceFoundSignalCallback {
|
|
484
|
+
($obj: ServiceMonitor, object: string, p0: ServiceInfo): void
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
/**
|
|
488
|
+
* Signal callback interface for `service-removed`
|
|
489
|
+
*/
|
|
490
|
+
export interface ServiceRemovedSignalCallback {
|
|
491
|
+
($obj: ServiceMonitor, object: string, p0: string): void
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
|
|
495
|
+
// Constructor properties interface
|
|
496
|
+
|
|
497
|
+
export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
498
|
+
|
|
499
|
+
// Own constructor properties of Epc-1.0.Epc.ServiceMonitor
|
|
500
|
+
|
|
501
|
+
application?: string | null
|
|
502
|
+
domain?: string | null
|
|
503
|
+
service_types?: string[] | null
|
|
504
|
+
skip_our_own?: boolean | null
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
export interface ServiceMonitor {
|
|
510
|
+
|
|
511
|
+
// Own properties of Epc-1.0.Epc.ServiceMonitor
|
|
512
|
+
|
|
513
|
+
readonly application: string
|
|
514
|
+
readonly domain: string
|
|
515
|
+
readonly service_types: string[]
|
|
516
|
+
skip_our_own: boolean
|
|
517
|
+
|
|
518
|
+
// Owm methods of Epc-1.0.Epc.ServiceMonitor
|
|
519
|
+
|
|
520
|
+
get_skip_our_own(): boolean
|
|
521
|
+
set_skip_our_own(setting: boolean): void
|
|
522
|
+
|
|
523
|
+
// Own virtual methods of Epc-1.0.Epc.ServiceMonitor
|
|
524
|
+
|
|
525
|
+
vfunc_scanning_done(type: string | null): void
|
|
526
|
+
vfunc_service_found(name: string | null, info: ServiceInfo): void
|
|
527
|
+
vfunc_service_removed(name: string | null, type: string | null): void
|
|
528
|
+
|
|
529
|
+
// Own signals of Epc-1.0.Epc.ServiceMonitor
|
|
530
|
+
|
|
531
|
+
connect(sigName: "scanning-done", callback: ServiceMonitor.ScanningDoneSignalCallback): number
|
|
532
|
+
connect_after(sigName: "scanning-done", callback: ServiceMonitor.ScanningDoneSignalCallback): number
|
|
533
|
+
emit(sigName: "scanning-done", object: string, ...args: any[]): void
|
|
534
|
+
connect(sigName: "service-found", callback: ServiceMonitor.ServiceFoundSignalCallback): number
|
|
535
|
+
connect_after(sigName: "service-found", callback: ServiceMonitor.ServiceFoundSignalCallback): number
|
|
536
|
+
emit(sigName: "service-found", object: string, p0: ServiceInfo, ...args: any[]): void
|
|
537
|
+
connect(sigName: "service-removed", callback: ServiceMonitor.ServiceRemovedSignalCallback): number
|
|
538
|
+
connect_after(sigName: "service-removed", callback: ServiceMonitor.ServiceRemovedSignalCallback): number
|
|
539
|
+
emit(sigName: "service-removed", object: string, p0: string, ...args: any[]): void
|
|
540
|
+
|
|
541
|
+
// Class property signals of Epc-1.0.Epc.ServiceMonitor
|
|
542
|
+
|
|
543
|
+
connect(sigName: "notify::application", callback: (($obj: ServiceMonitor, pspec: GObject.ParamSpec) => void)): number
|
|
544
|
+
connect_after(sigName: "notify::application", callback: (($obj: ServiceMonitor, pspec: GObject.ParamSpec) => void)): number
|
|
545
|
+
emit(sigName: "notify::application", ...args: any[]): void
|
|
546
|
+
connect(sigName: "notify::domain", callback: (($obj: ServiceMonitor, pspec: GObject.ParamSpec) => void)): number
|
|
547
|
+
connect_after(sigName: "notify::domain", callback: (($obj: ServiceMonitor, pspec: GObject.ParamSpec) => void)): number
|
|
548
|
+
emit(sigName: "notify::domain", ...args: any[]): void
|
|
549
|
+
connect(sigName: "notify::service-types", callback: (($obj: ServiceMonitor, pspec: GObject.ParamSpec) => void)): number
|
|
550
|
+
connect_after(sigName: "notify::service-types", callback: (($obj: ServiceMonitor, pspec: GObject.ParamSpec) => void)): number
|
|
551
|
+
emit(sigName: "notify::service-types", ...args: any[]): void
|
|
552
|
+
connect(sigName: "notify::skip-our-own", callback: (($obj: ServiceMonitor, pspec: GObject.ParamSpec) => void)): number
|
|
553
|
+
connect_after(sigName: "notify::skip-our-own", callback: (($obj: ServiceMonitor, pspec: GObject.ParamSpec) => void)): number
|
|
554
|
+
emit(sigName: "notify::skip-our-own", ...args: any[]): void
|
|
555
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
556
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
557
|
+
emit(sigName: string, ...args: any[]): void
|
|
558
|
+
disconnect(id: number): void
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
/**
|
|
562
|
+
* Public fields of the #EpcServiceMonitor class.
|
|
563
|
+
* @class
|
|
564
|
+
*/
|
|
565
|
+
export class ServiceMonitor extends GObject.Object {
|
|
566
|
+
|
|
567
|
+
// Own properties of Epc-1.0.Epc.ServiceMonitor
|
|
568
|
+
|
|
569
|
+
static name: string
|
|
570
|
+
static $gtype: GObject.GType<ServiceMonitor>
|
|
571
|
+
|
|
572
|
+
// Constructors of Epc-1.0.Epc.ServiceMonitor
|
|
573
|
+
|
|
574
|
+
constructor(config?: ServiceMonitor.ConstructorProperties)
|
|
575
|
+
static new_for_types_strv(domain: string | null, types: string | null): ServiceMonitor
|
|
576
|
+
_init(config?: ServiceMonitor.ConstructorProperties): void
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
export interface AuthContext {
|
|
580
|
+
|
|
581
|
+
// Owm methods of Epc-1.0.Epc.AuthContext
|
|
582
|
+
|
|
583
|
+
check_password(password: string | null): boolean
|
|
584
|
+
get_key(): string | null
|
|
585
|
+
get_password(): string | null
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
export class AuthContext {
|
|
589
|
+
|
|
590
|
+
// Own properties of Epc-1.0.Epc.AuthContext
|
|
591
|
+
|
|
592
|
+
static name: string
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
export interface ConsumerClass {
|
|
596
|
+
|
|
597
|
+
// Own fields of Epc-1.0.Epc.ConsumerClass
|
|
598
|
+
|
|
599
|
+
authenticate: (consumer: Consumer, realm: string | null) => void
|
|
600
|
+
publisher_resolved: (consumer: Consumer, protocol: Protocol, hostname: string | null, port: number) => void
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
/**
|
|
604
|
+
* Virtual methods of the #EpcConsumer class.
|
|
605
|
+
* @record
|
|
606
|
+
*/
|
|
607
|
+
export abstract class ConsumerClass {
|
|
608
|
+
|
|
609
|
+
// Own properties of Epc-1.0.Epc.ConsumerClass
|
|
610
|
+
|
|
611
|
+
static name: string
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
export interface ConsumerPrivate {
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
export class ConsumerPrivate {
|
|
618
|
+
|
|
619
|
+
// Own properties of Epc-1.0.Epc.ConsumerPrivate
|
|
620
|
+
|
|
621
|
+
static name: string
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
export interface Contents {
|
|
625
|
+
|
|
626
|
+
// Owm methods of Epc-1.0.Epc.Contents
|
|
627
|
+
|
|
628
|
+
get_mime_type(): string | null
|
|
629
|
+
is_stream(): boolean
|
|
630
|
+
ref(): Contents
|
|
631
|
+
unref(): void
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
export class Contents {
|
|
635
|
+
|
|
636
|
+
// Own properties of Epc-1.0.Epc.Contents
|
|
637
|
+
|
|
638
|
+
static name: string
|
|
639
|
+
|
|
640
|
+
// Constructors of Epc-1.0.Epc.Contents
|
|
641
|
+
|
|
642
|
+
constructor(type: string | null, data: any, length: number, destroy_data: GLib.DestroyNotify)
|
|
643
|
+
static new(type: string | null, data: any, length: number, destroy_data: GLib.DestroyNotify): Contents
|
|
644
|
+
static new_dup(type: string | null, data: any, length: number): Contents
|
|
645
|
+
static stream_new(type: string | null, callback: ContentsReadFunc): Contents
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
export interface DispatcherClass {
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
/**
|
|
652
|
+
* Virtual methods of the #EpcDispatcher class.
|
|
653
|
+
* @record
|
|
654
|
+
*/
|
|
655
|
+
export abstract class DispatcherClass {
|
|
656
|
+
|
|
657
|
+
// Own properties of Epc-1.0.Epc.DispatcherClass
|
|
658
|
+
|
|
659
|
+
static name: string
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
export interface DispatcherPrivate {
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
export class DispatcherPrivate {
|
|
666
|
+
|
|
667
|
+
// Own properties of Epc-1.0.Epc.DispatcherPrivate
|
|
668
|
+
|
|
669
|
+
static name: string
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
export interface PublisherClass {
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
/**
|
|
676
|
+
* Virtual methods of the #EpcPublisher class.
|
|
677
|
+
* @record
|
|
678
|
+
*/
|
|
679
|
+
export abstract class PublisherClass {
|
|
680
|
+
|
|
681
|
+
// Own properties of Epc-1.0.Epc.PublisherClass
|
|
682
|
+
|
|
683
|
+
static name: string
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
export interface PublisherPrivate {
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
export class PublisherPrivate {
|
|
690
|
+
|
|
691
|
+
// Own properties of Epc-1.0.Epc.PublisherPrivate
|
|
692
|
+
|
|
693
|
+
static name: string
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
export interface ServiceInfo {
|
|
697
|
+
|
|
698
|
+
// Owm methods of Epc-1.0.Epc.ServiceInfo
|
|
699
|
+
|
|
700
|
+
get_address_family(): AddressFamily
|
|
701
|
+
get_detail(name: string | null): string | null
|
|
702
|
+
get_host(): string | null
|
|
703
|
+
get_interface(): string | null
|
|
704
|
+
get_port(): number
|
|
705
|
+
get_service_type(): string | null
|
|
706
|
+
ref(): ServiceInfo
|
|
707
|
+
unref(): void
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
export class ServiceInfo {
|
|
711
|
+
|
|
712
|
+
// Own properties of Epc-1.0.Epc.ServiceInfo
|
|
713
|
+
|
|
714
|
+
static name: string
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
export interface ServiceMonitorClass {
|
|
718
|
+
|
|
719
|
+
// Own fields of Epc-1.0.Epc.ServiceMonitorClass
|
|
720
|
+
|
|
721
|
+
service_found: (monitor: ServiceMonitor, name: string | null, info: ServiceInfo) => void
|
|
722
|
+
service_removed: (monitor: ServiceMonitor, name: string | null, type: string | null) => void
|
|
723
|
+
scanning_done: (monitor: ServiceMonitor, type: string | null) => void
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
/**
|
|
727
|
+
* Virtual methods of the #EpcServiceMonitor class.
|
|
728
|
+
* @record
|
|
729
|
+
*/
|
|
730
|
+
export abstract class ServiceMonitorClass {
|
|
731
|
+
|
|
732
|
+
// Own properties of Epc-1.0.Epc.ServiceMonitorClass
|
|
733
|
+
|
|
734
|
+
static name: string
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
export interface ServiceMonitorPrivate {
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
export class ServiceMonitorPrivate {
|
|
741
|
+
|
|
742
|
+
// Own properties of Epc-1.0.Epc.ServiceMonitorPrivate
|
|
743
|
+
|
|
744
|
+
static name: string
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
export interface ShellProgressHooks {
|
|
748
|
+
|
|
749
|
+
// Own fields of Epc-1.0.Epc.ShellProgressHooks
|
|
750
|
+
|
|
751
|
+
begin: (title: string | null) => void
|
|
752
|
+
update: (percentage: number, message: string | null) => void
|
|
753
|
+
end: () => void
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
/**
|
|
757
|
+
* This table is used by #epc_shell_set_progress_hooks to install functions
|
|
758
|
+
* allowing the library to provide feedback during processing.
|
|
759
|
+
*
|
|
760
|
+
* See also: #epc_progress_window_install
|
|
761
|
+
* @record
|
|
762
|
+
*/
|
|
763
|
+
export class ShellProgressHooks {
|
|
764
|
+
|
|
765
|
+
// Own properties of Epc-1.0.Epc.ShellProgressHooks
|
|
766
|
+
|
|
767
|
+
static name: string
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
/**
|
|
771
|
+
* Name of the imported GIR library
|
|
772
|
+
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
|
|
773
|
+
*/
|
|
774
|
+
export const __name__: string
|
|
775
|
+
/**
|
|
776
|
+
* Version of the imported GIR library
|
|
777
|
+
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
|
|
778
|
+
*/
|
|
779
|
+
export const __version__: string
|
|
780
|
+
// END
|