www.pudn.com > ExampleBluetoothChat.rar > BluetoothDeviceSearcher.h


#ifndef __BLUETOOTHDEVICESEARCHER_H__ 
#define __BLUETOOTHDEVICESEARCHER_H__ 
 
// System includes 
#include  
 
// forward declarations 
class MBluetoothObserver; 
 
// CLASS DECLARATION 
/** 
* 
* @class	CBluetoothDeviceSearcher BluetoothDeviceSearcher.h 
* @brief	This class performs the search for Remote Bluetooth devices. 
* 
* It requires that a reference to a TBTDeviceResponseParamsPckg is passed through, so that it may populate this with 
* device information should discovery be successful 
* 
* Copyright (c) EMCC Software Ltd 2003 
* @version	1.0 
* 
*/ 
 
class CBluetoothDeviceSearcher : public CActive 
	{ 
	public: // Constructors 
		static CBluetoothDeviceSearcher* NewL(MBluetoothObserver &aBluetoothObserver); 
		static CBluetoothDeviceSearcher* NewLC(MBluetoothObserver &aBluetoothObserver); 
		~CBluetoothDeviceSearcher(); 
 
	private: // Constructors - Symbian 2nd stage 
		CBluetoothDeviceSearcher(MBluetoothObserver &aBluetoothObserver); 
		void	ConstructL(); 
		void	RunL(); 
		void	DoCancel(); 
 
	public: // Member functions 
		void SelectDeviceL(TBTDeviceResponseParamsPckg& aResponse); 
 
	private: // Member Data 
		TBTDeviceResponseParamsPckg*	iResponse; 
		RNotifier						iNotifier; 
		MBluetoothObserver&				iObserver; 
	}; 
 
#endif // __BLUETOOTHDEVICESEARCHER_H__ 
 
// End of file