diff -r 666f914201fb -r 2fe1408b6811 epoc32/include/ezliberrorcodes.h --- a/epoc32/include/ezliberrorcodes.h Tue Nov 24 13:55:44 2009 +0000 +++ b/epoc32/include/ezliberrorcodes.h Tue Mar 16 16:12:26 2010 +0000 @@ -1,1 +1,64 @@ -ezliberrorcodes.h +// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members +// which accompanies this distribution, and is available +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// All the error codes returned by the Symbian OS wrapper over the zlib +// library in EZLib component are defined here. +// +// + + + +/** + @file + @publishedAll + @released +*/ + +#ifndef __EZLIBERRORCODES_H__ +#define __EZLIBERRORCODES_H__ + +//////////////////////////////////////////////////////////// +// Error codes returned from the CEZDecompressor and CEZCompressor classes +//////////////////////////////////////////////////////////// +/** The Z_STREAM_ERROR zlib error code has been returned by an internal method + due to a stream error. */ +const TInt KEZlibErrStream = -11501; +/** The Z_DATA_ERROR zlib error code has been returned by an internal method + due to a data error. */ +const TInt KEZlibErrData = -11502; +/** The Z_BUF_ERROR zlib error code has been returned by an internal method + due to a buffer error. */ +const TInt KEZlibErrBuf = -11503; +/** The Z_VERSION_ERROR zlib error code has been returned by an internal method + due to a version error. */ +const TInt KEZlibErrVersion = -11504; +/** Unexpected ezlib error. */ +const TInt KEZlibErrUnexpected = -11505; +/** Returned by ::DeflateL() if deflation has already occured. */ +const TInt KEZlibErrDeflateTerminated = -11506; +/** Returned by ::InflateL() if inflation has already occured. */ +const TInt KEZlibErrInflateTerminated = -11507; +/** An error has occured inflating the dictionary. */ +const TInt KEZlibErrInflateDictionary = -11508; + +//////////////////////////////////////////////////////////// +// Error codes returned from GZip classes (eg EZGZipFile and CEZGZipToFile) +//////////////////////////////////////////////////////////// +const TInt KEZlibErrNotGZipFile = -11509; +const TInt KEZlibErrInvalidCompression = -11510; +const TInt KEZlibErrBadGZipHeader = -11511; +const TInt KEZlibErrBadGZipTrailer = -11512; +const TInt KEZlibErrBadGZipCrc = -11513; + + +#endif // __EZLIBERRORCODES_H__