]> Shamusworld >> Repos - virtualjaguar/blob - src/gui/filethread.h
Fixed random crashes due to QImage corruption.
[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                 uint32 FindCRCIndexInFileList(uint32);
27
28         private:
29                 QMutex mutex;
30                 QWaitCondition condition;
31                 bool abort;
32 };
33
34 #endif  // __FILETHREAD_H__