wiiqt6/saveToy/quazip/include/JlCompress.h
giantpune@gmail.com 1994e8bdda * adding stuff to convert to/from data.bin for saves
git-svn-id: http://wiiqt.googlecode.com/svn/trunk@34 389f4c8b-5dfe-645f-db0e-df882bc27289
2011-01-02 06:15:26 +00:00

33 lines
1.2 KiB
C++

#ifndef JLCOMPRESSFOLDER_H_
#define JLCOMPRESSFOLDER_H_
#include "quazip.h"
#include "quazipfile.h"
#include "quazipfileinfo.h"
#include <QString>
#include <QDir>
#include <QFileInfo>
#include <QFile>
class JlCompress {
private:
static bool compressFile(QuaZip* zip, QString fileName, QString fileDest);
static bool compressSubDir(QuaZip* parentZip, QString dir, QString parentDir, bool recursive = true);
static bool extractFile(QuaZip* zip, QString fileName, QString fileDest);
static bool removeFile(QStringList listFile);
public:
static bool compressFile(QString fileCompressed, QString file);
static bool compressFiles(QString fileCompressed, QStringList files);
static bool compressDir(QString fileCompressed, QString dir = QString(), bool recursive = true);
public:
static QString extractFile(QString fileCompressed, QString file, QString fileDest = QString());
static QStringList extractFiles(QString fileCompressed, QStringList files, QString dir = QString());
static QStringList extractDir(QString fileCompressed, QString dir = QString());
static QStringList getFileList(QString fileCompressed);
};
#endif /* JLCOMPRESSFOLDER_H_ */