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

📄 bluetoothservicesearcher.h

📁 symbian s60第3版下的点对点蓝牙聊天程序
💻 H
字号:
#ifndef BLUETOOTHSERVICESEARCHER_H_
#define BLUETOOTHSERVICESEARCHER_H_
// System includes
#include <btsdp.h>

// User defined includes
#include "TBluetoothAttributeParser.h"
#include "BluetoothAttributeObserver.h"

// Forward declaration
class CAknWaitDialog;

// CLASS DECLARATION


class CBluetoothServiceSearcher : public CBase, public MSdpAgentNotifier, public MBluetoothAttributeObserver
 	{
	public: // Constructors
		static CBluetoothServiceSearcher* 	NewL(TInt& aPort);
		static CBluetoothServiceSearcher* 	NewLC(TInt& aPort);
		~CBluetoothServiceSearcher();

	private: // Constructors - Symbian 2nd stage
		CBluetoothServiceSearcher(TInt& aPort);
		void					ConstructL();

	public: // Member functions - Functionality
		void 					CloseL();
		TInt 					FindServiceL(const TBTDevAddr& aDeviceAddress);
		void 					SetPort(TInt aPort);

	public: // Member functions - From MSdpAgentNotifier
		virtual void			NextRecordRequestComplete(TInt aError, TSdpServRecordHandle aHandle, TInt aTotalRecordsCount);
		virtual void			AttributeRequestResult(TSdpServRecordHandle aHandle, TSdpAttributeID aAttrID, CSdpAttrValue* aAttrValue);
		virtual void			AttributeRequestComplete(TSdpServRecordHandle aHandle, TInt aError);

		void					NextRecordRequestCompleteL(TInt aError, TSdpServRecordHandle aHandle, TInt aTotalRecordsCount);
		void					AttributeRequestResultL(TSdpServRecordHandle aHandle, TSdpAttributeID aAttrID, CSdpAttrValue* aAttrValue);
		void					AttributeRequestCompleteL(TSdpServRecordHandle aHandle, TInt aError);

	private: // Member functions - utility functions
		void					DisplayProgressDialogL();
		void					RemoveProgressDialogL();

	private: // Member Data 
		CSdpAgent*				iAgent;
		CSdpSearchPattern*		iSdpSearchPattern;
		CSdpAttrIdMatchList* 	iMatchList;
		CAknWaitDialog*			iWaitDialog;
		TInt&					iPort;
		TInt					iSearcherState;
		TBool					iContinueSearching;
		TBool					iAvailable;
	};
#endif /*BLUETOOTHSERVICESEARCHER_H_*/

⌨️ 快捷键说明

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