contentmgmt/referencedrmagent/RefTestAgent/localsdp/inc/sdpcodectemplate.h
changeset 72 de46a57f75fb
child 102 deec7e509f66
equal deleted inserted replaced
65:970c0057d9bc 72:de46a57f75fb
       
     1 /*
       
     2 * Copyright (c) 2010 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 * Name          : SdpCodecTemplate.h
       
    16 * Part of       : Local SDP Codec
       
    17 * Interface     : -
       
    18 * Version       : 1.0
       
    19 *
       
    20 */
       
    21 
       
    22 
       
    23 
       
    24 
       
    25 /**
       
    26  @internalComponent
       
    27 */
       
    28 
       
    29 #ifndef SDPCODECTEMPLATE_H
       
    30 #define SDPCODECTEMPLATE_H
       
    31 
       
    32 //  INCLUDES
       
    33 #include <e32base.h>
       
    34 #include <stringpool.h>
       
    35 
       
    36 #include "_sdpdefs.h"
       
    37 #include "e32std.h"
       
    38 #include "stringpool.h"
       
    39 
       
    40 class RReadStream;
       
    41 class RWriteStream;
       
    42 
       
    43 template<class T> class SdpCodecTemplate
       
    44 	{
       
    45     public: 
       
    46 
       
    47 		static void ExternalizeL(const T* aElement, RWriteStream& aWriteStream);
       
    48 		static void ExternalizeArrayL(RPointerArray<T> aArray,RWriteStream& aStream);
       
    49 		static void EncodeArrayL(RPointerArray<T> aArray, RWriteStream& aStream);
       
    50 		static void EncodeL(const T* aElement, RWriteStream& aWriteStream);
       
    51 		static void InternalizeArrayL(RPointerArray<T>& aArray, RReadStream& aStream);
       
    52 		static void 
       
    53 		CloneArrayL(RPointerArray<T>& aArray, RPointerArray<T> aSourceArray);
       
    54 
       
    55 	};
       
    56 
       
    57 #include "SdpCodecTemplate.inl"
       
    58 
       
    59 #endif