X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fgui%2Ffilethread.h;h=dba38a3a3cce5049b25af1e03f3e6eb9b19f091e;hb=54f5867e394981dd72548990064238454a6e2395;hp=6690dc6b0bf3fbb260e9b174b2588a919a4268b0;hpb=25cc16d819c81e08d2e21b57720dd4ea08ae9e25;p=virtualjaguar diff --git a/src/gui/filethread.h b/src/gui/filethread.h index 6690dc6..dba38a3 100644 --- a/src/gui/filethread.h +++ b/src/gui/filethread.h @@ -8,9 +8,6 @@ #include #include "types.h" -// Forward declarations -//class QListWidget; - class FileThread: public QThread { Q_OBJECT @@ -18,30 +15,24 @@ class FileThread: public QThread public: FileThread(QObject * parent = 0); ~FileThread(); -// void Go(QListWidget * lw); - void Go(void); + 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; }; -struct RomIdentifier -{ - const uint32 crc32; - const char name[128]; - const char file[128]; -}; - -extern RomIdentifier romList[]; - #endif // __FILETHREAD_H__