basiclocationinfodisplay/blid/engine/inc/TNamedCoordinate.h
branchRCL_3
changeset 17 1fc85118c3ae
parent 16 8173571d354e
child 18 870918037e16
equal deleted inserted replaced
16:8173571d354e 17:1fc85118c3ae
     1 /*
       
     2 * Copyright (c) 2005 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:  Provides named coordinates
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef TNAMEDCOORDINATE_H
       
    21 #define TNAMEDCOORDINATE_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <lbsposition.h>
       
    25 #include "blidcommonconsts.h"
       
    26 
       
    27 // CLASS DECLARATION
       
    28 
       
    29 /**
       
    30 *  TNamedCoordinate is used to hold the named coordinates of a location 
       
    31 *  (latitude, longitude and altitude).
       
    32 */
       
    33 class TNamedCoordinate : public TCoordinate
       
    34     {
       
    35     public:
       
    36     	/**
       
    37 		 * C++ default constructors
       
    38 		 */
       
    39         IMPORT_C TNamedCoordinate();
       
    40 
       
    41 		IMPORT_C TNamedCoordinate(const TReal64& aLatitude,
       
    42 						 const TReal64& aLongitude, const TDesC& aName );
       
    43         
       
    44 		IMPORT_C TNamedCoordinate(const TReal64& aLatitude,
       
    45 						 const TReal64& aLongitude,
       
    46 						 TReal32 aAltitude, const TDesC& aName,TReal32 aAccuracy);
       
    47 
       
    48     public: //new functions
       
    49         /**
       
    50          * 
       
    51          * @return pointer to iName 
       
    52          */
       
    53 		IMPORT_C HBufC* Name() const;
       
    54      
       
    55         /**
       
    56          * Set Coordinate plot's name
       
    57          *
       
    58          * @param aName
       
    59          */
       
    60 		IMPORT_C void SetName( const TDesC& aName );
       
    61 		
       
    62 		/**
       
    63          * Set destination accuracy
       
    64          *
       
    65          * @param aAccuracy
       
    66          */
       
    67 		IMPORT_C void SetAccuracy( const TReal32& aAccuracy );
       
    68 		
       
    69 		/**
       
    70          * 
       
    71          * @return destination accuracy 
       
    72          */
       
    73 		IMPORT_C TReal32 Accuracy() const;
       
    74 
       
    75     private:
       
    76         /// Own: Coordinate plot's name
       
    77 		TBuf<KBlidWaypointNameMaxLen> iName;
       
    78         TReal32 iAccuracy;
       
    79     };
       
    80 
       
    81 #endif      // TNAMEDCOORDINATE_H
       
    82 
       
    83 // End of File