opponentformcontainer.h
来自「series60 应用程序开发的源代码 series60 应用程序开发的源代码」· C头文件 代码 · 共 68 行
H
68 行
#ifndef OPPONENTFORMCONTAINER_H
#define OPPONENTFORMCONTAINER_H
// INCLUDES
// System includes
#include <coecntrl.h> // CCoeControl
// User includes
#include "OpponentFormOpponent.h"
// FORWARD DECLARATIONS
class CEikTextListBox;
// CLASS DECLARATION
/**
*
* @class COpponentFormContainer OpponentFormContainer.h
* @brief This is the container class for the OpponentForm example based on the
* standard Symbian OS architecture.
*
* Copyright (c) EMCC Software Ltd 2003
* @version 1.0
*
*/
class COpponentFormContainer : public CCoeControl
{
public: // Constructors and destructor
static COpponentFormContainer* NewL(const TRect& aRect);
static COpponentFormContainer* NewLC(const TRect& aRect);
~COpponentFormContainer();
public: // members
void NewOpponentL();
void OpenOpponentL();
void DeleteOpponentL();
TInt NumberOfOpponents();
private: // Constructor
void ConstructL(const TRect& aRect);
private: // from CoeControl
void SizeChanged();
TInt CountComponentControls() const;
CCoeControl* ComponentControl(TInt aIndex) const;
void Draw(const TRect& aRect) const;
TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
private: // members
TBuf<KListItemLength> ListStringFromOpponentL (const TOpponentFormOpponent& aOpponent) const;
void AddOpponentToListL (const TOpponentFormOpponent& aOpponent);
void COpponentFormContainer::UpdateOpponentInListL (TOpponentFormOpponent& aOpponent);
private: // Member data
CEikTextListBox* iOpponentsList;
RArray<TOpponentFormOpponent> iOpponents;
};
#endif // #ifndef OPPONENTFORMCONTAINER_H
// End of File
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?