locationmanager/locationtrail/src/clocationrecord.cpp
branchRCL_3
changeset 15 3cebc1a84278
parent 14 646a02f170b9
child 17 50de4d668bb6
equal deleted inserted replaced
14:646a02f170b9 15:3cebc1a84278
   401                 		TItemId locationId = DoCreateLocationL( iNewItem.iLocationData );
   401                 		TItemId locationId = DoCreateLocationL( iNewItem.iLocationData );
   402                 		iRemapper->UpdateRelationsL( locationId );
   402                 		iRemapper->UpdateRelationsL( locationId );
   403                 		)
   403                 		)
   404                 		}
   404                 		}
   405                		iRemapper->StartRemappingObjects( iNewItem.iLocationData );
   405                		iRemapper->StartRemappingObjects( iNewItem.iLocationData );
       
   406 
       
   407                     if( iObserver->WaitForPositioningStopTimeout() && !RemappingNeeded() )                                
       
   408                		    {                                                
       
   409                         iObserver->RemapedCompleted();
       
   410                         return;
       
   411                		    }
       
   412                		
   406                 	}
   413                 	}
   407                 if ( iState != RLocationTrail::ETrailStopping )
   414                 if ( iState != RLocationTrail::ETrailStopping )
   408                 	{
   415                 	{
   409                     SetCurrentState( RLocationTrail::ETrailStarted );
   416                     SetCurrentState( RLocationTrail::ETrailStarted );
   410                 	LOG("CLocationRecord::Position trail started");
   417                 	LOG("CLocationRecord::Position trail started");
  1092 
  1099 
  1093     CMdEObject* object = NULL;
  1100     CMdEObject* object = NULL;
  1094     CMdEProperty* property = NULL;
  1101     CMdEProperty* property = NULL;
  1095     
  1102     
  1096     object = iMdeSession->GetObjectL( aObjectId );
  1103     object = iMdeSession->GetObjectL( aObjectId );
       
  1104     CleanupStack::PushL( object );
  1097     object->Property( timeDef, property, 0 );
  1105     object->Property( timeDef, property, 0 );
  1098     if ( !property )
  1106     if ( !property )
  1099         {
  1107         {
  1100         User::Leave( KErrNotFound );
  1108         User::Leave( KErrNotFound );
  1101         }
  1109         }
  1102     return property->TimeValueL();
  1110     
       
  1111     const TTime timeValue( property->TimeValueL() );
       
  1112     CleanupStack::PopAndDestroy( object );
       
  1113     return timeValue;
  1103     }
  1114     }
  1104 
  1115 
  1105 EXPORT_C TBool CLocationRecord::RemappingNeeded()
  1116 EXPORT_C TBool CLocationRecord::RemappingNeeded()
  1106 	{
  1117 	{
  1107 	return iRemapper->ItemsInQueue();
  1118 	return iRemapper->ItemsInQueue();