Cockatrice
2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Toggle main menu visibility
Loading...
Searching...
No Matches
zipglobal.h
Go to the documentation of this file.
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
34
/* If you want to build the OSDaB Zip code as
35
a library, define OSDAB_ZIP_LIB in the library's .pro file and
36
in the libraries using it OR remove the #ifndef OSDAB_ZIP_LIB
37
define below and leave the #else body. Also remember to define
38
OSDAB_ZIP_BUILD_LIB in the library's project).
39
*/
40
41
#ifndef OSDAB_ZIP_LIB
42
# define OSDAB_ZIP_EXPORT
43
#else
44
# if defined(OSDAB_ZIP_BUILD_LIB)
45
# define OSDAB_ZIP_EXPORT Q_DECL_EXPORT
46
# else
47
# define OSDAB_ZIP_EXPORT Q_DECL_IMPORT
48
# endif
49
#endif
50
51
#ifdef OSDAB_NAMESPACE
52
#define OSDAB_BEGIN_NAMESPACE(ModuleName) namespace Osdab { namespace ModuleName {
53
#else
54
#define OSDAB_BEGIN_NAMESPACE(ModuleName)
55
#endif
56
57
#ifdef OSDAB_NAMESPACE
58
#define OSDAB_END_NAMESPACE } }
59
#else
60
#define OSDAB_END_NAMESPACE
61
#endif
62
63
#ifndef OSDAB_NAMESPACE
64
#define OSDAB_ZIP_MANGLE(x) zip_##x
65
#else
66
#define OSDAB_ZIP_MANGLE(x) x
67
#endif
68
69
OSDAB_BEGIN_NAMESPACE
(
Zip
)
70
71
OSDAB_ZIP_EXPORT
int
OSDAB_ZIP_MANGLE
(
currentUtcOffset
)();
72
OSDAB_ZIP_EXPORT
QDateTime
OSDAB_ZIP_MANGLE
(
fromFileTimestamp
)(
const
QDateTime& dateTime);
73
OSDAB_ZIP_EXPORT
bool
OSDAB_ZIP_MANGLE
(
setFileTimestamp
)(
const
QString& fileName,
const
QDateTime& dateTime);
74
75
OSDAB_END_NAMESPACE
76
77
#endif
// OSDAB_ZIPGLOBAL__H
Zip
Zip file compression.
Definition
zip.h:49
setFileTimestamp
bool OSDAB_ZIP_MANGLE setFileTimestamp(const QString &fileName, const QDateTime &dateTime)
Definition
zipglobal.cpp:110
currentUtcOffset
int OSDAB_ZIP_MANGLE currentUtcOffset()
Definition
zipglobal.cpp:48
fromFileTimestamp
QDateTime OSDAB_ZIP_MANGLE fromFileTimestamp(const QDateTime &dateTime)
Definition
zipglobal.cpp:100
OSDAB_ZIP_MANGLE
#define OSDAB_ZIP_MANGLE(x)
Definition
zipglobal.h:64
OSDAB_ZIP_EXPORT
#define OSDAB_ZIP_EXPORT
Definition
zipglobal.h:42
OSDAB_END_NAMESPACE
#define OSDAB_END_NAMESPACE
Definition
zipglobal.h:60
OSDAB_BEGIN_NAMESPACE
#define OSDAB_BEGIN_NAMESPACE(ModuleName)
Definition
zipglobal.h:54
oracle
src
zip
zipglobal.h
Generated by
1.18.0