QuaZIP: quazip/JlCompress.h Source File

QuaZIP quazip-0-5-1

- Main Page
- Related Pages
- Classes
- Files
- Directories

- File List

JlCompress.h

    00001 #ifndef JLCOMPRESSFOLDER_H_
    00002 #define JLCOMPRESSFOLDER_H_
    00003
    00004 #include "quazip.h"
    00005 #include "quazipfile.h"
    00006 #include "quazipfileinfo.h"
    00007 #include <QString>
    00008 #include <QDir>
    00009 #include <QFileInfo>
    00010 #include <QFile>
    00011
    00013
    00017 class QUAZIP_EXPORT JlCompress {
    00018 private:
    00020
    00026     static bool compressFile(QuaZip* zip, QString fileName, QString fileDest);
    00028
    00037     static bool compressSubDir(QuaZip* parentZip, QString dir, QString parentDir, bool recursive = true);
    00039
    00045     static bool extractFile(QuaZip* zip, QString fileName, QString fileDest);
    00047
    00051     static bool removeFile(QStringList listFile);
    00052
    00053 public:
    00055
    00060     static bool compressFile(QString fileCompressed, QString file);
    00062
    00067     static bool compressFiles(QString fileCompressed, QStringList files);
    00069
    00076     static bool compressDir(QString fileCompressed, QString dir = QString(), bool recursive = true);
    00077
    00078 public:
    00080
    00087     static QString extractFile(QString fileCompressed, QString fileName, QString fileDest = QString());
    00089
    00096     static QStringList extractFiles(QString fileCompressed, QStringList files, QString dir = QString());
    00098
    00104     static QStringList extractDir(QString fileCompressed, QString dir = QString());
    00106
    00111     static QStringList getFileList(QString fileCompressed);
    00112 };
    00113
    00114 #endif /* JLCOMPRESSFOLDER_H_ */