28 lines
753 B
TypeScript
28 lines
753 B
TypeScript
import type { IProcessInfo } from '@/core/process/IProcessInfo.ts'
|
|
import type { IWindowForm } from '@/core/window/IWindowForm.ts'
|
|
import type { IEventBuilder } from '@/core/events/IEventBuilder.ts'
|
|
import type { IProcessEvent } from '@/core/process/types/ProcessEventTypes.ts'
|
|
|
|
/**
|
|
* 进程接口
|
|
*/
|
|
export interface IProcess {
|
|
/** 进程id */
|
|
get id(): string;
|
|
/** 进程信息 */
|
|
get processInfo(): IProcessInfo;
|
|
/** 进程的窗体列表 */
|
|
get windowForms(): Map<string, IWindowForm>;
|
|
get event(): IEventBuilder<IProcessEvent>;
|
|
/**
|
|
* 打开窗体
|
|
* @param startName 窗体启动名
|
|
*/
|
|
openWindowForm(startName: string): void;
|
|
/**
|
|
* 关闭窗体
|
|
* @param id 窗体id
|
|
*/
|
|
closeWindowForm(id: string): void;
|
|
}
|