?? clocationexampleview.h
字號:
/*
* ============================================================================
* Name : clocationexampleview.h
* Part of : Location Example
* Created : 21.05.2007 by Forum Nokia
* Description:
* Version : 1.0
* Copyright: Nokia Corporation
* ============================================================================
*/
#ifndef __MULTIVIEWS_VIEW1_H__
#define __MULTIVIEWS_VIEW1_H__
// INCLUDES
#include <aknview.h>
#include <eikmenup.h>
#include "clocationexamplepositionlistener.h"
#include "clocationexampleappui.h"
// FORWARD DECLARATIONS
class CLocationExampleContainer;
// CLASS DECLARATION
/**
* CLocationExampleView view class.
* An instance of the Application View object for the MultiViews
* example application
*/
class CLocationExampleView: public CAknView, public MPositionObserver
{
public: // Constructors and destructor
/**
* NewL.
* Two-phased constructor.
* Construct a CLocationExampleView for the AVKON application aApp.
* Using two phase construction,and return a pointer to the created object
* @return a pointer to the created instance of CLocationExampleView
*/
static CLocationExampleView* NewL(CLocationExampleAppUi* aParent);
/**
* NewLC.
* Two-phased constructor.
* Construct a CLocationExampleView for the AVKON application aApp.
* Using two phase construction,and return a pointer to the created object
* @return a pointer to the created instance of CLocationExampleView
*/
static CLocationExampleView* NewLC(CLocationExampleAppUi* aParent);
/**
* ~CLocationExampleView.
* Virtual Destructor.
*/
virtual ~CLocationExampleView();
public: // Functions from base classes from CAknView
/**
* Id
* @return Id Uid value
*/
TUid Id() const;
/**
* HandleCommandL
* From CAknView, takes care of command handling.
* @param aCommand Command to be handled
*/
void HandleCommandL( TInt aCommand );
/**
* HandleSizeChange
* Called by HandleResourceChangeL() from CLocationExampleAppUi when layout
* is changed.
* @param aType Type of resources that have changed
*/
void HandleSizeChange( TInt aType );
/**
* DoActivateL
* From CAknExView, activate an AknView.
* @param aPrevViewId The id of the previous view
* @param aCustomMessageId message identifier
* @param aCustomMessage custom message provided when the view is changed
*/
void DoActivateL( const TVwsViewId& aPrevViewId,
TUid aCustomMessageId,
const TDesC8& aCustomMessage );
/**
* DoDeactivate
* From AknView, deactivate an AknView
* Remove the container class instance from the App UI's stack and
* deletes the instance
*/
void DoDeactivate();
void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane );
public:
// -----------------------------------------------------------------------------
// From MPositionListener
// -----------------------------------------------------------------------------
//
void PositionUpdatedL(TPositionInfoBase& aPosInfo);
void FriendPositionUpdatedL(const TDesC& aInfo, const TCoordinate& aCoordinate);
void ErrorL(const TDesC& aErrorString);
void MessageL(const TDesC& aMessage);
inline CLocationExampleEngine* Engine()
{
return iParent->Engine();
};
private: // Constructors and destructor
/**
* CLocationExampleView.
* C++ default constructor.
*/
CLocationExampleView(CLocationExampleAppUi* aParent);
/**
* ConstructL.
* 2nd phase constructor.
*/
void ConstructL();
void DoMainMenuL(CEikMenuPane* aMenuPane);
private: // Data
/**
* iContainer,container for this view
* owned by CLocationExampleView object.
*/
CLocationExampleContainer* iContainer;
/** View Identifier **/
TUid iIdentifier;
MPositionObserver* iPositionListener;
CLocationExampleAppUi* iParent;
};
#endif // __MULTIVIEWS_VIEW1_H__
// End of File
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -