locationmapnavfw/aiwprovider/src/mnshowonmaphandler.cpp
branchRCL_3
changeset 44 2b4ea9893b66
parent 42 02ba3f1733c6
child 45 6b6920c56e2f
equal deleted inserted replaced
42:02ba3f1733c6 44:2b4ea9893b66
     1 /*
       
     2 * Copyright (c) 2005-2006 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  CMnShowOnMapHandler class implementation
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include <AiwGenericParam.hrh>
       
    20 #include <AiwCommon.hrh>
       
    21 
       
    22 #include <mnmapview.h>
       
    23 #include <mnprovider.h>
       
    24 
       
    25 #include "mnaiwdebug.h"
       
    26 #include "mnaiwinternal.h"
       
    27 #include "mnshowonmaphandler.h"
       
    28 
       
    29 // ================= LOCAL FUNCTIONS =======================
       
    30 
       
    31 // ================= MEMBER FUNCTIONS =======================
       
    32 
       
    33 // -----------------------------------------------------------------------------
       
    34 // -----------------------------------------------------------------------------
       
    35 //
       
    36 CMnShowOnMapHandler::CMnShowOnMapHandler( CMnProvider& aProvider )
       
    37 :   CMnMapViewCmdHandlerBase( aProvider  )
       
    38     {
       
    39     }
       
    40 
       
    41 // -----------------------------------------------------------------------------
       
    42 // -----------------------------------------------------------------------------
       
    43 //
       
    44 CMnShowOnMapHandler* CMnShowOnMapHandler::NewL( 
       
    45     CMnProvider& aProvider, TRunMode aRunMode )
       
    46     {
       
    47     CMnShowOnMapHandler* self = new (ELeave) CMnShowOnMapHandler( aProvider );
       
    48     CleanupStack::PushL( self );        
       
    49     self->ConstructL( aRunMode );
       
    50     CleanupStack::Pop( self );
       
    51     return self;
       
    52     }
       
    53 
       
    54 
       
    55 // ================= INTERNAL FUNCTIONS =======================
       
    56 
       
    57 // -----------------------------------------------------------------------------
       
    58 // -----------------------------------------------------------------------------
       
    59 //
       
    60 void CMnShowOnMapHandler::ConstructL( TRunMode aRunMode )
       
    61     {
       
    62     LOG("CMnShowOnMapHandler::ConstructL in");
       
    63 
       
    64     CMnMapViewCmdHandlerBase::ConstructL( aRunMode );
       
    65     
       
    66     LOG("CMnShowOnMapHandler::ConstructL out");
       
    67     }
       
    68 
       
    69 // -----------------------------------------------------------------------------
       
    70 // -----------------------------------------------------------------------------
       
    71 //
       
    72 void CMnShowOnMapHandler::DoStartL()
       
    73     {
       
    74     LOG("CMnShowOnMapHandler::DoStartL in");
       
    75     MapView().ShowMapL();
       
    76     LOG("CMnShowOnMapHandler::DoStartL out");
       
    77     }