src/integrityScan.h

Thu, 06 Nov 2014 15:49:02 +0200

author
Teemu Piippo <crimsondusk64@gmail.com>
date
Thu, 06 Nov 2014 15:49:02 +0200
changeset 917
523f41e9e971
parent 899
eb9604e381e3
permissions
-rw-r--r--

- closed old head

#include "main.h"

class Ui_IntegrityScan;

class IntegrityScan
{
public:
	class Procedure
	{
	public:
		Procedure (IntegrityScan* scan);
		virtual int numIterations() const = 0;
		virtual int currentIteration() const = 0;
		virtual void work() = 0;

		DELETE_COPY (Procedure)
	};

	IntegrityScan();
	~IntegrityScan();

	DELETE_COPY (IntegrityScan)
	LDDocumentPtr document() const;

private:
	Ui_IntegrityScan ui;
	QVector<QSharedPtr<Procedure>> m_procedures;
	LDDocumentPtr m_document;
};

class DoubleLineScan : public IntegrityScan::Procedure
{
public:
	DoubleLineScan (IntegrityScan* scan);

	int numIterations() const override;
	int currentIteration() const override;
	void work();

private:
	int m_i = 0;
	
};

mercurial