contentmgmt/referencedrmagent/RefTestAgent/localsdp/inc/sdpcodectemplate.h
changeset 66 8873e6835f7b
child 102 deec7e509f66
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/contentmgmt/referencedrmagent/RefTestAgent/localsdp/inc/sdpcodectemplate.h	Thu May 27 14:32:46 2010 +0300
@@ -0,0 +1,59 @@
+/*
+* Copyright (c) 2010 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:
+* Name          : SdpCodecTemplate.h
+* Part of       : Local SDP Codec
+* Interface     : -
+* Version       : 1.0
+*
+*/
+
+
+
+
+/**
+ @internalComponent
+*/
+
+#ifndef SDPCODECTEMPLATE_H
+#define SDPCODECTEMPLATE_H
+
+//  INCLUDES
+#include <e32base.h>
+#include <stringpool.h>
+
+#include "_sdpdefs.h"
+#include "e32std.h"
+#include "stringpool.h"
+
+class RReadStream;
+class RWriteStream;
+
+template<class T> class SdpCodecTemplate
+	{
+    public: 
+
+		static void ExternalizeL(const T* aElement, RWriteStream& aWriteStream);
+		static void ExternalizeArrayL(RPointerArray<T> aArray,RWriteStream& aStream);
+		static void EncodeArrayL(RPointerArray<T> aArray, RWriteStream& aStream);
+		static void EncodeL(const T* aElement, RWriteStream& aWriteStream);
+		static void InternalizeArrayL(RPointerArray<T>& aArray, RReadStream& aStream);
+		static void 
+		CloneArrayL(RPointerArray<T>& aArray, RPointerArray<T> aSourceArray);
+
+	};
+
+#include "SdpCodecTemplate.inl"
+
+#endif