diff options
author | Valentin Popov <info@valentineus.link> | 2020-02-20 12:15:38 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2020-02-20 12:15:38 +0300 |
commit | a1ed26b0041e00b0204c94f9a58fef30fd6de4cd (patch) | |
tree | 522b8844f171c24ab5793b3e29528f1e75ff875c /dist | |
parent | b7cb9f49b2f3fff7e909483f85ef449249e8cbb2 (diff) | |
download | webos-service-types-a1ed26b0041e00b0204c94f9a58fef30fd6de4cd.tar.xz webos-service-types-a1ed26b0041e00b0204c94f9a58fef30fd6de4cd.zip |
Class "Service" base structure
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to 'dist')
-rw-r--r-- | dist/index.d.ts | 51 | ||||
-rw-r--r-- | dist/service.d.ts | 73 |
2 files changed, 86 insertions, 38 deletions
diff --git a/dist/index.d.ts b/dist/index.d.ts index fa15d88..735129e 100644 --- a/dist/index.d.ts +++ b/dist/index.d.ts @@ -1,38 +1,13 @@ -export declare class Service { - public constructor(busId: string, activityManager?: IActivityManager, options?: IServiceOptions); - - private _dispatch(): any; - - private _register(): any; - - private _registerBuiltInMethods(): any; - - public call(): any; - - public cancelSubscription(): any; - - public cleanupUnified(): any; - - public idIsPrivileged(): any; - - public info(message: IMessage): void; - - public quit(message: IMessage): void; - - public register(): any; - - public registerPrivate(): any; - - public subscribe(uri: string, args: any): Subscription; -} - -export declare class Subscription { } - -export interface IActivityManager { } - -export interface IMessage { } - -export interface IServiceOptions { - readonly idleTimer?: number; - readonly noBuiltinMethods?: boolean; -} +import { ActivityManager } from "./activity-manager"; +import { Message } from "./message"; +import { Method } from "./method"; +import { Service } from "./service"; +import { Subscription } from "./subscription"; + +export { + ActivityManager, + Message, + Method, + Service, + Subscription, +}; diff --git a/dist/service.d.ts b/dist/service.d.ts new file mode 100644 index 0000000..619203f --- /dev/null +++ b/dist/service.d.ts @@ -0,0 +1,73 @@ +import { ActivityManager } from "./activity-manager"; +import { Message } from "./message"; +import { Method } from "./method"; + +export interface IServiceOptions { + readonly idleTimer?: number; + readonly noBuiltinMethods?: boolean; +} + +export declare class Service { + public constructor(busId: string, activityManager?: ActivityManager, options?: IServiceOptions); + + 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 }; + + 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; + + // @todo Need to "unified_service" + private readonly __serviceMainUnified: any; + + public call(): any; + + public cancelSubscription(): any; + + public cleanupUnified(): any; + + public idIsPrivileged(): any; + + public info(): any; + + public quit(): any; + + public register(): any; + + public registerPrivate(): any; + + public subscribe(): any; + + private _dispatch(): any; + + private _register(): any; + + private _registerBuiltInMethods(): any; +} |