backupandrestore/backupengine/inc/sbexternalisablearray.h
changeset 0 d0791faffa3f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/backupandrestore/backupengine/inc/sbexternalisablearray.h	Tue Feb 02 01:11:40 2010 +0200
@@ -0,0 +1,50 @@
+// Copyright (c) 2004-2009 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:
+// Templated RArray for serialising and deserialising simple (flat) classes
+// for transmission inside descriptors over IPC
+// 
+//
+
+/**
+ @file
+ @publishedPartner
+ @released
+*/
+
+#ifndef __SBEXTERNALISABLEARRAY_H__
+#define __SBEXTERNALISABLEARRAY_H__
+
+#include <e32std.h>
+#include <e32base.h>
+
+namespace conn
+	{
+	template<class T>
+	class RExternalisableArray : public RArray<T>
+	/**
+	Template inheriting from RArray, providing functionality to externalise and then internalise 
+	an RArray of flat (i.e. without pointers) objects into a descriptor for passing over IPC
+	
+	@publishedPartner
+	@released
+	*/
+		{
+	public:
+		inline static RExternalisableArray<T>* InternaliseL(const TDesC8& aExternalisedArray);
+		inline HBufC8* ExternaliseL();
+		};
+	}
+	
+#include <connect/sbexternalisablearray.inl>
+#endif //__SBEXTERNALISABLEARRAY_H__