X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fgui%2Ffilethread.h;h=dba38a3a3cce5049b25af1e03f3e6eb9b19f091e;hb=191b8a160955c254138acb81c5b8021dfa1c0a26;hp=88739762a7f4aa3d4cbaf7a5062a774bbff4d158;hpb=3e68f33188872d5754d3765ff140811bcb696c6f;p=virtualjaguar diff --git a/src/gui/filethread.h b/src/gui/filethread.h index 8873976..dba38a3 100644 --- a/src/gui/filethread.h +++ b/src/gui/filethread.h @@ -2,25 +2,37 @@ // filethread.h: File discovery thread class definition // -#ifndef // __FILETHREAD_H__ -#define // __FILETHREAD_H__ +#ifndef __FILETHREAD_H__ +#define __FILETHREAD_H__ #include - -// 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); + void HandleBIOSFile(uint8 *, uint32); + uint32 FindCRCIndexInFileList(uint32); private: - QListWidget * listWidget; QMutex mutex; QWaitCondition condition; bool abort; + bool allowUnknownSoftware; }; #endif // __FILETHREAD_H__