Skip to content

Export Worker Adapter

app.infrastructure.adapters.export_worker_adapter

View source code

Explicit adapter wrapping ExportWorker to ExportWorkerInterface.

See Also

Layer: Infrastructure. Context: Implements concrete processing and I/O behind application-facing contracts.

ExportWorkerAdapter

Bases: ExportWorkerInterface

Delegate ExportWorker thread control and signals through the interface seam.

PARAMETER DESCRIPTION
worker

Concrete export worker wrapped by this adapter.

TYPE: ExportWorker

cancelled property

Forward the worker cancellation signal.

error_occurred property

Forward the worker error signal.

finished property

Forward native thread completion, safe for worker disposal.

finished_processing property

Forward the worker completion signal.

progress_updated property

Forward the worker progress signal.

succeeded property

Forward the worker success signal.

__init__(worker: ExportWorker) -> None

deleteLater() -> None

Schedule this Qt object for deletion.

isRunning() -> bool

Return whether the worker thread is running.

RETURNS DESCRIPTION
bool

True while the wrapped export worker is running.

start() -> None

Start the wrapped export worker.

stop() -> None

Request the wrapped export worker to stop.

wait() -> None

Wait until the wrapped export thread has fully exited.