Update contrib.
1 // Copyright (c) 2003-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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
21 //-----------------------------------------------------------------------------
27 //-----------------------------------------------------------------------------
31 //-----------------------------------------------------------------------------
32 class GZipBufMgr : public MEZBufferManager
35 // Constructor and Destructor
36 static GZipBufMgr* NewL(TPtrC8 in);
37 virtual ~GZipBufMgr();
39 // Overridden virtual methods from MEZBufferManager
40 void InitializeL(CEZZStream &aZStream);
41 void NeedInputL(CEZZStream &aZStream);
42 void NeedOutputL(CEZZStream &aZStream);
43 void FinalizeL(CEZZStream &aZStream);
46 void ReadGZipHeaderL(TEZGZipHeader& aHeader);
47 void ReadStringIntoDescriptorL(RMemReadStream& aMem, HBufC8 **aDes) const;
48 void SetGZipBuffer(TPtrC8 data);
52 GZipBufMgr(TPtrC8 in);
54 // Always points to start of the input Buffer
57 // Always points to start of the output Buffer
61 // Used by the virtual methods from MEZBufferManager
66 // Marks the start of the data, after the header
74 #endif // GZIPBUFMGR_H