imsrv_plat/im_cache_client_api/inc/mimcacheeventhandler.h
changeset 0 e6b17d312c8b
equal deleted inserted replaced
-1:000000000000 0:e6b17d312c8b
       
     1 /*
       
     2 * Copyright (c) 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:  client side obssrver class message change observer
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef __MIMCACHEEVENTHANDLER_H
       
    21 #define __MIMCACHEEVENTHANDLER_H
       
    22 
       
    23 #include <e32std.h>
       
    24 #include "imcachedefs.h"
       
    25 
       
    26 
       
    27 /**
       
    28  * An interface through which client gets information
       
    29  * about available  data updates.
       
    30  *
       
    31  * @since
       
    32  */
       
    33 class MIMCacheEventHandler
       
    34     {
       
    35     public:
       
    36            
       
    37     	/**
       
    38     	* Gets called when data update is available.
       
    39     	* Client can then decide wether to use the old one
       
    40     	* or the updated one.
       
    41     	* @param aNewMessage, new message details
       
    42        	*/
       
    43         virtual void HandleIMCacheEventL(TIMCacheEventType aEvent, TAny* aChatMessage = NULL ) = 0;
       
    44      
       
    45   	
       
    46 protected:
       
    47     	/**
       
    48     	* Destructor
       
    49     	*/
       
    50     	virtual ~MIMCacheEventHandler() {};
       
    51     };
       
    52    
       
    53  
       
    54     
       
    55 #endif //__MIMCACHEEVENTHANDLER_H
       
    56 
       
    57