28 #include <QStringList>
34 #include "quazip_global.h"
35 #include "quazipfileinfo.h"
40 #define UNZ_OPENERROR -1000
88 MAX_FILE_NAME_LENGTH=256
118 static Qt::CaseSensitivity convertCaseSensitivity(CaseSensitivity);
130 QuaZip(
const QString& zipName);
133 QuaZip(QIODevice *ioDevice);
174 bool open(Mode mode, zlib_filefunc_def *ioApi =NULL);
186 void setFileNameCodec(QTextCodec *fileNameCodec);
191 void setFileNameCodec(
const char *fileNameCodecName);
193 QTextCodec* getFileNameCodec()
const;
197 void setCommentCodec(QTextCodec *commentCodec);
202 void setCommentCodec(
const char *commentCodecName);
204 QTextCodec* getCommentCodec()
const;
211 QString getZipName()
const;
218 void setZipName(
const QString& zipName);
224 QIODevice *getIoDevice()
const;
231 void setIoDevice(QIODevice *ioDevice);
233 Mode getMode()
const;
245 int getZipError()
const;
250 int getEntriesCount()
const;
252 QString getComment()
const;
262 void setComment(
const QString& comment);
267 bool goToFirstFile();
312 bool setCurrentFile(
const QString& fileName, CaseSensitivity cs =csDefault);
314 bool hasCurrentFile()
const;
339 QString getCurrentFileName()
const;
356 unzFile getUnzFile();
362 zipFile getZipFile();
387 void setDataDescriptorWritingEnabled(
bool enabled);
392 bool isDataDescriptorWritingEnabled()
const;
400 QStringList getFileNameList()
const;
408 QList<QuaZipFileInfo> getFileInfoList()
const;