1 // Copyright (c) 2007-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 the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
17 #ifndef STREAMELEMENT_H
18 #define STREAMELEMENT_H
23 #include <rm_debug_api.h>
24 #include <debuglogging.h>
30 Pure virtual base class for streamable classes.
31 Used when a class must be passed accross a client server interface
33 class CStreamElementBase : public CBase
38 virtual ~CStreamElementBase()
43 Creates HBufC8 with a representation of ’this’ object
45 IMPORT_C HBufC8* MarshalDataL();
53 virtual TInt Size() const = 0;
55 // Initializes ’this’ from stream
56 virtual void InternalizeL( RReadStream & aStream ) = 0;
58 // Writes ’this’ to the stream
59 virtual void ExternalizeL( RWriteStream & aStream, CBufFlat* buf ) = 0;
65 #endif // STREAMELEMENT_H