|
1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // EZlibErrorCodes.h |
|
15 // All the error codes returned by the Symbian OS wrapper over the zlib |
|
16 // library in EZLib component are defined here. |
|
17 // |
|
18 // |
|
19 |
|
20 /** |
|
21 @file |
|
22 @publishedAll |
|
23 @released |
|
24 */ |
|
25 |
|
26 #ifndef __EZLIB_ERRORCODES_H__ |
|
27 #define __EZLIB_ERRORCODES_H__ |
|
28 |
|
29 namespace TOLDEZLIB |
|
30 { |
|
31 |
|
32 // |
|
33 // Error codes returned from the CEZDecompressor and CEZCompressor classes |
|
34 // |
|
35 /** The Z_STREAM_ERROR zlib error code has been returned by an internal method |
|
36 due to a stream error. */ |
|
37 const TInt KEZlibErrStream = -11501; |
|
38 /** The Z_DATA_ERROR zlib error code has been returned by an internal method |
|
39 due to a data error. */ |
|
40 const TInt KEZlibErrData = -11502; |
|
41 /** The Z_BUF_ERROR zlib error code has been returned by an internal method |
|
42 due to a buffer error. */ |
|
43 const TInt KEZlibErrBuf = -11503; |
|
44 /** The Z_VERSION_ERROR zlib error code has been returned by an internal method |
|
45 due to a version error. */ |
|
46 const TInt KEZlibErrVersion = -11504; |
|
47 /** Unexpected ezlib error. */ |
|
48 const TInt KEZlibErrUnexpected = -11505; |
|
49 /** Returned by ::DeflateL() if deflation has already occured. */ |
|
50 const TInt KEZlibErrDeflateTerminated = -11506; |
|
51 /** Returned by ::InflateL() if inflation has already occured. */ |
|
52 const TInt KEZlibErrInflateTerminated = -11507; |
|
53 /** An error has occured inflating the dictionary. */ |
|
54 const TInt KEZlibErrInflateDictionary = -11508; |
|
55 |
|
56 // |
|
57 // Error codes returned from GZip classes (eg EZGZipFile and CEZGZipToFile) |
|
58 // |
|
59 const TInt KEZlibErrNotGZipFile = -11509; |
|
60 const TInt KEZlibErrInvalidCompression = -11510; |
|
61 const TInt KEZlibErrBadGZipHeader = -11511; |
|
62 const TInt KEZlibErrBadGZipTrailer = -11512; |
|
63 const TInt KEZlibErrBadGZipCrc = -11513; |
|
64 |
|
65 }//namespace TOLDEZLIB |
|
66 #endif // __EZLIBERRORCODES_H__ |