|
Scribus Epub Export Plugin
|
Extend the Zip class and allow zipping strings instead of files. More...
#include <epubexportZip.h>


Public Member Functions | |
| void | addString (const QString &path, QString &content, CompressionLevel level) |
| void | addByteArray (const QString &path, QByteArray &content, CompressionLevel level) |
Extend the Zip class and allow zipping strings instead of files.
Extends the OSDaB (http://osdab.42cows.org/) Zip class and allow zipping of character streams.
Currently, temporary files are used, but the goal is to allow real in memory zipping.
This class is used by EpubExportEpubfile to add the files to the Epub file.
| void EpubExportZip::addByteArray | ( | const QString & | path, |
| QByteArray & | content, | ||
| CompressionLevel | level | ||
| ) |
| level | if you don't set a level, maximum compression will be level: you will probably only want to set it, if you don't want any compression (Zip::Store). |
| path | The path inside of the zip file |
| content | The stream of characters to be stored as a file |
| void EpubExportZip::addString | ( | const QString & | path, |
| QString & | content, | ||
| CompressionLevel | level | ||
| ) |
| level | Zip::Deflate1 (minimum compression) .. Zip::Deflate9 (maximum compression); Zip::Store (no compression) |
| path | The path inside of the zip file |
| content | The stream of characters to be stored as a file |
1.8.11