meetingrequest/mrgui/mrfieldbuilderplugin/src/cesmrviewerdescriptionfield.cpp
changeset 1 12c456ceeff2
parent 0 8466d47a6819
child 3 a4d6f1ea0416
equal deleted inserted replaced
0:8466d47a6819 1:12c456ceeff2
     1 /*
     1 /*
     2 * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). 
     2 * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). 
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of the License "Symbian Foundation License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
     8 *
     8 *
     9 * Initial Contributors:
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    10 * Nokia Corporation - initial contribution.
    11 *
    11 *
    12 * Contributors:
    12 * Contributors:
    69 CESMRViewerDescriptionField::~CESMRViewerDescriptionField( )
    69 CESMRViewerDescriptionField::~CESMRViewerDescriptionField( )
    70     {
    70     {
    71     FUNC_LOG;
    71     FUNC_LOG;
    72     delete iLocationPlugin;
    72     delete iLocationPlugin;
    73     delete iFeatures;
    73     delete iFeatures;
       
    74     delete iLocation;
    74     }
    75     }
    75 
    76 
    76 // ---------------------------------------------------------------------------
    77 // ---------------------------------------------------------------------------
    77 // CESMRViewerDescriptionField::InitializeL()
    78 // CESMRViewerDescriptionField::InitializeL()
    78 // ---------------------------------------------------------------------------
    79 // ---------------------------------------------------------------------------
   309             if ( FeaturesL().FeatureSupported(
   310             if ( FeaturesL().FeatureSupported(
   310                  CESMRFeatureSettings::EESMRUIMnFwIntegration ) )
   311                  CESMRFeatureSettings::EESMRUIMnFwIntegration ) )
   311                 {
   312                 {
   312                 const CESMRRichTextLink* link =
   313                 const CESMRRichTextLink* link =
   313                     iRichTextViewer->GetSelectedLink();
   314                     iRichTextViewer->GetSelectedLink();
   314                 LocationPluginL().ShowOnMapL( link->Value() );
   315                 LocationPluginL().ShowOnMapL( *iLocation, link->Value() );
   315                 }
   316                 }
   316             break;
   317             break;
   317             }
   318             }
   318         case EAknSoftkeySelect:
   319         case EAknSoftkeySelect:
   319             {
   320             {
   394         CleanupStack::Pop( showOnMapLink );                
   395         CleanupStack::Pop( showOnMapLink );                
   395         iRichTextViewer->HandleTextChangedL();
   396         iRichTextViewer->HandleTextChangedL();
   396         CleanupStack::PopAndDestroy( description );
   397         CleanupStack::PopAndDestroy( description );
   397         CleanupStack::PopAndDestroy( showOnMapBuf );
   398         CleanupStack::PopAndDestroy( showOnMapBuf );
   398         command = EESMRCmdEnableWaypointIcon;
   399         command = EESMRCmdEnableWaypointIcon;
       
   400         
       
   401         const TDesC& location = aEntry.Entry().LocationL();
       
   402         delete iLocation;
       
   403         iLocation = NULL; 
       
   404         iLocation = location.AllocL();     
   399         }
   405         }
   400     // No location url found. Other description text is added to field.
   406     // No location url found. Other description text is added to field.
   401     else
   407     else
   402         {
   408         {
   403         TPtrC text = aEntry.Entry().DescriptionL();
   409         TPtrC text = aEntry.Entry().DescriptionL();