X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fgui%2Ffilethread.h;h=5a8ef934fad216794ffe51d34a04d6b283bd01a7;hb=32f569e1bd09f5d7f07005d119f6408805106381;hp=12c316fa52d2bfaa4427466b946190d44cd059de;hpb=09adab3161f986d5cc8dbeffe15cb6545afa138f;p=virtualjaguar diff --git a/src/gui/filethread.h b/src/gui/filethread.h index 12c316f..5a8ef93 100644 --- a/src/gui/filethread.h +++ b/src/gui/filethread.h @@ -6,10 +6,8 @@ #define __FILETHREAD_H__ #include -#include "types.h" - -// Forward declarations -class QListWidget; +#include +#include class FileThread: public QThread { @@ -18,20 +16,23 @@ class FileThread: public QThread public: FileThread(QObject * parent = 0); ~FileThread(); - void Go(QListWidget * lw); + 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); - uint32 FindCRCIndexInFileList(uint32); + void HandleFile(QFileInfo); + uint32_t FindCRCIndexInFileList(uint32_t); private: - QListWidget * listWidget; QMutex mutex; QWaitCondition condition; bool abort; + bool allowUnknownSoftware; }; #endif // __FILETHREAD_H__