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

📄 iapconnect_v20container.h

📁 symbian手机通讯的一个例子程序
💻 H
字号:
/*
* ============================================================================
*  Name     : CIAPConnect_v20Container from IAPConnect_v20Container.h
*  Part of  : IAPConnect_v20
*  Created  : 30.09.2003 by Forum Nokia
*  Description:
*     Container class declaration
*  Version  :
*  Copyright: Nokia Corporation
* ============================================================================
*/

#ifndef IAPCONNECT_V20CONTAINER_H
#define IAPCONNECT_V20CONTAINER_H

// INCLUDES
#include "IAPConnect_v20StateObserver.h"
#include <coecntrl.h>
   
// FORWARD DECLARATIONS
class CEikEdwin;
class CEikLabel;

// CLASS DECLARATION

/**
*  CIAPConnect_v20Container  container control class.
*  
*/
class CIAPConnect_v20Container : public CCoeControl, public MIAPConnect_v20StateObserver
    {
public: // Constructors and destructor
        
     /*
     * ConstructL()
     *  
     * Second phase Constructor
     *
     * Params:
     * const TRect& aRect   An area to be available for drawing
     *
     */
     void ConstructL(const TRect& aRect);

    /*
     * CIAPConnect_v20Container()
     *  
     * Constructor
     *
     */
     CIAPConnect_v20Container();
        
    /*
     * ~CIAPConnect_v20Container()
     *  
     * Destructor
     *
     */
    ~CIAPConnect_v20Container();

public: // From MIAPConnect_v20StateObserver

    /*
     * 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;

    };

#endif

// End of File

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -