X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fgui%2Ffilethread.h;h=20fd3a02bf395b3611b5c88a1b5edeacde805776;hb=eec77bddfd9b9169b23717cf3b37d182ca88bbc3;hp=aec0038fa70d05726af9a4d40d1c974b34cb98a8;hpb=b54bb3c04ba861123e44b7f25fbc859d78627379;p=virtualjaguar diff --git a/src/gui/filethread.h b/src/gui/filethread.h index aec0038..20fd3a0 100644 --- a/src/gui/filethread.h +++ b/src/gui/filethread.h @@ -6,27 +6,32 @@ #define __FILETHREAD_H__ #include -#include "types.h" - -// Forward declarations -class QListWidget; +#include class FileThread: public QThread { + Q_OBJECT + 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__