diff -r 000000000000 -r e6b17d312c8b imservices/instantmessagingcache/imcacheserver/inc/cimcachebufferarray.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/imservices/instantmessagingcache/imcacheserver/inc/cimcachebufferarray.h Thu Dec 17 08:54:49 2009 +0200 @@ -0,0 +1,92 @@ +/* +* Copyright (c) 2008 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: a message class declaration +* +*/ + + +#ifndef CIMIMCACHEBUFFERARRAY_H +#define CIMIMCACHEBUFFERARRAY_H + +#include +#include +#include + +// FORWARD CLASS DECLERATIONS +// CLASS DECLARATION +// Definitions + +/** + * Message Base class + */ +class CIMCacheBufferArray : public CBase + { + + public: // Construction + + + /** + * Construction + * @param aData, text message + * @return Pointer to new created instance of CIMCacheBufferArray + */ + static CIMCacheBufferArray* NewL( const TDesC8& aPacketBuffer ,TIMCacheOperationsCode aOperationCode ); + + + /** + * Destruction + */ + ~CIMCacheBufferArray(); + + private : // Construction + + /** + * Constructor + */ + CIMCacheBufferArray( TIMCacheOperationsCode aOperationCode ); + + /** + * two phase construction + */ + void ConstructL( const TDesC8& aPacketBuffer ); + +public: + + + /** + * operatuin code stored + * @return operation code + */ + TIMCacheOperationsCode OperationCode(); + + /** + * Message + * @return message + */ + const TDesC8& PacketData(); + + + protected: // Member variables + + // owned, message buffer + HBufC8* iPacketBuffer; + + // owns : to identify type of message packed + TIMCacheOperationsCode iOperationCode; + + }; + +#endif // CIMIMCACHEMESSAGEBASE_H + +// End of File