0
mirror of https://github.com/valentineus/webos-service-types.git synced 2025-04-28 00:41:24 +03:00

Class "Service" base structure

Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
Valentin Popov 2020-02-20 13:15:38 +04:00
parent b7cb9f49b2
commit a1ed26b004
Signed by: Valentin Popov
GPG Key ID: 269A00ACA90A8EA3
2 changed files with 85 additions and 37 deletions

49
dist/index.d.ts vendored
View File

@ -1,38 +1,13 @@
export declare class Service {
public constructor(busId: string, activityManager?: IActivityManager, options?: IServiceOptions);
import { ActivityManager } from "./activity-manager";
import { Message } from "./message";
import { Method } from "./method";
import { Service } from "./service";
import { Subscription } from "./subscription";
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;
}
export {
ActivityManager,
Message,
Method,
Service,
Subscription,
};

73
dist/service.d.ts vendored Normal file
View File

@ -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;
}