locationmapnavfw/library/src/mnnavigationservicebase.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:  CMnNavigationServiceBase class implementation
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include <e32base.h>
       
    20 
       
    21 #include <EPos_CPosLandmark.h>
       
    22 
       
    23 #include "mndebug.h"
       
    24 #include "mnerrors.h"
       
    25 #include "mninternal.h"
       
    26 #include "mninternal.inl"
       
    27 #include "mnnavigationservicebase.h"
       
    28 
       
    29 // ======== LOCAL FUNCTIONS ========
       
    30 
       
    31 // ======== MEMBER FUNCTIONS ========
       
    32 
       
    33 // ---------------------------------------------------------------------------
       
    34 // ---------------------------------------------------------------------------
       
    35 //
       
    36 EXPORT_C CMnNavigationServiceBase::CMnNavigationServiceBase()
       
    37     {
       
    38     }
       
    39 
       
    40 // ---------------------------------------------------------------------------
       
    41 // ---------------------------------------------------------------------------
       
    42 //
       
    43 EXPORT_C CMnNavigationServiceBase::~CMnNavigationServiceBase()
       
    44     {
       
    45     }
       
    46 
       
    47 // ---------------------------------------------------------------------------
       
    48 // ---------------------------------------------------------------------------
       
    49 //
       
    50 EXPORT_C void CMnNavigationServiceBase::BaseConstructL()
       
    51     {
       
    52     CMnServiceBase::BaseConstructL();
       
    53     }
       
    54 
       
    55 // ---------------------------------------------------------------------------
       
    56 //  From class CAknAppServiceBase
       
    57 // ---------------------------------------------------------------------------
       
    58 //
       
    59 EXPORT_C void CMnNavigationServiceBase::ServiceL(const RMessage2& aMessage)
       
    60     {
       
    61     LOG1("CMnNavigationServiceBase::ServiceL in, function %d", aMessage.Function());
       
    62     
       
    63     switch ( aMessage.Function() )
       
    64         {
       
    65         case EMnIpcNavigateTo:
       
    66             {
       
    67             CPosLandmark* lm = UnpackLandmarkLC( aMessage, EMnIpcNaviLandmarkParamIndex );
       
    68             HandleNavigateToL( *lm );
       
    69             CleanupStack::PopAndDestroy( lm );
       
    70             Complete( aMessage, KErrNone );
       
    71             }
       
    72             break;
       
    73             
       
    74         default:
       
    75             CMnServiceBase::ServiceL( aMessage );
       
    76         }
       
    77     }