28 #include <QStringList>
34 #include "quazip_global.h"
35 #include "quazipfileinfo.h"
40 #define UNZ_OPENERROR -1000
88 MAX_FILE_NAME_LENGTH=256
129 QuaZip(
const QString& zipName);
132 QuaZip(QIODevice *ioDevice);
173 bool open(Mode mode, zlib_filefunc_def *ioApi =NULL);
185 void setFileNameCodec(QTextCodec *fileNameCodec);
190 void setFileNameCodec(
const char *fileNameCodecName);
192 QTextCodec* getFileNameCodec()
const;
196 void setCommentCodec(QTextCodec *commentCodec);
201 void setCommentCodec(
const char *commentCodecName);
203 QTextCodec* getCommentCodec()
const;
210 QString getZipName()
const;
217 void setZipName(
const QString& zipName);
223 QIODevice *getIoDevice()
const;
230 void setIoDevice(QIODevice *ioDevice);
232 Mode getMode()
const;
244 int getZipError()
const;
249 int getEntriesCount()
const;
251 QString getComment()
const;
257 void setComment(
const QString& comment);
262 bool goToFirstFile();
307 bool setCurrentFile(
const QString& fileName, CaseSensitivity cs =csDefault);
309 bool hasCurrentFile()
const;
334 QString getCurrentFileName()
const;
351 unzFile getUnzFile();
357 zipFile getZipFile();
382 void setDataDescriptorWritingEnabled(
bool enabled);
387 bool isDataDescriptorWritingEnabled()
const;
395 QStringList getFileNameList()
const;
403 QList<QuaZipFileInfo> getFileInfoList()
const;