Skip to content

Tankōbon / main/services/cbr-conversion / CbrConverter

Interface: CbrConverter ​

Defined in: main/services/cbr-conversion.ts:38

The conversion as the handlers use it; built once in main.ts.

Methods ​

convert() ​

convert(onProgress?): Promise<ConvertCbrResult>

Defined in: main/services/cbr-conversion.ts:42

Converts them one at a time, reporting each through onProgress. Holds the shared lock.

Parameters ​

onProgress? ​

(progress) => void

Returns ​

Promise<ConvertCbrResult>


count() ​

count(): Promise<ConvertCountResult>

Defined in: main/services/cbr-conversion.ts:40

How many CBR of the organized folder can be converted, and what .deletedByTankobon holds. An error when the organization is off or its folder unreachable.

Returns ​

Promise<ConvertCountResult>


emptyDeleted() ​

emptyDeleted(): Promise<EmptyDeletedResult>

Defined in: main/services/cbr-conversion.ts:44

Deletes everything in .deletedByTankobon for good. Holds the shared lock.

Returns ​

Promise<EmptyDeletedResult>