Scribus
Open source desktop publishing at your fingertips
scribus_zip.h
1 /*
2 For general Scribus (>=1.3.2) copyright and licensing information please refer
3 to the COPYING file provided with the program. Following this notice may exist
4 a copyright and/or license notice that predates the release of Scribus 1.3.2
5 for which a new license (GPL+exception) is in place.
6 */
7 /***************************************************************************
8 * *
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
13 * *
14 ***************************************************************************/
15 /***************************************************************************
16  -------------------
17  begin : Sat Nov 23 2013
18  copyright : (C) 2013 by Franz Schmid
19  email : Franz.Schmid@altmuehlnet.de
20  ***************************************************************************/
21 #ifndef SCZIPHANDLER_H
22 #define SCZIPHANDLER_H
23 
24 #include <QtCore>
25 class Zip;
26 class UnZip;
27 
29 {
30  public:
31  ScZipHandler(bool forWrite = false);
32  virtual ~ScZipHandler();
33  bool open(QString fileName);
34  bool close();
35  bool contains(QString fileName);
36  bool read(QString fileName, QByteArray &buf);
37  bool write(QString dirName);
38  bool extract(QString name, QString path);
39  QStringList files();
40  private:
41  UnZip* m_uz;
42  Zip* m_zi;
43 };
44 
45 #endif
Zip file compression.
Definition: zip.h:49
Definition: scribus_zip.h:28
PKZip 2.0 file decompression. Compatibility with later versions is not ensured as they may use unsupp...
Definition: unzip.h:50