diff -r 000000000000 -r 5e5d6b214f4f imstutils/imconversationview/imcvuiengine/inc/cimcvenginetextmessage.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/imstutils/imconversationview/imcvuiengine/inc/cimcvenginetextmessage.h Tue Feb 02 10:12:18 2010 +0200 @@ -0,0 +1,102 @@ +/* +* Copyright (c) 2007-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: text message +* +*/ + + +#ifndef CIMCVENGINETEXTMESSAGE_H +#define CIMCVENGINETEXTMESSAGE_H + +#include +#include "cimcvenginemessagebase.h" + +// CLASS DECLARATION + +/** + * Message containing text + * + * @lib imcvengine.dll + * @since 5.0 + */ +class CIMCVEngineTextMessage : public CIMCVEngineMessageBase + { + + public: // Construction + + /** + * Construction + * @param aSender, sender user id + * @param aRecipient, recipient id + * @param aData, text message + * @return Pointer to new created instance of CIMCVEngineTextMessage + */ + static CIMCVEngineTextMessage* NewL( + const TDesC& aSender, + const TDesC& aRecipient, + const TDesC& aData ); + + + /** + * two phase construction + * @param aSender, sender user id + * @param aRecipient, recipient id + * @param aData, text message + * @return Pointer to new created instance of CIMCVEngineTextMessage + */ + static CIMCVEngineTextMessage* NewLC( + const TDesC& aSender, + const TDesC& aRecipient, + const TDesC& aData ); + + /** + * Destruction + */ + ~CIMCVEngineTextMessage(); + + public : + + void SetFailedL(); + + private: // Construction + + /** + * Constructor + */ + CIMCVEngineTextMessage(); + + /** + * Constructor + * @param aData, text message + */ + void ConstructL( const TDesC& aData ); + + private: // From MIMCVEngineMessage + + /** + * @see MIMCVEngineMessage + */ + TInt SizeInBytes() const; + + /** + * @see MIMCVEngineMessage + */ + TContentType ContentType() const; + + + }; + +#endif // CIMCVENGINETEXTMESSAGE_H + +// End of File