misc/quazip/JlCompress.h
author koda
Fri, 06 Jan 2012 01:51:04 +0100
changeset 6551 a2f39cb9af62
parent 5752 ea95ee97c805
permissions -rw-r--r--
fix a couple of loose ends: sdl_mixer is informed of that OGG is provided by Tremor with its own macro, there is no more a segfault on Tremor cleanup, added new event type and timestamp entry for SDL, removed spurious characters from the japanese translation, uSound errors now are output with SDLTry, uSound doesn't need sound preloading any more
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5752
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
     1
#ifndef JLCOMPRESSFOLDER_H_
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
     2
#define JLCOMPRESSFOLDER_H_
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
     3
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
     4
#include "quazip.h"
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
     5
#include "quazipfile.h"
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
     6
#include "quazipfileinfo.h"
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
     7
#include <QString>
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
     8
#include <QDir>
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
     9
#include <QFileInfo>
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    10
#include <QFile>
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    11
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    12
class QUAZIP_EXPORT JlCompress {
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    13
private:
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    14
    static bool compressFile(QuaZip* zip, QString fileName, QString fileDest);
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    15
    static bool compressSubDir(QuaZip* parentZip, QString dir, QString parentDir, bool recursive = true);
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    16
    static bool extractFile(QuaZip* zip, QString fileName, QString fileDest);
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    17
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    18
    static bool removeFile(QStringList listFile);
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    19
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    20
public:
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    21
    static bool compressFile(QString fileCompressed, QString file);
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    22
    static bool compressFiles(QString fileCompressed, QStringList files);
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    23
    static bool compressDir(QString fileCompressed, QString dir = QString(), bool recursive = true);
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    24
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    25
public:
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    26
    static QString extractFile(QString fileCompressed, QString file, QString fileDest = QString());
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    27
    static QStringList extractFiles(QString fileCompressed, QStringList files, QString dir = QString());
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    28
    static QStringList extractDir(QString fileCompressed, QString dir = QString());
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    29
    static QStringList getFileList(QString fileCompressed);
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    30
};
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    31
ea95ee97c805 Add QuaZIP library to build system
unc0rr
parents:
diff changeset
    32
#endif /* JLCOMPRESSFOLDER_H_ */