]> Shamusworld >> Repos - virtualjaguar/blobdiff - src/gui/filethread.h
Fixes for compilation against GCC 6.
[virtualjaguar] / src / gui / filethread.h
index 6690dc6b0bf3fbb260e9b174b2588a919a4268b0..5a8ef934fad216794ffe51d34a04d6b283bd01a7 100644 (file)
@@ -6,10 +6,8 @@
 #define __FILETHREAD_H__
 
 #include <QtCore>
-#include "types.h"
-
-// Forward declarations
-//class QListWidget;
+#include <QImage>
+#include <stdint.h>
 
 class FileThread: public QThread
 {
@@ -18,30 +16,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;
 };
 
-struct RomIdentifier
-{
-       const uint32 crc32;
-       const char name[128];
-       const char file[128];
-};
-
-extern RomIdentifier romList[];
-
 #endif // __FILETHREAD_H__