imstutils/imconversationview/imcvuiengine/inc/mimcvenginemessageobserver.h
changeset 0 5e5d6b214f4f
equal deleted inserted replaced
-1:000000000000 0:5e5d6b214f4f
       
     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:  messge observer interface 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __MIMCVENGINEMESSAGEOBSERVER_H__
       
    20 #define __MIMCVENGINEMESSAGEOBSERVER_H__
       
    21 
       
    22 //  INCLUDES
       
    23 #include <e32def.h>
       
    24 
       
    25 //	FORWARD CLASS DECLERATIONS
       
    26 
       
    27 // CLASS DECLARATION
       
    28 
       
    29 /**
       
    30  *  Observer interface to handle message container changes.
       
    31  *
       
    32  *  @lib imcvengine.dll
       
    33  *  @since 5.0
       
    34  */
       
    35 class MIMCVEngineMessageObserver
       
    36 	{
       
    37 
       
    38 	public: // Definitions
       
    39 
       
    40 		/**
       
    41 		 * Events for observer to handle.
       
    42 		 */
       
    43 		enum TMessageEventType
       
    44 			{
       
    45 			ENewMessage,
       
    46 			EMessageChanged,
       
    47 			EMessageDeleted,
       
    48 			EChatDeleted
       
    49 			};
       
    50 
       
    51 	public: // Interface
       
    52 
       
    53 		/**
       
    54 		 * Handle events.
       
    55 		 * @param aEvent Event to handle.
       
    56 		 * @param aIndex, Index of message which is affected by event.
       
    57 		 */
       
    58 		virtual void HandleMessageEvent( TMessageEventType aEvent, TInt aIndex = -1 ) = 0;
       
    59 		
       
    60 		
       
    61 	
       
    62 	protected: // For protection.
       
    63 
       
    64 		/**
       
    65 		 * Destructor for protection
       
    66 		 */
       
    67 		virtual ~MIMCVEngineMessageObserver(){}
       
    68 	};
       
    69 
       
    70 #endif      // __MIMCVENGINEMESSAGEOBSERVER_H__
       
    71 
       
    72 // End of File