imstutils/imconversationview/imcvuiengine/inc/mimcvngineservicechangeobserver.h
changeset 15 81eeb8c83ce5
parent 0 5e5d6b214f4f
equal deleted inserted replaced
0:5e5d6b214f4f 15:81eeb8c83ce5
     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:  service change observer
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef MIMCVENGINESERVICECHANGEOBSERVER_H
       
    20 #define MIMCVENGINESERVICECHANGEOBSERVER_H
       
    21 
       
    22 #include "mimcvenginechatlistobserver.h"  
       
    23 
       
    24 class MIMCVEngineMessageReadInterface;
       
    25 
       
    26 /**
       
    27  *  Observer class for getting service status change 
       
    28  *
       
    29  *  @lib imcvengine.lib
       
    30  */
       
    31 class MIMCVEngineServiceChangeObserver 
       
    32     {
       
    33 
       
    34 public:
       
    35 
       
    36     /*
       
    37      * new service has been installed
       
    38      */
       
    39     virtual void HandleNewServiceL( TInt aServiceId ) = 0 ;
       
    40     /*
       
    41      *  service has been deleted
       
    42      */
       
    43     virtual void HandleServiceDeletedL( TInt aServiceId )= 0 ;
       
    44         
       
    45     /**
       
    46      * @see handle the presence change notification
       
    47      * to handle the connection lost
       
    48      */
       
    49     virtual void HandlePresenceChangedL(TInt aServiceId, const TDesC& aBuddyId ) = 0 ;
       
    50 
       
    51     /**
       
    52      * Handle message send operation completion.
       
    53      * @param aResult result  to handle.
       
    54      */
       
    55     virtual void HandleOperationCompletdL(TInt aserviceId, MIMCVEngineMessage::TMessagerType aType , TInt aResult) = 0 ;
       
    56 
       
    57     /**
       
    58      * @see HandleConnectionTerminatedL
       
    59      * to handle the connection lost
       
    60      * @param aReason, reason report
       
    61      */
       
    62     virtual void HandleConnectionEventL(TInt aServiceId, TIMCVConnectionState aState, TInt aReason )  = 0  ;
       
    63 
       
    64     
       
    65     /**
       
    66      * Handle events.
       
    67      * @param aEvent Event to handle.
       
    68      * @param aContainerInfo, Container
       
    69      */
       
    70     virtual void HandleChatListEvent(TInt aServiceId, TChatListEventType aEvent, 
       
    71                                      MIMCVEngineMessageReadInterface* aContainerInfo
       
    72                                      ) = 0;
       
    73 
       
    74 
       
    75 protected:
       
    76 
       
    77     virtual ~MIMCVEngineServiceChangeObserver()
       
    78         {
       
    79 
       
    80         }
       
    81 
       
    82     };
       
    83 
       
    84 
       
    85 
       
    86 #endif // MIMCVENGINESERVICECHANGEOBSERVER_H