9#ifndef KSANE_SCAN_THREAD_H
10#define KSANE_SCAN_THREAD_H
12#include "imagebuilder.h"
17#include <sane/saneopts.h>
27#define SCAN_READ_CHUNK_SIZE 100000
43 explicit ScanThread(SANE_Handle handle);
45 void setImageInverted(
const QVariant &newValue);
46 void setImageResolution(
const QVariant &newValue);
49 ReadStatus frameStatus();
50 SANE_Status saneStatus();
54 void unlockScanImage();
58 void scanProgressUpdated(
int progress);
62 void updateScanProgress();
63 void copyToScanData(
int readBytes);
65 SANE_Byte m_readData[SCAN_READ_CHUNK_SIZE];
66 SANE_Handle m_saneHandle;
69 int m_frame_t_count = 0;
72 SANE_Parameters m_params;
73 SANE_Status m_saneStatus = SANE_STATUS_GOOD;
74 ReadStatus m_readStatus = ReadReady;
75 bool m_announceFirstRead =
true;
76 bool m_invertColors =
false;
77 ImageBuilder m_imageBuilder;
81 QTimer m_emitProgressUpdateTimer;
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:17:19 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.