simpledatamodeladapter/src/presencepluginauthorization.cpp
branchRCL_3
changeset 11 b4758b4b2d20
parent 8 aca99fb8a3dd
equal deleted inserted replaced
10:96b99892dd80 11:b4758b4b2d20
   507                 DP_SDA( "CPresencePluginAuthorization::RunL -Subscribe presentity presence" );  
   507                 DP_SDA( "CPresencePluginAuthorization::RunL -Subscribe presentity presence" );  
   508                 MXIMPIdentity* identity = iConnObs.ObjectFactory().NewIdentityLC();
   508                 MXIMPIdentity* identity = iConnObs.ObjectFactory().NewIdentityLC();
   509                 identity->SetIdentityL( iPresIdentity->Des() ); 
   509                 identity->SetIdentityL( iPresIdentity->Des() ); 
   510                 iConnObs.WatcherHandlerL()->DoPerformSubscribePresentityPresenceL( *identity, iStatus );
   510                 iConnObs.WatcherHandlerL()->DoPerformSubscribePresentityPresenceL( *identity, iStatus );
   511                 CleanupStack::PopAndDestroy( ); //identity 
   511                 CleanupStack::PopAndDestroy( ); //identity 
       
   512                 iAuthState = EStateSubscribe;
       
   513                 SetActive();
       
   514                 }
       
   515                 break;
       
   516                 
       
   517             case EStateSubscribe:
       
   518                 {
       
   519                 DP_SDA( "CPresencePluginAuthorization::RunL -UnBlock completed" ); 
       
   520                 HBufC* withoutPrefix = iPresenceData->RemovePrefixLC( *iPresIdentity );
       
   521                 iPresenceData->WriteStatusToCacheL( *withoutPrefix, 
       
   522                     MPresenceBuddyInfo2::ENotAvailable,
       
   523                     KInvisibleState(),
       
   524                     KNullDesC() );
       
   525                 CleanupStack::PopAndDestroy( withoutPrefix );
   512                 iAuthState = EStateIdle;
   526                 iAuthState = EStateIdle;
   513                 SetActive();
   527                 CompleteXIMPReq( myStatus );
   514                 }
   528                 }
   515                 break;
   529                 break;
   516                 
   530                 
   517             default:
   531             default:
   518                 {
   532                 {