bluetoothdevicesearcher.h

来自「打开蓝牙」· C头文件 代码 · 共 49 行

H
49
字号
#ifndef __BLUETOOTHDEVICESEARCHER_H__
#define __BLUETOOTHDEVICESEARCHER_H__

// System includes
#include <btextnotifiers.h>

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

⌨️ 快捷键说明

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