meetingrequest/mrgui/mrlocationplugin/src/cesmrlocationpluginimpl.cpp
changeset 1 12c456ceeff2
parent 0 8466d47a6819
child 16 4ce476e64c59
equal deleted inserted replaced
0:8466d47a6819 1:12c456ceeff2
   222 // ---------------------------------------------------------------------------
   222 // ---------------------------------------------------------------------------
   223 // CESMRLocationPluginImpl::ShowOnMapL
   223 // CESMRLocationPluginImpl::ShowOnMapL
   224 // From class MESMRLocationPlugin.
   224 // From class MESMRLocationPlugin.
   225 // ---------------------------------------------------------------------------
   225 // ---------------------------------------------------------------------------
   226 //
   226 //
   227 void CESMRLocationPluginImpl::ShowOnMapL( const TDesC& aLocationUrl )
   227 void CESMRLocationPluginImpl::ShowOnMapL( const TDesC& aLocation, const TDesC& aLocationUrl )
   228 	{
   228 	{
   229     FUNC_LOG;
   229     FUNC_LOG;
   230 	CreateMapViewL();
   230 	CreateMapViewL();
   231 
   231 
   232 	iMapView->ResetLandmarksToShow();
   232 	iMapView->ResetLandmarksToShow();
   233     RCPointerArray<CPosLandmark> landmarks;
   233     RCPointerArray<CPosLandmark> landmarks;
   234     CleanupClosePushL( landmarks );
   234     CleanupClosePushL( landmarks );
   235     CPosLandmark* landmark = iUrlParser->CreateLandmarkFromUrlL( aLocationUrl );
   235     CPosLandmark* landmark = iUrlParser->CreateLandmarkFromUrlL( aLocationUrl );
       
   236     landmark->SetLandmarkNameL(aLocation);    
   236     CleanupStack::PushL( landmark ); 
   237     CleanupStack::PushL( landmark ); 
   237     landmarks.AppendL( landmark );
   238     landmarks.AppendL( landmark );
   238     CleanupStack::Pop( landmark );
   239     CleanupStack::Pop( landmark );
   239     iMapView->AddLandmarksToShowL( landmarks );
   240     iMapView->AddLandmarksToShowL( landmarks );
   240     CleanupStack::PopAndDestroy( &landmarks );
   241     CleanupStack::PopAndDestroy( &landmarks );