Scribus Epub Export Plugin
Public Member Functions | List of all members
EpubExportZip Class Reference

Extend the Zip class and allow zipping strings instead of files. More...

#include <epubexportZip.h>

Inheritance diagram for EpubExportZip:
Inheritance graph
[legend]
Collaboration diagram for EpubExportZip:
Collaboration graph
[legend]

Public Member Functions

void addString (const QString &path, QString &content, CompressionLevel level)
 
void addByteArray (const QString &path, QByteArray &content, CompressionLevel level)
 

Detailed Description

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.

Member Function Documentation

void EpubExportZip::addByteArray ( const QString &  path,
QByteArray &  content,
CompressionLevel  level 
)
Parameters
levelif 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).
pathThe path inside of the zip file
contentThe stream of characters to be stored as a file
Todo:
:
  • shouldn't the temporary file be deleted?
void EpubExportZip::addString ( const QString &  path,
QString &  content,
CompressionLevel  level 
)
Parameters
levelZip::Deflate1 (minimum compression) .. Zip::Deflate9 (maximum compression); Zip::Store (no compression)
pathThe path inside of the zip file
contentThe stream of characters to be stored as a file
Todo:
:
  • shouldn't the temporary file be deleted?

The documentation for this class was generated from the following files: