locationmapnavfw/library/inc/mnmapselectionresultinfo.inl
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:  TMnMapSelectionResultInfo class implementation
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include "mnmapselectionresultinfo.h"
       
    20 
       
    21 // ======== LOCAL FUNCTIONS ========
       
    22 
       
    23 // ======== MEMBER FUNCTIONS ========
       
    24 
       
    25 // ---------------------------------------------------------------------------
       
    26 // ---------------------------------------------------------------------------
       
    27 //
       
    28 inline TMnMapSelectionResultInfo::TMnMapSelectionResultInfo()
       
    29     {
       
    30     iType = CMnMapView::ESelectionNone;
       
    31     iLandmarkIndex = -1;
       
    32     iLandmarkId = KPosLmNullItemId;
       
    33     iLandmarkSize = 0;
       
    34     iDbUriSize = 0;
       
    35     }
       
    36 
       
    37 // ---------------------------------------------------------------------------
       
    38 // ---------------------------------------------------------------------------
       
    39 //
       
    40 inline TMnMapSelectionResultInfo::TMnMapSelectionResultInfo( TInt aLandmarkIndex )
       
    41     {
       
    42     iType = CMnMapView::ESelectionLandmarkIndex;
       
    43     iLandmarkIndex = aLandmarkIndex;
       
    44     iLandmarkId = KPosLmNullItemId;
       
    45     iLandmarkSize = 0;
       
    46     iDbUriSize = 0;
       
    47     }
       
    48 
       
    49 // ---------------------------------------------------------------------------
       
    50 // ---------------------------------------------------------------------------
       
    51 //
       
    52 inline TMnMapSelectionResultInfo::TMnMapSelectionResultInfo( const TDesC8& aLandmarkBuffer )
       
    53     {
       
    54     iType = CMnMapView::ESelectionFreeLandmark;
       
    55     iLandmarkIndex = -1;
       
    56     iLandmarkId = KPosLmNullItemId;
       
    57     iLandmarkSize = aLandmarkBuffer.Size();
       
    58     iDbUriSize = 0;
       
    59     }
       
    60 
       
    61 // ---------------------------------------------------------------------------
       
    62 // ---------------------------------------------------------------------------
       
    63 //
       
    64 inline TMnMapSelectionResultInfo::TMnMapSelectionResultInfo( TPosLmItemId aLandmarkId, const TDesC& aDbUri )
       
    65     {
       
    66     iType = CMnMapView::ESelectionLinkedLandmark;
       
    67     iLandmarkIndex = -1;
       
    68     iLandmarkId = aLandmarkId;
       
    69     iLandmarkSize = 0;
       
    70     iDbUriSize = aDbUri.Size();
       
    71     }