Files
vue-desktop/src/core/process/IProcess.ts
2025-08-28 08:05:16 +08:00

20 lines
470 B
TypeScript

import type { IProcessInfo } from '@/core/process/IProcessInfo.ts'
import type { IWindowForm } from '@/core/window/IWindowForm.ts'
/**
* 进程接口
*/
export interface IProcess {
/** 进程id */
get id(): string;
/** 进程信息 */
get processInfo(): IProcessInfo;
/** 进程的窗体列表 */
get windowForms(): Map<string, IWindowForm>;
/**
* 打开窗体
* @param startName 窗体启动名
*/
openWindowForm(startName: string): void;
}