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

📄 aolabbubblesortcontainer.h

📁 《Symbian S60第3版手机程序开发与实用教程》光盘源代码
💻 H
字号:
// Copyright (c) 2006 Nokia Corporation.

#ifndef S60AOLABCONTAINER_H
#define S60AOLABCONTAINER_H

#include <coecntrl.h>
#include "BubbleSortNotify.h"
   
class CEikLabel;
class CActiveTimer;
class CActiveBubbleSorter;

// Container control class.
class CAOLabBubbleSortContainer : public CCoeControl, MBubbleSortNotify
    {
    public: // Constructors and destructor
        
        static CAOLabBubbleSortContainer* NewL(const TRect& aRect);
        void ConstructL(const TRect& aRect);
        ~CAOLabBubbleSortContainer();

    public: // New functions
        
        void SortL();
		void CancelSortL();
		TBool IsSorting() const {return iIsSorting;}

    private: // Functions from base classes

        //CoeControl
        void SizeChanged();

		// CoeControl
        TInt CountComponentControls() const;
        CCoeControl* ComponentControl(TInt aIndex) const;
        void Draw(const TRect& aRect) const;

        // MBubbleSortNotify
        void SortComplete(TInt aError);
        
    private: //data
        
        CEikLabel*            iTopLabel;          
        CEikLabel*            iBottomLabel;      
        CActiveBubbleSorter*  iActiveBubbleSorter;
        TBool                 iIsSorting;
    };

#endif

// End of File

⌨️ 快捷键说明

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