~ubuntu-branches/ubuntu/quantal/poco/quantal

« back to all changes in this revision

Viewing changes to Zip/include/Poco/Zip/ZipCommon.h

  • Committer: Bazaar Package Importer
  • Author(s): Krzysztof Burghardt
  • Date: 2008-11-15 11:39:15 UTC
  • mfrom: (3.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20081115113915-7kauhm2c3m2i7oid
Tags: 1.3.3p1-2
* Fixed FTBFS with GCC 4.4 due to missing #include (Closes: #505619)
* Renamed 20_gcc43-missing-include.dpatch to 20_gcc44-missing-include.dpatch
* Downgraded dependencies on -dbg packages (Closes: #504342)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//
 
2
// ZipCommon.h
 
3
//
 
4
// $Id: //poco/1.3/Zip/include/Poco/Zip/ZipCommon.h#3 $
 
5
//
 
6
// Library: Zip
 
7
// Package: Zip
 
8
// Module:  ZipCommon
 
9
//
 
10
// Definition of the ZipCommon class.
 
11
//
 
12
// Copyright (c) 2007, Applied Informatics Software Engineering GmbH.
 
13
// and Contributors.
 
14
//
 
15
// Permission is hereby granted, free of charge, to any person or organization
 
16
// obtaining a copy of the software and accompanying documentation covered by
 
17
// this license (the "Software") to use, reproduce, display, distribute,
 
18
// execute, and transmit the Software, and to prepare derivative works of the
 
19
// Software, and to permit third-parties to whom the Software is furnished to
 
20
// do so, all subject to the following:
 
21
// 
 
22
// The copyright notices in the Software and this entire statement, including
 
23
// the above license grant, this restriction and the following disclaimer,
 
24
// must be included in all copies of the Software, in whole or in part, and
 
25
// all derivative works of the Software, unless such copies or derivative
 
26
// works are solely in the form of machine-executable object code generated by
 
27
// a source language processor.
 
28
// 
 
29
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 
30
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 
31
// FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
 
32
// SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
 
33
// FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
 
34
// ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
 
35
// DEALINGS IN THE SOFTWARE.
 
36
//
 
37
 
 
38
 
 
39
#ifndef Zip_ZipCommon_INCLUDED
 
40
#define Zip_ZipCommon_INCLUDED
 
41
 
 
42
 
 
43
#include "Poco/Zip/Zip.h"
 
44
 
 
45
 
 
46
namespace Poco {
 
47
namespace Zip {
 
48
 
 
49
 
 
50
class Zip_API ZipCommon
 
51
        /// Common enums used in the Zip project
 
52
{
 
53
public:
 
54
        enum
 
55
        {
 
56
                HEADER_SIZE = 4
 
57
        };
 
58
 
 
59
        enum CompressionMethod
 
60
        {
 
61
                CM_STORE   = 0,
 
62
                CM_SHRUNK  = 1,
 
63
                CM_FACTOR1 = 2,
 
64
                CM_FACTOR2 = 3,
 
65
                CM_FACTOR3 = 4,
 
66
                CM_FACTOR4 = 5,
 
67
                CM_IMPLODE = 6,
 
68
                CM_TOKENIZE= 7,
 
69
                CM_DEFLATE = 8,
 
70
                CM_ENHANCEDDEFLATE = 9,
 
71
                CM_DATECOMPRIMPLODING = 10,
 
72
                CM_UNUSED = 11
 
73
        };
 
74
 
 
75
        enum CompressionLevel
 
76
        {
 
77
                CL_NORMAL    = 0,
 
78
                CL_MAXIMUM   = 1,
 
79
                CL_FAST      = 2,
 
80
                CL_SUPERFAST = 3
 
81
        };
 
82
 
 
83
        enum HostSystem
 
84
        {
 
85
                HS_FAT = 0,  // + PKZIPW 2.50 VFAT, NTFS
 
86
                HS_AMIGA = 1,
 
87
                HS_VMS = 2,
 
88
                HS_UNIX = 3,
 
89
                HS_VM_CMS = 4,
 
90
                HS_ATARI = 5,
 
91
                HS_HPFS = 6,
 
92
                HS_MACINTOSH = 7,
 
93
                HS_ZSYSTEM = 8,
 
94
                HS_CP_M = 9,
 
95
                HS_TOPS20 = 10, // used by pkzip2.5 to indicate ntfs
 
96
                HS_NTFS = 11,
 
97
                HS_SMS_QDOS = 12,
 
98
                HS_ACORN = 13,
 
99
                HS_VFAT = 14,
 
100
                HS_MVS = 15,
 
101
                HS_BEOS = 16,
 
102
                HS_TANDEM = 17,
 
103
                HS_UNUSED = 18,
 
104
        };
 
105
 
 
106
        enum FileType
 
107
        {
 
108
                FT_BINARY= 0,
 
109
                FT_ASCII = 1
 
110
        };
 
111
 
 
112
        static const std::string ILLEGAL_PATH;
 
113
};
 
114
 
 
115
 
 
116
} } // namespace Poco::Zip
 
117
 
 
118
 
 
119
#endif // Zip_ZipCommon_INCLUDED