mapnavproviderrefapp/src/mnrpnavigationservice.cpp
branchRCL_3
changeset 17 1fc85118c3ae
parent 16 8173571d354e
child 18 870918037e16
equal deleted inserted replaced
16:8173571d354e 17:1fc85118c3ae
     1 /*
       
     2 * Copyright (c) 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:  CMnrpNavigationService class implementation
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include <e32base.h>
       
    20 #include <eikenv.h>
       
    21 
       
    22 #include <lbsposition.h>
       
    23 
       
    24 #include <EPos_CPosLandmark.h>
       
    25 
       
    26 #include "debug.h"
       
    27 #include <mnnavigationservicebase.h>
       
    28 
       
    29 #include "mnrpappui.h"
       
    30 #include "mnrpnavimodel.h"
       
    31 #include "mnrpnaviview.h"
       
    32 #include "mnrpappserver.h"
       
    33 #include "mnrpnavigationservice.h"
       
    34 
       
    35 
       
    36 // ============================ MEMBER FUNCTIONS ===============================
       
    37 
       
    38 // ---------------------------------------------------------------------------
       
    39 // ---------------------------------------------------------------------------
       
    40 //
       
    41 CMnrpNavigationService* CMnrpNavigationService::NewL()
       
    42     {
       
    43     CMnrpNavigationService* self = new (ELeave) CMnrpNavigationService();
       
    44     CleanupStack::PushL( self );
       
    45     self->ConstructL();
       
    46     CleanupStack::Pop( self );
       
    47     return self;
       
    48     }
       
    49     
       
    50 // ---------------------------------------------------------------------------
       
    51 // ---------------------------------------------------------------------------
       
    52 //
       
    53 CMnrpNavigationService::CMnrpNavigationService()
       
    54     {
       
    55     }
       
    56     
       
    57 // ---------------------------------------------------------------------------
       
    58 // ---------------------------------------------------------------------------
       
    59 //
       
    60 CMnrpNavigationService::~CMnrpNavigationService()
       
    61     {
       
    62     }
       
    63 
       
    64 // ---------------------------------------------------------------------------
       
    65 // ---------------------------------------------------------------------------
       
    66 //
       
    67 void CMnrpNavigationService::ConstructL()
       
    68     {
       
    69     BaseConstructL();
       
    70     }
       
    71 
       
    72 // ---------------------------------------------------------------------------
       
    73 // From class CMnNavigationServiceBase
       
    74 // ---------------------------------------------------------------------------
       
    75 //
       
    76 void CMnrpNavigationService::HandleNavigateToL(
       
    77     const CPosLandmark& aLandmark)
       
    78     {
       
    79     CMnrpAppServer* server = ( CMnrpAppServer* ) Server();
       
    80     CMnrpAppUi* ui = server->AppUi();
       
    81     ui->ShowNavigationL( aLandmark );
       
    82     }
       
    83         
       
    84 // ---------------------------------------------------------------------------
       
    85 // From class CMnServiceBase
       
    86 // ---------------------------------------------------------------------------
       
    87 //
       
    88 void CMnrpNavigationService::DoCancel()
       
    89     {
       
    90     }