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