Skip to content

Export Worker Factory Adapter

app.application.adapters.export_worker_factory_adapter

View source code

Infrastructure-backed factory adapter for single-session export workers.

See Also

Layer: Application. Context: Adapts infrastructure implementations to application contracts.

ExportWorkerFactoryAdapter

Bases: ExportWorkerFactoryInterface

Create concrete ExportWorker instances 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 single-session export worker behind its interface.

PARAMETER DESCRIPTION
export_service

Service that renders the session export.

TYPE: ExportService

s_id

Session to export.

TYPE: SessionId

output_path

Destination video path.

TYPE: str

parent

Optional Qt parent for the worker thread.

TYPE: QObject | None DEFAULT: None

RETURNS DESCRIPTION
ExportWorkerInterface

Worker adapter implementing ExportWorkerInterface.