Skip to content

Factory Interface

app.application.interfaces.export.factory_interface

View source code

Interface contract for creating export worker instances.

See Also

Layer: Application. Context: Defines protocol boundaries consumed by application orchestration.

ExportWorkerFactoryInterface

Bases: Protocol

Create start-ready export workers behind an interface seam.

Layer: Application. Context: Coordinates use-case behavior through domain services and application contracts.

create(export_service: ExportService, s_id: SessionId, output_path: str, parent: QObject | None = None) -> ExportWorkerInterface

Create a worker that exports one session to a video file.

PARAMETER DESCRIPTION
export_service

Service that renders the session's frames and annotations.

TYPE: ExportService

s_id

Identifier of the session to export.

TYPE: SessionId

output_path

Destination path for the exported video.

TYPE: str

parent

Optional Qt parent that owns the worker.

TYPE: QObject | None DEFAULT: None

RETURNS DESCRIPTION
ExportWorkerInterface

Export worker implementing the application contract.