mirror of
https://github.com/martravi/wiiqt6.git
synced 2024-12-26 21:01:51 +01:00
da59f4ec49
git-svn-id: http://wiiqt.googlecode.com/svn/trunk@2 389f4c8b-5dfe-645f-db0e-df882bc27289
45 lines
752 B
C++
45 lines
752 B
C++
#ifndef SAVELOADTHREAD_H
|
|
#define SAVELOADTHREAD_H
|
|
|
|
#include "savelistitem.h"
|
|
#include "includes.h"
|
|
enum
|
|
{
|
|
LOAD_SNEEK = 0x111,
|
|
LOAD_PC
|
|
};
|
|
class SaveLoadThread : public QThread
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
SaveLoadThread( QObject *parent = 0 );
|
|
~SaveLoadThread();
|
|
|
|
void GetBanners( const QString &bPath, int mode );
|
|
void ForceQuit();
|
|
|
|
protected:
|
|
void run();
|
|
|
|
signals:
|
|
void SendProgress( int );
|
|
void SendDone( int );
|
|
void SendItem( QByteArray, const QString&, int, int );
|
|
|
|
private:
|
|
QMutex mutex;
|
|
QWaitCondition condition;
|
|
QString basePath;
|
|
int type;
|
|
|
|
bool abort;
|
|
|
|
int GetFolderSize( const QString& path );
|
|
};
|
|
|
|
//Q_DECLARE_METATYPE( SaveListItem* )
|
|
|
|
|
|
#endif // SAVELOADTHREAD_H
|