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

📄 tbluetoothattributeparser.h

📁 Symbian OS 蓝牙聊天程序
💻 H
字号:
#ifndef TBLUETOOTHATTRIBUTEPARSER_H_
#define TBLUETOOTHATTRIBUTEPARSER_H_
// System includes
#include <btsdp.h>

// Forward Declaration
class MBluetoothAttributeObserver;

// CLASS DECLARATION


class TBluetoothAttributeParser : public MSdpAttributeValueVisitor
	{
	public: // Constructors - this is a T class therefore no need for 2nd stage
		TBluetoothAttributeParser(MBluetoothAttributeObserver& aObserver, TBool& aContinueSearching);

	public: // Getters and Setters
		inline TBool 			Finished() const { return ( iProcessingState == EFinished ); }

	public: // MSdpAttributeValueVisitor
		void 				VisitAttributeValueL(CSdpAttrValue& aValue, TSdpElementType aType);
		void 				StartListL(CSdpAttrValueList& aList);
		void 				EndListL();

	private: // data structures
		enum EProcessingState
			{
			EStartOfDesOne,
			EStartOfDesTwo,
			EL2Cap,
			EEndOfDesTwo,
			EStartDesThree,
			ERFComm,
			ERFCommPort,
			EEndOfDesThree,
			EEndOfDesOne,
			EFinished
			};

	private: // Member functions - helper functions
		void				Next();
		void				CompareRFCOMM( CSdpAttrValue& aAttrValue );
		void				GetPort( CSdpAttrValue& aAttrValue );

	private: // Member data
		EProcessingState		iProcessingState;
		TBool				iFinished;
		MBluetoothAttributeObserver&	iObserver;
		TUint				iPort;
		TBool&				iContinueSearching;
	};
#endif /*TBLUETOOTHATTRIBUTEPARSER_H_*/

⌨️ 快捷键说明

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