diff -r 000000000000 -r c6b0df440bee dbgsrv/coredumpserver/interface/common/streamelement.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dbgsrv/coredumpserver/interface/common/streamelement.h Tue Mar 02 10:33:16 2010 +0530 @@ -0,0 +1,65 @@ +// Copyright (c) 2007-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: +// + + +#ifndef STREAMELEMENT_H +#define STREAMELEMENT_H + +#include +#include + +#include +#include + +/** +@internalTechnology +@released + +Pure virtual base class for streamable classes. +Used when a class must be passed accross a client server interface +*/ +class CStreamElementBase : public CBase +{ + +public: + + virtual ~CStreamElementBase() + { + } + + /** + Creates HBufC8 with a representation of ’this’ object + */ + IMPORT_C HBufC8* MarshalDataL(); + + + TInt static MaxSize() + { + return 0; + } + + virtual TInt Size() const = 0; + + // Initializes ’this’ from stream + virtual void InternalizeL( RReadStream & aStream ) = 0; + + // Writes ’this’ to the stream + virtual void ExternalizeL( RWriteStream & aStream, CBufFlat* buf ) = 0; + + TUint32 iSpare1; + TUint32 iSpare2; +}; + +#endif // STREAMELEMENT_H