uiservicetab/vimpstcmdprocess/src/cvimstcmdfriendrequest.cpp
branchRCL_3
changeset 9 9fdee5e1da30
parent 0 5e5d6b214f4f
equal deleted inserted replaced
8:796276a1bdcc 9:9fdee5e1da30
    19 // INCLUDE FILES
    19 // INCLUDE FILES
    20 #include "cvimstcmdfriendrequest.h"
    20 #include "cvimstcmdfriendrequest.h"
    21 
    21 
    22 #include "vimpstcmd.hrh"
    22 #include "vimpstcmd.hrh"
    23 #include "mvimpstcmdobserver.h"
    23 #include "mvimpstcmdobserver.h"
    24 #include "vimpstdebugprint.h" 
    24 
       
    25 #include "uiservicetabtracer.h"
    25 
    26 
    26 #include <e32def.h>
    27 #include <e32def.h>
    27 #include "mvimpstengine.h"
    28 #include "mvimpstengine.h"
    28 #include "mvimpstenginepresencesubservice.h"
    29 #include "mvimpstenginepresencesubservice.h"
    29 #include "mvimpstenginesubservice.h"
    30 #include "mvimpstenginesubservice.h"
    77 // CVIMPSTCmdFriendRequest::ExecuteLD
    78 // CVIMPSTCmdFriendRequest::ExecuteLD
    78 // --------------------------------------------------------------------------
    79 // --------------------------------------------------------------------------
    79 //
    80 //
    80 void CVIMPSTCmdFriendRequest::ExecuteLD()
    81 void CVIMPSTCmdFriendRequest::ExecuteLD()
    81     {
    82     {
    82     CHAT_DP_FUNC_ENTER("CVIMPSTCmdFriendRequest::ExecuteLD");
    83    
       
    84     TRACER_AUTO;
    83     //push to the cleanupstack
    85     //push to the cleanupstack
    84     CleanupStack::PushL( this );     
    86     CleanupStack::PushL( this );     
    85     
    87     
    86     //Get Presence SubService 
    88     //Get Presence SubService 
    87     MVIMPSTEngineSubService* subService =    	   
    89     MVIMPSTEngineSubService* subService =    	   
    92         MVIMPSTEnginePresenceSubService& presence = 
    94         MVIMPSTEnginePresenceSubService& presence = 
    93         		MVIMPSTEnginePresenceSubService::Cast (*subService);
    95         		MVIMPSTEnginePresenceSubService::Cast (*subService);
    94         presence.SendPresenceGrantPresentityL(iContactId, ( iCommandId == EFriendAccpeted  ));
    96         presence.SendPresenceGrantPresentityL(iContactId, ( iCommandId == EFriendAccpeted  ));
    95         }
    97         }
    96     
    98     
    97     CHAT_DP_FUNC_ENTER("CVIMPSTCmdFriendRequest:: CommandFinished");
    99     
    98 
   100 
    99     if(iObserver)
   101     if(iObserver)
   100         {
   102         {
   101         iObserver->CommandFinishedL(*this);
   103         iObserver->CommandFinishedL(*this);
   102         }
   104         }
   103     CHAT_DP_FUNC_ENTER("CVIMPSTCmdFriendRequest:: CommandFinished");    
   105       
   104     CleanupStack::PopAndDestroy();  
   106     CleanupStack::PopAndDestroy();  
   105     CHAT_DP_FUNC_DONE("CVIMPSTCmdFriendRequest::ExecuteLD");    
   107     
   106     }
   108     }
   107 
   109 
   108 
   110 
   109 // --------------------------------------------------------------------------
   111 // --------------------------------------------------------------------------
   110 // CVIMPSTCmdFriendRequest::AddObserver
   112 // CVIMPSTCmdFriendRequest::AddObserver