51 class QZipWriterPrivate;
56 explicit QZipWriter(
const QString &fileName, QIODevice::OpenMode mode = (QIODevice::WriteOnly | QIODevice::Truncate) );
61 QIODevice* device()
const;
63 bool isWritable()
const;
74 Status status()
const;
76 enum CompressionPolicy {
82 void setCompressionPolicy(CompressionPolicy policy);
83 CompressionPolicy compressionPolicy()
const;
85 void setCreationPermissions(QFile::Permissions permissions);
86 QFile::Permissions creationPermissions()
const;
88 void addFile(
const QString &fileName,
const QByteArray &data);
90 void addFile(
const QString &fileName, QIODevice *device);
92 void addDirectory(
const QString &dirName);
94 void addSymLink(
const QString &fileName,
const QString &destination);
105 #endif // QZIPWRITER_H