sipexgameview.h
来自「an example for sip for symbian」· C头文件 代码 · 共 120 行
H
120 行
/*
* ==============================================================================
* Name : SIPExGameView.h
* Part of : SIPEx
* Interface :
* Description :
* Version :
*
* Copyright (c) 2004-2006 Nokia Corporation.
* This material, including documentation and any related
* computer programs, is protected by copyright controlled by
* Nokia Corporation.
* ==============================================================================
*/
#ifndef __SIPEXGAMEVIEW_H__
#define __SIPEXGAMEVIEW_H__
// INCLUDES
#include <aknview.h>
#include "SipEx.hrh"
// CONSTANTS
// UID of view
const TUid KGameViewId = { ESIPExView1Id };
// FORWARD DECLARATIONS
class CSIPExEngine;
class CSIPExGameContainer;
// CLASS DECLARATION
/**
* CSIPExGameView view class.
*
*/
class CSIPExGameView : public CAknView
{
public: // Constructors and destructor
/**
* First phase contruction
*/
static CSIPExGameView* NewLC( CSIPExEngine& aEngine );
/**
* Destructor.
*/
~CSIPExGameView();
private:
/**
* C++ default constructor
* @param aEngine The reference to the application engine.
*/
CSIPExGameView( CSIPExEngine& aEngine );
/**
* Second phase construction
*/
void ConstructL();
public: // Functions from base classes
/**
* Return Uid
*/
TUid Id() const;
/**
* Handle Commands
*/
void HandleCommandL( TInt aCommand );
/**
* Handle Size changes
*/
void HandleViewRectChange();
/**
* Handle menu initialization event.
* @param aResourceId Resource ID identifying the menu pane to initialise.
* @param aMenuPane The in-memory representation of the menu pane.
*/
void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane );
private:
/**
* From AknView, Activates view
*/
void DoActivateL( const TVwsViewId& aPrevViewId,TUid aCustomMessageId,
const TDesC8& aCustomMessage );
/**
* From AknView, Deactivates view
*/
void DoDeactivate();
public:
/**
* Return pointer to container, ownership is not transferred
*/
CSIPExGameContainer* Container();
private: // Data
CSIPExGameContainer* iContainer;
CSIPExEngine& iEngine;
};
#endif // __SIPEXGAMEVIEW_H__
// End of File
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?