1 | import { IObservableDisposable } from '@lumino/disposable';
|
2 | import { ISignal } from '@lumino/signaling';
|
3 | import { ServerConnection } from './serverconnection';
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 | export interface IManager extends IObservableDisposable {
|
11 | |
12 |
|
13 |
|
14 | connectionFailure: ISignal<IManager, ServerConnection.NetworkError>;
|
15 | |
16 |
|
17 |
|
18 | readonly serverSettings: ServerConnection.ISettings;
|
19 | |
20 |
|
21 |
|
22 | readonly isReady: boolean;
|
23 | |
24 |
|
25 |
|
26 | readonly ready: Promise<void>;
|
27 | }
|
28 | export declare abstract class BaseManager implements IManager {
|
29 | constructor(options: BaseManager.IOptions);
|
30 | /**
|
31 | * A signal emitted when the delegate is disposed.
|
32 | */
|
33 | get disposed(): ISignal<this, void>;
|
34 | /**
|
35 | * A signal emitted when there is a connection failure.
|
36 | */
|
37 | abstract connectionFailure: ISignal<this, Error>;
|
38 | /**
|
39 | * Test whether the delegate has been disposed.
|
40 | */
|
41 | get isDisposed(): boolean;
|
42 | /**
|
43 | * Test whether the manager is ready.
|
44 | */
|
45 | abstract isReady: boolean;
|
46 | /**
|
47 | * A promise that fulfills when the manager is ready.
|
48 | */
|
49 | abstract ready: Promise<void>;
|
50 | /**
|
51 | * Dispose of the delegate and invoke the callback function.
|
52 | */
|
53 | dispose(): void;
|
54 | /**
|
55 | * The server settings of the manager.
|
56 | */
|
57 | readonly serverSettings: ServerConnection.ISettings;
|
58 | private _isDisposed;
|
59 | private _disposed;
|
60 | }
|
61 | /**
|
62 | * The namespace for `BaseManager` class statics.
|
63 | */
|
64 | export declare namespace BaseManager {
|
65 | |
66 |
|
67 |
|
68 | interface IOptions {
|
69 | |
70 |
|
71 |
|
72 | serverSettings?: ServerConnection.ISettings;
|
73 | }
|
74 | }
|