backupandrestore/backupengine/inc/sbexternalisablearray.h
changeset 0 d0791faffa3f
equal deleted inserted replaced
-1:000000000000 0:d0791faffa3f
       
     1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // Templated RArray for serialising and deserialising simple (flat) classes
       
    15 // for transmission inside descriptors over IPC
       
    16 // 
       
    17 //
       
    18 
       
    19 /**
       
    20  @file
       
    21  @publishedPartner
       
    22  @released
       
    23 */
       
    24 
       
    25 #ifndef __SBEXTERNALISABLEARRAY_H__
       
    26 #define __SBEXTERNALISABLEARRAY_H__
       
    27 
       
    28 #include <e32std.h>
       
    29 #include <e32base.h>
       
    30 
       
    31 namespace conn
       
    32 	{
       
    33 	template<class T>
       
    34 	class RExternalisableArray : public RArray<T>
       
    35 	/**
       
    36 	Template inheriting from RArray, providing functionality to externalise and then internalise 
       
    37 	an RArray of flat (i.e. without pointers) objects into a descriptor for passing over IPC
       
    38 	
       
    39 	@publishedPartner
       
    40 	@released
       
    41 	*/
       
    42 		{
       
    43 	public:
       
    44 		inline static RExternalisableArray<T>* InternaliseL(const TDesC8& aExternalisedArray);
       
    45 		inline HBufC8* ExternaliseL();
       
    46 		};
       
    47 	}
       
    48 	
       
    49 #include <connect/sbexternalisablearray.inl>
       
    50 #endif //__SBEXTERNALISABLEARRAY_H__