imstutils/imconversationview/imcvuiengine/inc/cimcvenginetextmessage.h
branchRCL_3
changeset 22 3104fc151679
parent 21 2b7283837edb
child 23 9a48e301e94b
equal deleted inserted replaced
21:2b7283837edb 22:3104fc151679
     1 /*
       
     2 * Copyright (c) 2007-2008 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  text message
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CIMCVENGINETEXTMESSAGE_H
       
    20 #define CIMCVENGINETEXTMESSAGE_H
       
    21 
       
    22 #include <e32base.h>
       
    23 #include "cimcvenginemessagebase.h"
       
    24 
       
    25 // CLASS DECLARATION
       
    26 
       
    27 /**
       
    28  *  Message containing text
       
    29  *
       
    30  *  @lib imcvengine.dll
       
    31  *  @since 5.0
       
    32  */
       
    33 class CIMCVEngineTextMessage : public CIMCVEngineMessageBase
       
    34 	{
       
    35 	
       
    36     public: // Construction
       
    37 		
       
    38 		/**
       
    39 		 * Construction
       
    40 		 * @param aSender, sender user id
       
    41 		 * @param aRecipient, recipient id
       
    42 		 * @param aData, text message
       
    43 		 * @return Pointer to new created instance of CIMCVEngineTextMessage
       
    44 		 */
       
    45 		static CIMCVEngineTextMessage* NewL( 
       
    46 		                             const TDesC& aSender, 
       
    47 		                             const TDesC& aRecipient, 
       
    48 		                             const TDesC& aData );
       
    49 
       
    50 		
       
    51 		/**
       
    52 		 * two phase construction
       
    53 		 * @param aSender, sender user id
       
    54 		 * @param aRecipient, recipient id
       
    55 		 * @param aData, text message
       
    56 		 * @return Pointer to new created instance of CIMCVEngineTextMessage
       
    57 		 */
       
    58 		static CIMCVEngineTextMessage* NewLC( 
       
    59 		                              const TDesC& aSender, 
       
    60 		                              const TDesC& aRecipient, 
       
    61 		                              const TDesC& aData );
       
    62 
       
    63 		/**
       
    64 		 * Destruction
       
    65 		 */
       
    66 		~CIMCVEngineTextMessage();
       
    67 		
       
    68 	public :
       
    69 	
       
    70 		void SetFailedL();
       
    71 		
       
    72 	private: // Construction
       
    73 	
       
    74 		/**
       
    75 		 * Constructor
       
    76 		 */
       
    77 		CIMCVEngineTextMessage();
       
    78 		
       
    79 		/**
       
    80 		 * Constructor
       
    81 		 * @param aData, text message
       
    82 		 */
       
    83 		void ConstructL( const TDesC& aData );
       
    84 
       
    85 	private: // From MIMCVEngineMessage
       
    86 		
       
    87 		/**
       
    88 		 * @see MIMCVEngineMessage
       
    89 		 */
       
    90 		TInt SizeInBytes() const;
       
    91 
       
    92 		/**
       
    93 		 * @see MIMCVEngineMessage
       
    94 		 */
       
    95 		TContentType ContentType() const;
       
    96 		
       
    97     
       
    98 	}; 
       
    99 
       
   100 #endif      // CIMCVENGINETEXTMESSAGE_H
       
   101 
       
   102 // End of File