wvuing/wvuieng/EngInc/MCAChatObserver.h
changeset 0 094583676ce7
equal deleted inserted replaced
-1:000000000000 0:094583676ce7
       
     1 /*
       
     2 * Copyright (c) 2004 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:  Observer interface to handle chat container changes.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __MCACHATOBSERVER_H__
       
    20 #define __MCACHATOBSERVER_H__
       
    21 
       
    22 //  INCLUDES
       
    23 #include <e32def.h>
       
    24 
       
    25 //	FORWARD CLASS DECLERATIONS
       
    26 class MCAMessage;
       
    27 
       
    28 // CLASS DECLARATION
       
    29 
       
    30 /**
       
    31  *  Observer interface to handle messages container changes.
       
    32  *
       
    33  *  @lib CAEngine.dll
       
    34  *  @since 3.0
       
    35  */
       
    36 class MCAChatObserver
       
    37     {
       
    38 
       
    39     public: // Definitions
       
    40 
       
    41         /**
       
    42          * Events for observer to handle.
       
    43          */
       
    44         enum TChatEventType
       
    45             {
       
    46             EGroupListChanged,
       
    47             EChatListChanged,
       
    48             ESendListChanged,
       
    49             EUnreadCountChanged, // Happens with new message and when messages are read.
       
    50             EMemoryLow,
       
    51             EEventNotSpecified
       
    52             };
       
    53 
       
    54     public: // Interface
       
    55 
       
    56         /**
       
    57          * Handle events.
       
    58          * @param aEvent Event to handle.
       
    59          * @param aMessage, Event occurred because of message
       
    60          */
       
    61         virtual void HandleChatEvent( TChatEventType aEvent, MCAMessage* aMessage = NULL ) = 0;
       
    62 
       
    63     protected: // For protection.
       
    64 
       
    65         /**
       
    66          * Destructor
       
    67          */
       
    68         virtual ~MCAChatObserver() {}
       
    69     };
       
    70 
       
    71 #endif      // __MCACHATOBSERVER_H__
       
    72 
       
    73 // End of File