diff -r 000000000000 -r 1bce908db942 multimediacommsengine/mmceshared/inc/mcecomserializationcontext.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/multimediacommsengine/mmceshared/inc/mcecomserializationcontext.h Tue Feb 02 01:04:58 2010 +0200 @@ -0,0 +1,76 @@ +/* +* Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + + + +#ifndef MCECOMSERIALIZATIONCONTEXT_H +#define MCECOMSERIALIZATIONCONTEXT_H + +// INCLUDES +#include +#include +#include "mceclientserver.h" + +// CONSTANTS + +// CLASS DECLARATION +class CMceComMediaSink; +class CMceComMediaSource; +class RReadStream; +class RWriteStream; + +/** +* Context used in serialization to cache externalized and internalized sinks and sources +* +* +*/ +class MMceComSerializationContext + { + +public: + + MMceComSerializationContext( RReadStream& aReadStream ); + + MMceComSerializationContext( RWriteStream& aWriteStream ); + + void Close(); + + RReadStream& ReadStream(); + RWriteStream& WriteStream(); + + TBool IsCached( CBase* aItem ); + + RPointerArray& SinkCache(); + RPointerArray& SourceCache(); + + +private://data + + + RPointerArray iSinkCache; + RPointerArray iSourceCache; + + RReadStream* iReadStream; + RWriteStream* iWriteStream; + + + }; + + +#endif //MCECOMSERIALIZATIONCONTEXT_H + +// End of File