1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
import { ActivityManager } from "./activity-manager";
import { Message } from "./message";
import { Method } from "./method";
import { Subscription } from "./subscription";
export interface IServiceOptions {
readonly idleTimer?: number;
readonly noBuiltinMethods?: boolean;
}
export declare class Service {
public readonly activityManager: ActivityManager;
public readonly busId: string;
public readonly cancelHandlers: Record<string, any>;
public readonly handlers: Record<string, any>;
public readonly idleTimer: number;
public readonly methods: { [category: string]: { [methodName: string]: Method } };
public readonly noBuiltinMethods: boolean;
public readonly subscriptions: { [id: string]: Message };
// @todo Need to "unified_service"
private readonly __serviceMainUnified: any;
public cleanupUnifiedDone: boolean;
// @todo Need to "palmbus"
public handle: any;
public hasPublicMethods: boolean;
// @todo Need to "palmbus"
public privateHandle: any;
// @todo Need to "palmbus"
public publicHandle: any;
// @todo Need to "palmbus"
public sendingHandle: any;
public useACG: boolean;
public constructor(busId: string, activityManager?: ActivityManager, options?: IServiceOptions);
public call(uri: string, args: Record<string, any>, callback: (message: Message) => void): void;
// @todo Need to "palmbus"
public cancelSubscription(handle: any, ls2Message: any): void;
public cleanupUnified(): void;
public idIsPrivileged(id: string): boolean;
public info(message: Message): void;
public quit(message: Message): void;
public register(name: string, requestCallback?: (message: Message) => void, cancelCallback?: (message: Message) => void, description?: Record<string, any>): Method;
public registerPrivate(name: string, requestCallback?: (message: Message) => void, cancelCallback?: (message: Message) => void, description?: Record<string, any>): Method;
public subscribe(uri: string, args: Record<string, any>): Subscription;
// @todo Need to "palmbus"
private _dispatch(handle: any, ls2Message: any): void;
private _register(privateBus: boolean, name: string, requestCallback?: (message: Message) => void, cancelCallback?: (message: Message) => void, description?: Record<string, any>): Method;
private _registerBuiltInMethods(privateBus: boolean): void;
}
|