simpledatamodeladapter/src/presencepluginentitywatcher.cpp
changeset 12 e6a66db4e9d0
parent 0 c8caa15ef882
equal deleted inserted replaced
0:c8caa15ef882 12:e6a66db4e9d0
   393             *prInfo );
   393             *prInfo );
   394 
   394 
   395         MXIMPIdentity* identity2 = iConnObs.ObjectFactory().NewIdentityLC();    
   395         MXIMPIdentity* identity2 = iConnObs.ObjectFactory().NewIdentityLC();    
   396         
   396         
   397         HBufC* withoutPrefix = iPresenceData->RemovePrefixLC( aIdentity );
   397         HBufC* withoutPrefix = iPresenceData->RemovePrefixLC( aIdentity );
   398         identity2->SetIdentityL( *withoutPrefix );
   398         identity2->SetIdentityL( *withoutPrefix );   
   399         
       
   400         DP_SDA("SetTerminatedToXIMPL, write offline status to cache");
       
   401         iPresenceData->WriteStatusToCacheL( *withoutPrefix,
       
   402             MPresenceBuddyInfo2::ENotAvailable,
       
   403             KNullDesC(),
       
   404             KNullDesC() );
       
   405         
   399         
   406         // XIMP Host API callback 
   400         // XIMP Host API callback 
   407         watcherHost.HandleSubscribedPresentityPresenceL( identity2, prInfo );
   401         watcherHost.HandleSubscribedPresentityPresenceL( identity2, prInfo );
   408 
   402 
   409         CleanupStack::PopAndDestroy( withoutPrefix );
   403         CleanupStack::PopAndDestroy( withoutPrefix );