multimediacommsengine/mmceshared/inc/mcecomserializationcontext.h
changeset 0 1bce908db942
equal deleted inserted replaced
-1:000000000000 0:1bce908db942
       
     1 /*
       
     2 * Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:    
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef MCECOMSERIALIZATIONCONTEXT_H
       
    21 #define MCECOMSERIALIZATIONCONTEXT_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <e32cmn.h>
       
    25 #include <e32base.h>
       
    26 #include "mceclientserver.h"
       
    27 
       
    28 // CONSTANTS
       
    29 
       
    30 // CLASS DECLARATION
       
    31 class CMceComMediaSink;
       
    32 class CMceComMediaSource;
       
    33 class RReadStream;
       
    34 class RWriteStream;
       
    35 
       
    36 /**
       
    37 * Context used in serialization to cache externalized and internalized sinks and sources
       
    38 *
       
    39 *  
       
    40 */
       
    41 class MMceComSerializationContext 
       
    42     {
       
    43     
       
    44 public:
       
    45 
       
    46     MMceComSerializationContext( RReadStream& aReadStream );
       
    47 
       
    48     MMceComSerializationContext( RWriteStream& aWriteStream );
       
    49     
       
    50     void Close();
       
    51         
       
    52     RReadStream& ReadStream();
       
    53     RWriteStream& WriteStream();
       
    54 
       
    55     TBool IsCached( CBase* aItem );
       
    56     
       
    57     RPointerArray<CBase>& SinkCache();
       
    58     RPointerArray<CBase>& SourceCache();
       
    59 
       
    60     
       
    61 private://data
       
    62     
       
    63     
       
    64     RPointerArray<CBase> iSinkCache;
       
    65     RPointerArray<CBase> iSourceCache;
       
    66     
       
    67     RReadStream* iReadStream;
       
    68     RWriteStream* iWriteStream;
       
    69     
       
    70     
       
    71     };
       
    72 
       
    73 
       
    74 #endif      //MCECOMSERIALIZATIONCONTEXT_H
       
    75 
       
    76 // End of File