]> Shamusworld >> Repos - virtualjaguar/blobdiff - src/gui/filethread.h
Removed some cruft and nonstandard int/uint types, added M series BIOS.
[virtualjaguar] / src / gui / filethread.h
index 24f0c9d2c05d19049eb4046760d637f3d5b2821e..20fd3a02bf395b3611b5c88a1b5edeacde805776 100644 (file)
@@ -6,10 +6,7 @@
 #define __FILETHREAD_H__
 
 #include <QtCore>
-#include "types.h"
-
-// Forward declarations
-//class QListWidget;
+#include <stdint.h>
 
 class FileThread: public QThread
 {
@@ -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);
-               uint32 FindCRCIndexInFileList(uint32);
+               void HandleFile(QFileInfo);
+               uint32_t FindCRCIndexInFileList(uint32_t);
 
        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__