// filethread.h: File discovery thread class definition
//
-#ifndef // __FILETHREAD_H__
-#define // __FILETHREAD_H__
+#ifndef __FILETHREAD_H__
+#define __FILETHREAD_H__
#include <QtCore>
-
-// Forward declarations
-class QListWidget;
+#include "types.h"
class FileThread: public QThread
{
+ Q_OBJECT
+
public:
FileThread(QObject * parent = 0);
~FileThread();
+ void Go(bool allowUnknown = false);
+
+ signals:
+ void FoundAFile(unsigned long index);
+ void FoundAFile2(unsigned long index, QString filename, QImage * label, unsigned long);
+ void FoundAFile3(unsigned long index, QString filename, QImage * label, unsigned long, bool, unsigned long, unsigned long);
+
+ protected:
+ void run(void);
+ void HandleFile(QFileInfo);
+ uint32 FindCRCIndexInFileList(uint32);
private:
- QListWidget * listWidget;
QMutex mutex;
QWaitCondition condition;
bool abort;
+ bool allowUnknownSoftware;
};
#endif // __FILETHREAD_H__