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

📄 activebubblesorter.h

📁 活动对象的例子,是从诺基亚的网站上下载的
💻 H
字号:
// Copyright (c) 2006 Nokia Corporation.

#ifndef __ACTIVEBUBBLESORTER_H__
#define __ACTIVEBUBBLESORTER_H__

#include <e32base.h>
#include <f32file.h>

class MBubbleSortNotify; 

class CActiveBubbleSorter : public CActive
	{
	public: // Construction/destruction

    	static CActiveBubbleSorter* NewL(MBubbleSortNotify& aNotifier);
    	~CActiveBubbleSorter();

	protected: // from CActive

		// from CActive
    	void DoCancel();
    	void RunL();
		TInt RunError(TInt aError);
		
	private: // Construction
    
    	CActiveBubbleSorter(MBubbleSortNotify& aNotifier);
    	void ConstructL();

	public: // Public functions	
    	void StartL();
		void SyncSortL();
    	
	private: // Internal functions
	
		void ReadNumbersFromFileL();
		void WriteNumbersToFileL();
		void SortL();

	private: // data
 
		TInt                iX;
		TInt                iY;
	    RArray<TInt>        iNumbersArray;
	    MBubbleSortNotify&  iNotifier;
		TInt				iCount;
	};

#endif // __ACTIVEBUBBLESORTER_H__

// End of file

⌨️ 快捷键说明

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