clock2/clockengines/clockserver/server/src/clockserverimpl.cpp
branchRCL_3
changeset 86 ed599363c2d7
parent 66 bd7edf625bdd
equal deleted inserted replaced
78:356f28cd5ca0 86:ed599363c2d7
   172     TInt count( plugInArray.Count() );
   172     TInt count( plugInArray.Count() );
   173     // Activate all the given protocols.
   173     // Activate all the given protocols.
   174     for( TInt index( KZeroIndex ); index < count; index++ )
   174     for( TInt index( KZeroIndex ); index < count; index++ )
   175 		 {	
   175 		 {	
   176 		 returnVal = ActivateProtocolL( plugInArray[ index ]->ImplementationUid().iUid );		 			
   176 		 returnVal = ActivateProtocolL( plugInArray[ index ]->ImplementationUid().iUid );		 			
       
   177 		 if(returnVal == KErrNone)
       
   178 		     {
       
   179 		     // Let's fetch the data if already available.Here we are fetching the NITZ
       
   180 		     // data from telephony server for first boot only, first time NITZ data is reliable.
       
   181 		     // First Boot NITZ data would be used by adtupdater application.
       
   182 		     // Get the first boot status from cenrep. If it is the first boot, get the NITZ packet already available
       
   183 		     TBool staleBoot( EFalse );
       
   184 
       
   185 		     CRepository* cenRep( NULL );
       
   186 
       
   187 		     TRAPD( errorVal, cenRep = CRepository::NewL( KCRUidStartup ) );
       
   188 
       
   189 		     if( errorVal == KErrNone )
       
   190 		         {
       
   191 		         errorVal = cenRep->Get( KStartupFirstBoot, staleBoot );
       
   192 		         }
       
   193 
       
   194 		     // Cleanup.
       
   195 		     delete cenRep;
       
   196 		     cenRep = NULL;
       
   197 
       
   198 		     if(!staleBoot)
       
   199 		         {
       
   200 		         iTimeSourceObjArray[index]->GetDataIfAlreadyAvailableL(); 
       
   201 		         }
       
   202 
       
   203 		     }
   177 		 }
   204 		 }
   178     // Cleanup.
   205     // Cleanup.
   179     plugInArray.ResetAndDestroy();
   206     plugInArray.ResetAndDestroy();
   180     plugInArray.Close();
   207     plugInArray.Close();
   181     
   208