X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fgui%2Ffilethread.h;h=92b773d23b8d6d1a4bb0d5c2997c7924a79e9ef4;hb=6f25f63a18153bc2adc49c5f9a3862c2760716df;hp=24f0c9d2c05d19049eb4046760d637f3d5b2821e;hpb=47c26d5d9daba6072bc580029e711292393d3158;p=virtualjaguar diff --git a/src/gui/filethread.h b/src/gui/filethread.h index 24f0c9d..92b773d 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,33 +15,23 @@ 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); uint32 FindCRCIndexInFileList(uint32); private: -// QListWidget * listWidget; QMutex mutex; QWaitCondition condition; bool abort; + bool allowUnknownSoftware; }; -enum FileFlags { FF_ROM=1, FF_ALPINE=2, FF_BIOS=4, FF_REQ_DSP=8, FF_REQ_BIOS=16, FF_NON_WORKING=32 }; - -struct RomIdentifier -{ - const uint32 crc32; - const char name[128]; - const char file[128]; - const uint32 flags; -}; - -extern RomIdentifier romList[]; - #endif // __FILETHREAD_H__