src/integrityScan.h

changeset 899
eb9604e381e3
equal deleted inserted replaced
898:4dea33733251 899:eb9604e381e3
1 #include "main.h"
2
3 class Ui_IntegrityScan;
4
5 class IntegrityScan
6 {
7 public:
8 class Procedure
9 {
10 public:
11 Procedure (IntegrityScan* scan);
12 virtual int numIterations() const = 0;
13 virtual int currentIteration() const = 0;
14 virtual void work() = 0;
15
16 DELETE_COPY (Procedure)
17 };
18
19 IntegrityScan();
20 ~IntegrityScan();
21
22 DELETE_COPY (IntegrityScan)
23 LDDocumentPtr document() const;
24
25 private:
26 Ui_IntegrityScan ui;
27 QVector<QSharedPtr<Procedure>> m_procedures;
28 LDDocumentPtr m_document;
29 };
30
31 class DoubleLineScan : public IntegrityScan::Procedure
32 {
33 public:
34 DoubleLineScan (IntegrityScan* scan);
35
36 int numIterations() const override;
37 int currentIteration() const override;
38 void work();
39
40 private:
41 int m_i = 0;
42
43 };

mercurial