⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 clocationexamplelocationengine.h

📁 Symbian Demo, why do you want to get 20 bytes.
💻 H
字号:
/*
* ============================================================================
*  Name     : CLocationExampleLocationEngine.h
*  Part of  : Location Example
*  Created  : 21.05.2007 by Forum Nokia
*  Description:
*  Version  : 1.0
*  Copyright: Nokia Corporation
* ============================================================================
*/

// INCLUDE FILES
#ifndef __CLOCATIONEXAMPLELOCATIONENGINE_H__
#define __CLOCATIONEXAMPLELOCATIONENGINE_H__

// INCLUDES
#include <e32base.h>
#include <lbsposition.h>


// CONSTANS
const TReal KEarthRadius = 6378136.0f; // Meters
const TReal KPiDouble = 3.1415926535897932384626433832795;
const TReal KDectorad = KPiDouble / 180;

_LIT(KInvalidDirection,"-");
_LIT(KNorth,"N");
_LIT(KSouth,"S");
_LIT(KWest,"W");
_LIT(KEast,"E");
_LIT(KNorthWest,"NW");
_LIT(KNorthEast,"NE");
_LIT(KSouthEast,"SE");
_LIT(KSouthWest,"SW");

class CLocationExampleLocationEngine : public CBase
	{
    public:

        /**
        * NewL
        * Two-phased constructor.
        * @return a pointer to the created instance of CLocationExampleLocationEngine
        */
        static CLocationExampleLocationEngine* NewL();

        /**
        * NewLC
        * Two-phased constructor.
        * @return a pointer to the created instance of CLocationExampleLocationEngine
        */
    	static CLocationExampleLocationEngine* NewLC();

        /**
        * Destructor.
        */
    	virtual ~CLocationExampleLocationEngine();

    public:
        TReal CalculateDistanceL(const TCoordinate& aFrom, const TCoordinate& aTo);
        TDesC& GetDirection(const TCoordinate& aFrom, const TCoordinate& aTo);
    

    private:
        /**
        * ConstructL.
        * 2nd phase constructor.
        */
    	void ConstructL();

        /**
        * CLocationExampleLocationEngine.
        * C++ default constructor.
        */
    	CLocationExampleLocationEngine();

    private:

        TBuf<2>             iDirection;

	};


#endif // __CLOCATIONEXAMPLELOCATIONENGINE_H__

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -