111Q_DECLARE_OPERATORS_FOR_FLAGS(Zip::CompressionOptions)
void setPassword(const QString &pwd)
ErrorCode createArchive(const QString &file, bool overwrite=true)
@ IgnorePaths
Do not store paths. All the files are put in the (evtl. user defined) root of the zip file.
@ AbsolutePaths
Preserve absolute paths.
@ RelativePaths
Does not preserve absolute paths in the zip file when adding a file/directory (default)
void clearPassword()
Convenience method, clears the current password.
ErrorCode addDirectory(const QString &path, CompressionOptions options=RelativePaths, CompressionLevel level=AutoFull)
QString password() const
Returns the currently used password.
QString formatError(ErrorCode c) const
void setArchiveComment(const QString &comment)
ErrorCode addDirectoryContents(const QString &path, CompressionLevel level=AutoFull)
QString archiveComment() const