First public contribution.
     1 // Copyright (c) 1999-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.
 
    15 // Defines Mixin class for a BufferManager
 
    19 #ifndef __EZLIB_EZBUFFERMANAGER_H__
 
    20 #define __EZLIB_EZBUFFERMANAGER_H__
 
    22 #include "OldEZstream.h"
 
    24 class TOLDEZLIB::CEZZStream;
 
    28 Interface class to manage input and output buffers for compression and de-compression
 
    35 class MEZBufferManager
 
    40 	Initialise the stream with input and output buffers and starts reading
 
    42 	@param aZStream the stream to initialise
 
    44 	virtual void InitializeL(CEZZStream &aZStream) = 0;
 
    47 	Set the stream's input buffer and starts reading
 
    49 	@param aZStream the steam whose input buffer to set
 
    51 	virtual void NeedInputL(CEZZStream &aZStream) = 0;
 
    54 	Set the stream's output buffer and start writing
 
    56 	@param aZStream the steam whose output buffer to set
 
    58 	virtual void NeedOutputL(CEZZStream &aZStream) = 0;
 
    61 	Finish writing to the stream
 
    63 	@param aZStream the stream to complete writing to
 
    65 	virtual void FinalizeL(CEZZStream &aZStream) = 0;