]> Shamusworld >> Repos - virtualjaguar/blob - src/gui/filethread.h
Added missing headers for win32, code cleanup for file detection code.
[virtualjaguar] / src / gui / filethread.h
1 //
2 // filethread.h: File discovery thread class definition
3 //
4
5 #ifndef __FILETHREAD_H__
6 #define __FILETHREAD_H__
7
8 #include <QtCore>
9 #include "types.h"
10
11 class FileThread: public QThread
12 {
13         Q_OBJECT
14
15         public:
16                 FileThread(QObject * parent = 0);
17                 ~FileThread();
18                 void Go(void);
19
20         signals:
21                 void FoundAFile(unsigned long index);
22                 void FoundAFile2(unsigned long index, QString filename, QImage * label, unsigned long);
23
24         protected:
25                 void run(void);
26                 void HandleFile(QFileInfo);
27                 uint32 FindCRCIndexInFileList(uint32);
28
29         private:
30                 QMutex mutex;
31                 QWaitCondition condition;
32                 bool abort;
33 };
34
35 #endif  // __FILETHREAD_H__