imstutils/imconversationview/imcvuiengine/inc/mimcvenginemessagehandlerobserver.h
changeset 0 5e5d6b214f4f
equal deleted inserted replaced
-1:000000000000 0:5e5d6b214f4f
       
     1 /*
       
     2 * Copyright (c) 2008-2009 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:  message handler observer
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef MIMCVENGINEMESSAGEHANDLEROBSERVER_H
       
    19 #define MIMCVENGINEMESSAGEHANDLEROBSERVER_H
       
    20 
       
    21 //  INCLUDES
       
    22 #include <e32def.h>
       
    23 #include <e32base.h>
       
    24 #include "imcvuiliterals.h"
       
    25 #include "mimcvenginemessage.h"
       
    26 //	FORWARD CLASS DECLERATIONS
       
    27     
       
    28      
       
    29 // CLASS DECLARATION
       
    30 /**
       
    31  *  presence handler interface
       
    32  *
       
    33  *  @lib imcvengine.dll
       
    34  *  @since 5.0
       
    35  */
       
    36 class MIMCVEngineMessageHandlerObserver
       
    37     {
       
    38     public: 
       
    39     
       
    40         /**
       
    41         * @see handle the presence change notification
       
    42         * to handle the connection lost
       
    43         */
       
    44         virtual void HandlePresenceChangedL(TInt aServiceId, const TDesC& aBuddyId ) = 0 ;
       
    45         
       
    46         /**
       
    47         * Handle message send operation completion.
       
    48         * @param aResult result  to handle.
       
    49         */
       
    50         virtual void HandleOperationCompletdL(TInt aserviceId, MIMCVEngineMessage::TMessagerType aType , TInt aResult) = 0 ;
       
    51         
       
    52         /**
       
    53          * @see HandleConnectionTerminatedL
       
    54          * to handle the connection lost
       
    55          * @param aReason, reason report
       
    56          */
       
    57         virtual void HandleConnectionEventL(TInt aServiceId, TIMCVConnectionState aState, TInt aReason )  = 0  ;
       
    58     
       
    59     protected: // For protection.
       
    60     
       
    61         /**
       
    62         * Destructor for protection
       
    63         */
       
    64         virtual ~MIMCVEngineMessageHandlerObserver(){}
       
    65         
       
    66 };
       
    67 #endif      // MIMCVENGINEHANDLEROBSERVER_H
       
    68 
       
    69 // End of File