summaryrefslogtreecommitdiff
path: root/libsowatch/allwatchscanner.h
blob: 4dd915cfc78f55c2038821440bde3f0456593610 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef SOWATCH_ALLWATCHSCANNER_H
#define SOWATCH_ALLWATCHSCANNER_H

#include <QtCore/QObject>
#include <QtCore/QList>

#include "watchscanner.h"

namespace sowatch
{

/** This is just a simple wrapper class that runs all registered WatchScanners */
class AllWatchScanner : public WatchScanner
{
	Q_OBJECT
public:
	explicit AllWatchScanner(QObject *parent = 0);
	void start();

private:
	QList<WatchScanner*> _scanners;
	int _finishedCount;

private slots:
	void handleFinished();
};

}

#endif // SOWATCH_ALLWATCHSCANNER_H