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

📄 listboxrefreshtimer.h

📁 symbian的线程和活动对象源码
💻 H
字号:
/*
* ============================================================================
*  Name     : CListboxRefreshTimer from ListboxRefreshTimer.h
*  Part of  : ThreadAO
*  Created  : 12.1.2005 by Forum Nokia
*  Description:
*     HandleItemAdditionL doensn't work if it's called from thread1 ( not
*     the mainthread ). RefreshTimer updates Listbox periodically. Thread1
*     can now add data to the listbox and the item will be shown on the 
*     screen, because this calls HandleItemAdditionL from the mainthread.
*  Version  : 1.0
*  Copyright: Nokia Corporation
* ============================================================================
*/

#ifndef __LISTBOX_REFRESH_TIMER_H__
#define __LISTBOX_REFRESH_TIMER_H__

// INCLUDES
#include "e32base.h" //CTimer

// CLASS DECLARATION
class CDeviceListContainer;

/**
*  CListboxRefreshTimer Updates listbox screen.
*/
class CListboxRefreshTimer :public CTimer
	{

public: 

/*!
* NewL()
* 
* Create new CListboxRefreshTimer object
* param aListBox pointer to a ListBox that needs refreshing. 
* return a pointer to the created instance of CListboxRefreshTimer.
*/
	static CListboxRefreshTimer* NewL(CDeviceListContainer* aListBox);

/*!
* NewLC()
*	 
*/
	static CListboxRefreshTimer* NewLC(CDeviceListContainer* aListBox);

/*!
* Destructor
*	 
*/
	~CListboxRefreshTimer(void);

/*!
* DoCancelL()
*
* Cancels the timer.
*/
	void DoCancel();

/*!
* RunL()
*
* Implementation of the timer's virtual method. Update listboxes screen.
*/
	void RunL();

/*!
* RunError()
*
* Handles a leave occurring in the request completion event handler RunL().
* return returns always KErrNone.
*/
	TInt RunError(TInt aError);

/*!
* StartL()
*
* Start updating the listbox.
*/
	void StartL();

private: // Basic two-phase Symbian OS constructors

/*!
 * ConstructL()
 *
 */
	void ConstructL();

/*!
 * CListboxRefreshTimer()
 *
 *  Constructor.
 */
	CListboxRefreshTimer(CDeviceListContainer* aListBox);
	
private: // data members    

	// The listbox which shows bluetooth devices names
	CDeviceListContainer* iListbox;
	};

#endif // __LISTBOX_REFRESH_TIMER_H__

⌨️ 快捷键说明

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