wvuing/wvuiprocess/Inc/MCAConversationObserverPC.h
changeset 0 094583676ce7
equal deleted inserted replaced
-1:000000000000 0:094583676ce7
       
     1 /*
       
     2 * Copyright (c) 2006 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 __MCACONVERSATIONOBSERVERPC_H__
       
    20 #define __MCACONVERSATIONOBSERVERPC_H__
       
    21 
       
    22 //  INCLUDES
       
    23 #include <e32def.h>
       
    24 #include "TEnumsPC.h"
       
    25 
       
    26 // CLASS DECLARATION
       
    27 
       
    28 /**
       
    29  *  Observer interface to handle messages container changes.
       
    30  *
       
    31  *  @lib wvuiprocessng.dll
       
    32  *  @since 3.2
       
    33  */
       
    34 class MCAConversationObserverPC
       
    35     {
       
    36     public: // Interface
       
    37         /**
       
    38          * Handle chat events. - MCAConversationObserverPC
       
    39          * @param aWvid - WVID
       
    40          * @param aContactId - Contact identification
       
    41          */
       
    42         virtual void HandleChatEvent( 	const TDesC& aWvid,
       
    43                                        const TDesC& aContactId ) = 0;
       
    44 
       
    45         /**
       
    46          * Handle events - MCAConversationObserverPC
       
    47          * @param aError
       
    48          * @param aInfo, Event occurred because of message
       
    49          * @param aMsgContentType - Content of the message
       
    50          */
       
    51         virtual void HandleMessageError( TInt aError,
       
    52                                          const TDesC& aInfo,
       
    53                                          TEnumsPC::TContentType aMsgContentType ) = 0;
       
    54 
       
    55         /**
       
    56          * Handle events - MCAConversationObserverPC
       
    57          * @param aContactId The contact which was affected (add/delete/change)
       
    58          * this function is called when there is any change w.r.t contacts
       
    59          *
       
    60          */
       
    61         virtual void HandleContactChange( const TDesC& aContactId ) = 0;
       
    62 
       
    63 
       
    64         /**
       
    65          * Destructor
       
    66          */
       
    67         virtual ~MCAConversationObserverPC() {}
       
    68     };
       
    69 
       
    70 #endif      // __MCACONVERSATIONOBSERVERPC_H__
       
    71 
       
    72 // End of File