imstutils/imconversationview/imcvuiengine/inc/mimcvenginemessageswriteinterface.h
branchRCL_3
changeset 28 3104fc151679
parent 27 2b7283837edb
child 29 9a48e301e94b
equal deleted inserted replaced
27:2b7283837edb 28: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:  Interface for write access to messages.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __MIMCVENGINEMESSAGESWRITEINTERFACE_H__
       
    19 #define __MIMCVENGINEMESSAGESWRITEINTERFACE_H__
       
    20 
       
    21 //	FORWARD CLASS DECLERATIONS
       
    22 class MIMCVEngineMessage;
       
    23 
       
    24 // CLASS DECLARATION
       
    25 
       
    26 /**
       
    27  *  Interface for write access to messages.
       
    28  *
       
    29  *  @lib imcvengine.dll
       
    30  *  @since 5.0
       
    31  */
       
    32 class MIMCVEngineMessageWriteInterface
       
    33 	{
       
    34 	public: // Interface
       
    35 		
       
    36 		/**
       
    37 		 * Append one message to container.
       
    38 		 * @param aMessage. New message to container.
       
    39 		 * @param aSharedOwnerShip EFalse if ownership is tranferred, ETrue if shared.
       
    40 		 */
       
    41 		virtual void AppendL( MIMCVEngineMessage* aMessage, TBool aSharedOwnership = EFalse ) = 0;
       
    42 				
       
    43 	
       
    44 		
       
    45 				
       
    46 		/**
       
    47 		 * Get the time and date of the last message written to this interface,
       
    48 		 * Time is used to determine the need of datestamp.
       
    49 		 * @return Date and time of the last message. if there are no 
       
    50 		 *         previous messages, then returns Time::NullTTime()
       
    51 		 */
       
    52 		virtual TTime Time() = 0;
       
    53 		
       
    54 			
       
    55 		/**
       
    56          * sets the display name
       
    57          * @param aDispalyName. updated display name
       
    58          */
       
    59         virtual void SetNameL( const TDesC& aDispalyName ) = 0;
       
    60  
       
    61         /**
       
    62          * sets the contactlink
       
    63          * @param aContactLink. updated contactlink
       
    64          */
       
    65        virtual  void  SetLinkL(const TDesC8& aContactLink) = 0;
       
    66         /**
       
    67 		 * Virtual destructor
       
    68 		 */
       
    69 		virtual ~MIMCVEngineMessageWriteInterface(){}
       
    70 	};
       
    71 
       
    72 #endif      // __MIMCVENGINEMESSAGESWRITEINTERFACE_H__
       
    73 
       
    74 // End of File