clocationexamplepositionlistener.h

来自「Symbian Demo, why do you want to get 20 」· C头文件 代码 · 共 56 行

H
56
字号
/*
* ============================================================================
*  Name     : clocationexamplepositionlistener.h
*  Part of  : Location Example
*  Created  : 21.05.2007 by Forum Nokia
*  Description:
*  Version  : 1.0
*  Copyright: Nokia Corporation
* ============================================================================
*/

#ifndef __MPOSITIONOBSERVER__
#define __MPOSITIONOBSERVER__

#include <lbsSatellite.h>

class TPositionInfo;
class TPositionSatelliteInfo;

/**
*   Position data listener interface listens position information.
*   It can also be used to transfer error messages and codes.
*/
class MPositionObserver
    {
    public:

        /**
        * Informs the listener about new location information
        * @param aPosInfo Position information class
        */
        virtual void PositionUpdatedL(TPositionInfoBase& aPosInfo) = 0;

        virtual void FriendPositionUpdatedL(const TDesC& aInfo, const TCoordinate& aCoordinate) = 0;

        /**
        * Informs the listener about occurred error during position 
        * request process
        * @param aErrorString The error in string format
        */
        virtual void ErrorL(const TDesC& aErrorString) = 0;
        
        /**
        * Informs the listener about occurred event during position 
        * request process
        * @param aMessage The message in string format
        */
        virtual void MessageL(const TDesC& aMessage) = 0;
        
    };

#endif // __MPOSITIONOBSERVER__


// End of File

⌨️ 快捷键说明

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