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

📄 clocationexamplepositionrequestor.h

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

#ifndef LBSPOSITIONREQUESTOR_H
#define LBSPOSITIONREQUESTOR_H

//  INCLUDES
#include <lbs.h>
#include <LbsSatellite.h>

// FORWARD DECLARATIONS
class MPositionObserver;

// CLASS DECLARATION

/**
*  Position requestor.
*/
class CLocationExamplePositionRequestor : public CActive
    {
    public: //Construction and destruction

        /**
        * Creates a new instance of a @ref CLocationExamplePositionRequestor
        * @param aPositionListener Position listener to be registered
        * @return The newly created CLocationExamplePositionRequestor object
        */
        static CLocationExamplePositionRequestor* NewL( TInt aInterval,
            MPositionObserver& aPositionListener ) ;

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

    protected:  // Functions from base classes

        // From CActive
        void DoCancel();
        void RunL();
        TInt RunError(TInt aError);

    private:  // New Functions

        /**
        * By default Symbian 2nd phase constructor is private.
        */
        void ConstructL( );

        /**
        * C++ default constructor.
        * @param aPositionListener Position listener to be registered
        */
        CLocationExamplePositionRequestor( TInt aInterval,MPositionObserver& aPositionListener );

        /**
        * Starts a position requesting sequence
        */
        void DoInitialiseL();
        
        /**
        * Preprocess the position information
        */
        void PositionUpdatedL();

    public:
        void Pause();
        void Continue();
        TPositionInfoBase* CurrentPosition();
    

    private:    // Data

        // The id of the currently used PSY
        TPositionModuleId           iUsedPsy; 

        // Position server
        RPositionServer             iPosServer;

        // Positioner
        RPositioner                 iPositioner;

        // Basic location info
        TPositionInfo               iPositionInfo;  
        
        // Satellite info
        TPositionSatelliteInfo      iSatelliteInfo; 

        TInt                        iInterval;
        TInt                        iUpdateTimeout;

        // Position listener
        MPositionObserver&          iPositionListener;
    
        // The id of the used psy
        TPositionUpdateOptions      iUpdateops;
        
        // Position info base
        TPositionInfoBase*          iPosInfoBase;

        // State variable used to mark if we are 
        // getting last known position
        TBool                       iGettingLastknownPosition;
        
    };
 #endif //LBSPOSITIONREQUESTOR_H
// End of File

⌨️ 快捷键说明

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