PageRenderTime 186ms CodeModel.GetById 61ms app.highlight 15ms RepoModel.GetById 76ms app.codeStats 0ms

/src/libtomahawk/thirdparty/quazip/quazip/JlCompress.h

http://github.com/tomahawk-player/tomahawk
C++ Header | 32 lines | 26 code | 6 blank | 0 comment | 0 complexity | e04448b36ecf47bc1284e40ccaf74b51 MD5 | raw file
 1#ifndef JLCOMPRESSFOLDER_H_
 2#define JLCOMPRESSFOLDER_H_
 3
 4#include "quazip.h"
 5#include "quazipfile.h"
 6#include "quazipfileinfo.h"
 7#include <QString>
 8#include <QDir>
 9#include <QFileInfo>
10#include <QFile>
11
12class QUAZIP_EXPORT JlCompress {
13private:
14    static bool compressFile(QuaZip* zip, QString fileName, QString fileDest);
15    static bool compressSubDir(QuaZip* parentZip, QString dir, QString parentDir, bool recursive = true);
16    static bool extractFile(QuaZip* zip, QString fileName, QString fileDest);
17
18    static bool removeFile(QStringList listFile);
19
20public:
21    static bool compressFile(QString fileCompressed, QString file);
22    static bool compressFiles(QString fileCompressed, QStringList files);
23    static bool compressDir(QString fileCompressed, QString dir = QString(), bool recursive = true);
24
25public:
26    static QString extractFile(QString fileCompressed, QString file, QString fileDest = QString());
27    static QStringList extractFiles(QString fileCompressed, QStringList files, QString dir = QString());
28    static QStringList extractDir(QString fileCompressed, QString dir = QString());
29    static QStringList getFileList(QString fileCompressed);
30};
31
32#endif /* JLCOMPRESSFOLDER_H_ */