UNPKG

1.29 kBTypeScriptView Raw
1import { IDisposable } from '@lumino/disposable';
2import { ISignal } from '@lumino/signaling';
3import { JupyterFrontEnd } from './frontend';
4import { ILabStatus } from './tokens';
5/**
6 * The application status signals and flags class.
7 */
8export declare class LabStatus implements ILabStatus {
9 /**
10 * Construct a new status object.
11 */
12 constructor(app: JupyterFrontEnd<any, any>);
13 /**
14 * Returns a signal for when application changes its busy status.
15 */
16 get busySignal(): ISignal<JupyterFrontEnd, boolean>;
17 /**
18 * Returns a signal for when application changes its dirty status.
19 */
20 get dirtySignal(): ISignal<JupyterFrontEnd, boolean>;
21 /**
22 * Whether the application is busy.
23 */
24 get isBusy(): boolean;
25 /**
26 * Whether the application is dirty.
27 */
28 get isDirty(): boolean;
29 /**
30 * Set the application state to dirty.
31 *
32 * @returns A disposable used to clear the dirty state for the caller.
33 */
34 setDirty(): IDisposable;
35 /**
36 * Set the application state to busy.
37 *
38 * @returns A disposable used to clear the busy state for the caller.
39 */
40 setBusy(): IDisposable;
41 private _busyCount;
42 private _busySignal;
43 private _dirtyCount;
44 private _dirtySignal;
45}