aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-20 12:38:24 +0300
committerValentin Popov <info@valentineus.link>2020-02-20 12:38:24 +0300
commit35655605cd532faf75e7052385062ae679976a85 (patch)
tree8bc83b1ca403c8eca0a52ebffe501043b163cfeb
parenta1ed26b0041e00b0204c94f9a58fef30fd6de4cd (diff)
downloadwebos-service-types-35655605cd532faf75e7052385062ae679976a85.tar.xz
webos-service-types-35655605cd532faf75e7052385062ae679976a85.zip
Finished class "Service" structure
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r--dist/service.d.ts27
1 files changed, 15 insertions, 12 deletions
diff --git a/dist/service.d.ts b/dist/service.d.ts
index 619203f..ac7940e 100644
--- a/dist/service.d.ts
+++ b/dist/service.d.ts
@@ -1,6 +1,7 @@
import { ActivityManager } from "./activity-manager";
import { Message } from "./message";
import { Method } from "./method";
+import { Subscription } from "./subscription";
export interface IServiceOptions {
readonly idleTimer?: number;
@@ -47,27 +48,29 @@ export declare class Service {
// @todo Need to "unified_service"
private readonly __serviceMainUnified: any;
- public call(): any;
+ public call(uri: string, args: Record<string, any>, callback: (message: Message) => void): void;
- public cancelSubscription(): any;
+ // @todo Need to "palmbus"
+ public cancelSubscription(handle: any, ls2Message: any): void;
- public cleanupUnified(): any;
+ public cleanupUnified(): void;
- public idIsPrivileged(): any;
+ public idIsPrivileged(id: string): boolean;
- public info(): any;
+ public info(message: Message): void;
- public quit(): any;
+ public quit(message: Message): void;
- public register(): any;
+ public register(name: string, requestCallback?: (message: Message) => void, cancelCallback?: (message: Message) => void, description?: Record<string, any>): Method;
- public registerPrivate(): any;
+ public registerPrivate(name: string, requestCallback?: (message: Message) => void, cancelCallback?: (message: Message) => void, description?: Record<string, any>): Method;
- public subscribe(): any;
+ public subscribe(uri: string, args: Record<string, any>): Subscription;
- private _dispatch(): any;
+ // @todo Need to "palmbus"
+ private _dispatch(handle: any, ls2Message: any): void;
- private _register(): any;
+ private _register(privateBus: boolean, name: string, requestCallback?: (message: Message) => void, cancelCallback?: (message: Message) => void, description?: Record<string, any>): Method;
- private _registerBuiltInMethods(): any;
+ private _registerBuiltInMethods(privateBus: boolean): void;
}