williamr@2: // Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies). williamr@2: // All rights reserved. williamr@2: // This component and the accompanying materials are made available williamr@4: // under the terms of "Eclipse Public License v1.0" williamr@2: // which accompanies this distribution, and is available williamr@4: // at the URL "http://www.eclipse.org/legal/epl-v10.html". williamr@2: // williamr@2: // Initial Contributors: williamr@2: // Nokia Corporation - initial contribution. williamr@2: // williamr@2: // Contributors: williamr@2: // williamr@2: // Description: williamr@2: // Defines Mixin class for a BufferManager williamr@2: // williamr@2: // williamr@2: williamr@2: #ifndef __EZBUFFERMANAGER_H__ williamr@2: #define __EZBUFFERMANAGER_H__ williamr@2: williamr@2: class CEZZStream; williamr@2: williamr@2: /** williamr@2: Interface class to manage input and output buffers for compression and de-compression williamr@2: williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: class MEZBufferManager williamr@2: { williamr@2: public: williamr@2: williamr@2: /** williamr@2: Initialise the stream with input and output buffers and starts reading williamr@2: williamr@2: @param aZStream the stream to initialise williamr@2: */ williamr@2: virtual void InitializeL(CEZZStream &aZStream) = 0; williamr@2: williamr@2: /** williamr@2: Set the stream's input buffer and starts reading williamr@2: williamr@2: @param aZStream the steam whose input buffer to set williamr@2: */ williamr@2: virtual void NeedInputL(CEZZStream &aZStream) = 0; williamr@2: williamr@2: /** williamr@2: Set the stream's output buffer and start writing williamr@2: williamr@2: @param aZStream the steam whose output buffer to set williamr@2: */ williamr@2: virtual void NeedOutputL(CEZZStream &aZStream) = 0; williamr@2: williamr@2: /** williamr@2: Finish writing to the stream williamr@2: williamr@2: @param aZStream the stream to complete writing to williamr@2: */ williamr@2: virtual void FinalizeL(CEZZStream &aZStream) = 0; williamr@2: }; williamr@2: williamr@2: #endif williamr@4: