diff -r 000000000000 -r d0791faffa3f backupandrestore/backupengine/inc/sbexternalisablearray.h --- /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 +#include + +namespace conn + { + template + class RExternalisableArray : public RArray + /** + 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* InternaliseL(const TDesC8& aExternalisedArray); + inline HBufC8* ExternaliseL(); + }; + } + +#include +#endif //__SBEXTERNALISABLEARRAY_H__