⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 iapconnectcontainer.h

📁 这是一个手机编程s60 基于c++的关于手机连接internet的数据库协议
💻 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 + -