multimediacommsengine/mmceshared/inc/mcecomserializable.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 
       
    21 #ifndef CMCECOMSERIALIZABLE_H
       
    22 #define CMCECOMSERIALIZABLE_H
       
    23 
       
    24 #include <e32std.h>  		
       
    25 #include <s32strm.h>
       
    26 #include "mcedefs.h"
       
    27 #include "mceclientserver.h"
       
    28 #include "mcecomserializationcontext.h"
       
    29 
       
    30 
       
    31 
       
    32 
       
    33 /**
       
    34  * 
       
    35  *
       
    36  * @lib 
       
    37  */
       
    38 class MMceComSerializable
       
    39 	{
       
    40 
       
    41 public:
       
    42 
       
    43     /**
       
    44     * Returns serialization id
       
    45     * @return serialization id
       
    46     */
       
    47     virtual TUint64 SerializationId() const = 0;
       
    48     
       
    49     /**
       
    50     * Internalizes flat data
       
    51     * @param aReadStream read stream
       
    52     */
       
    53     virtual void InternalizeFlatL( RReadStream& aReadStream ) = 0;
       
    54 
       
    55     /**
       
    56     * Externalizes flat data
       
    57     * @param aWriteStream write stream
       
    58     */
       
    59     virtual void ExternalizeFlatL( RWriteStream& aWriteStream ) = 0;
       
    60     
       
    61     /**
       
    62     * Internalizes
       
    63     * @param aSerCtx context for serialization
       
    64     */
       
    65     virtual void InternalizeL( MMceComSerializationContext& aSerCtx ) = 0;
       
    66     
       
    67     /**
       
    68     * Externalizes
       
    69     * @param aSerCtx context for serialization
       
    70     */
       
    71     virtual void ExternalizeL( MMceComSerializationContext& aSerCtx ) = 0;
       
    72     
       
    73     
       
    74 	};
       
    75 
       
    76 
       
    77 #endif // CMCECOMSERIALIZABLE_H