ScanOS/backend/app/scanner/enums.py

26 lines
516 B
Python
Raw Permalink Normal View History

2023-09-21 14:56:01 +02:00
from enum import Enum
class Status(Enum):
INITIALIZED = "initialized"
IDLE = "idle"
RUNNING = "running"
DONE = "done"
ERR_NO_PAPER = "err_no_paper"
ERR_COVER_OPEN = "err_cover_open"
2024-07-07 00:30:13 +02:00
class PageStatus(Enum):
PROCESSING = "processing"
DONE = "done"
2023-09-21 14:56:01 +02:00
class Setting(Enum):
PAPER_SOURCE = "source"
COLOR_MODE = "color"
RESOLUTION = "resolution"
PAPER_SIZE = "paper_size"
class PaperSize(Enum):
A3 = "a3"
B3 = "b3"
A4 = "a4"
B4 = "b4"
LETTER = "letter"