?? iapconnectcontainer.h
字號:
/*
* ============================================================================
* Name : CIAPConnectContainer from IAPConnectContainer.h
* Part of : Internet Access Points Example v2.0
* Description:
* Declares container control for application.
* Created : 01.09.2006 by Forum Nokia
* Version : 2.0
* Copyright: Forum Nokia
* ============================================================================
*/
#ifndef IAPCONNECT_CONTAINER_H
#define IAPCONNECT_CONTAINER_H
// INCLUDES
#include "IAPConnectStateObserver.h"
#include <coecntrl.h>
// FORWARD DECLARATIONS
class CEikEdwin;
class CEikLabel;
// CLASS DECLARATION
/**
* CIAPConnectContainer container control class.
*
*/
class CIAPConnectContainer : public CCoeControl
{
public: // Constructors and destructor
/*
* ConstructL()
*
* Second phase Constructor
*
* Params:
* const TRect& aRect An area to be available for drawing
*
*/
void ConstructL(const TRect& aRect);
/*
* CIAPConnectContainer()
*
* Constructor
*
*/
CIAPConnectContainer();
/*
* ~CIAPConnectContainer()
*
* Destructor
*
*/
~CIAPConnectContainer();
public: // From MIAPConnectStateObserver
/*
* ChangeStateL()
*
* Change the text in the edwin
*
* Params:
* const TDesC& aText Text to be drawn
*
*/
void ChangeStateL(const TDesC& aText);
private: // Functions from base classes
/*
* SizeChanged()
*
* Sets the size and position of the contents of this control
*
*/
void SizeChanged();
/*
* CountComponentControls()
*
* Gets the number of controls contained in a compound control
*
* Returns:
* TInt Number of controls
*
*/
TInt CountComponentControls() const;
/*
* ComponentControl()
*
* Gets the specified component of a compound control
*
* Params:
* TInt aIndex Index of the control
*
* Returns:
* CCoeControl* Pointer to control
*
*/
CCoeControl* ComponentControl(TInt aIndex) const;
/*
* Draw()
*
* Draws this control
*
* Params:
*
* const TRect& aRect Area to be redrawn
*
*/
void Draw(const TRect& aRect) const;
private:
// owns
CEikLabel* iLabel;
CEikEdwin* iEdwin;
TInt iLabelXPosition;
TInt iLabelYPosition;
TInt iEdwinXPosition;
TInt iEdwinYPosition;
};
#endif
// End of File
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -