]> Shamusworld >> Repos - virtualjaguar/blob - src/gui/filethread.h
Removed some cruft and nonstandard int/uint types, added M series BIOS.
[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 <stdint.h>
10
11 class FileThread: public QThread
12 {
13         Q_OBJECT
14
15         public:
16                 FileThread(QObject * parent = 0);
17                 ~FileThread();
18                 void Go(bool allowUnknown = false);
19
20         signals:
21                 void FoundAFile(unsigned long index);
22                 void FoundAFile2(unsigned long index, QString filename, QImage * label, unsigned long);
23                 void FoundAFile3(unsigned long index, QString filename, QImage * label, unsigned long, bool, unsigned long, unsigned long);
24
25         protected:
26                 void run(void);
27                 void HandleFile(QFileInfo);
28                 uint32_t FindCRCIndexInFileList(uint32_t);
29
30         private:
31                 QMutex mutex;
32                 QWaitCondition condition;
33                 bool abort;
34                 bool allowUnknownSoftware;
35 };
36
37 #endif  // __FILETHREAD_H__