Scribus
Open source desktop publishing at your fingertips
zipglobal.h
1 /****************************************************************************
2 ** Filename: zipglobal.h
3 ** Last updated [dd/mm/yyyy]: 27/03/2011
4 **
5 ** pkzip 2.0 file compression.
6 **
7 ** Some of the code has been inspired by other open source projects,
8 ** (mainly Info-Zip and Gilles Vollant's minizip).
9 ** Compression and decompression actually uses the zlib library.
10 **
11 ** Copyright (C) 2007-2012 Angius Fabrizio. All rights reserved.
12 **
13 ** This file is part of the OSDaB project (http://osdab.42cows.org/).
14 **
15 ** This file may be distributed and/or modified under the terms of the
16 ** GNU General Public License version 2 as published by the Free Software
17 ** Foundation and appearing in the file LICENSE.GPL included in the
18 ** packaging of this file.
19 **
20 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
21 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
22 **
23 ** See the file LICENSE.GPL that came with this software distribution or
24 ** visit http://www.gnu.org/copyleft/gpl.html for GPL licensing information.
25 **
26 **********************************************************************/
27 
28 #ifndef OSDAB_ZIPGLOBAL__H
29 #define OSDAB_ZIPGLOBAL__H
30 
31 #include <QtCore/QDateTime>
32 #include <QtCore/QtGlobal>
33 //#define OSDAB_ZIP_LIB
34 #define OSDAB_ZIP_BUILD_LIB
35 /* If you want to build the OSDaB Zip code as
36  a library, define OSDAB_ZIP_LIB in the library's .pro file and
37  in the libraries using it OR remove the #ifndef OSDAB_ZIP_LIB
38  define below and leave the #else body. Also remember to define
39  OSDAB_ZIP_BUILD_LIB in the library's project).
40 */
41 
42 //#ifndef OSDAB_ZIP_LIB
43 //# define OSDAB_ZIP_EXPORT
44 //#else
45 # if defined(OSDAB_ZIP_BUILD_LIB)
46 # define OSDAB_ZIP_EXPORT Q_DECL_EXPORT
47 # else
48 # define OSDAB_ZIP_EXPORT Q_DECL_IMPORT
49 # endif
50 //#endif
51 
52 #ifdef OSDAB_NAMESPACE
53 #define OSDAB_BEGIN_NAMESPACE(ModuleName) namespace Osdab { namespace ModuleName {
54 #else
55 #define OSDAB_BEGIN_NAMESPACE(ModuleName)
56 #endif
57 
58 #ifdef OSDAB_NAMESPACE
59 #define OSDAB_END_NAMESPACE } }
60 #else
61 #define OSDAB_END_NAMESPACE
62 #endif
63 
64 #ifndef OSDAB_NAMESPACE
65 #define OSDAB_ZIP_MANGLE(x) zip_##x
66 #else
67 #define OSDAB_ZIP_MANGLE(x) x
68 #endif
69 
70 OSDAB_BEGIN_NAMESPACE(Zip)
71 
72 /*OSDAB_ZIP_EXPORT*/ int OSDAB_ZIP_MANGLE(currentUtcOffset)();
73 /*OSDAB_ZIP_EXPORT*/ QDateTime OSDAB_ZIP_MANGLE(fromFileTimestamp)(const QDateTime& dateTime);
74 /*OSDAB_ZIP_EXPORT*/ bool OSDAB_ZIP_MANGLE(setFileTimestamp)(const QString& fileName, const QDateTime& dateTime);
75 
76 OSDAB_END_NAMESPACE
77 
78 #endif // OSDAB_ZIPGLOBAL__H
Zip file compression.
Definition: zip.h:49