networkprotocolmodules/networkpmutils/utils/inc/netpmutils.h
changeset 48 81c9bee26a45
equal deleted inserted replaced
23:2965a06983dc 48:81c9bee26a45
       
     1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 /**
       
    17  @file
       
    18  @internalTechnology
       
    19  
       
    20 */
       
    21 
       
    22 #ifndef NET_PM_UTILS_H
       
    23 #define NET_PM_UTILS_H
       
    24 
       
    25 //************************************************************************************************************
       
    26 #include <e32base.h>
       
    27 
       
    28 // Literals used
       
    29 _LIT(KNetPMUtils, "NetPMUtils");
       
    30 
       
    31 /**
       
    32 Constants used in the encoding of position values.
       
    33 */
       
    34 const TReal KLbsLatitudeConst  = (8388608 / 90);  // 2^23 / 90
       
    35 const TReal KLbsLongitudeConst = (16777216 / 360);  // 2^24 / 360
       
    36 const TInt  KLbsMaxAltitude    = 32767;          	// 2^15 - 1
       
    37 
       
    38 /**
       
    39 Constants used in velocity conversion
       
    40 1 meter per second = 3.6 kilometers per hour
       
    41 */
       
    42 const TReal KLbsMpsKmphConstant = 3.6;
       
    43 
       
    44 class NetPmUtils
       
    45     {
       
    46 	public:
       
    47 	
       
    48 	public: // New functions
       
    49         IMPORT_C static TInt NetPmUtils::Uncertainty(const TReal32& aDistance);
       
    50         IMPORT_C static TInt EncodeAltitude(const TReal32& aAltitude);
       
    51         IMPORT_C static TInt UncertaintyAltitude(const TReal32& aDistance);
       
    52 	private:
       
    53     	NetPmUtils( const NetPmUtils& );
       
    54     };
       
    55 
       
    56 
       
    57 #endif //NET_PM_UTILS_H