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

📄 btb.h

📁 symbian平台蓝牙程序,功能实现:搜索设备,指定时间间隔搜索,对指定的设备发送信息,也可指定时间间隔发送,日志操作,可通过mms,红外,蓝牙发送日志等
💻 H
字号:
#ifndef BTB_H
#define BTB_H



#include <e32base.h>
#include <es_sock.h>
#include <bt_sock.h>
#include <e32base.h>
#include <obex.h>

class CBTB : public CActive
    {
    public: 


		    static CBTB* NewL();
    static CBTB* NewLC();

        ~CBTB(); //destructor


		void ConnectL();

		void SendMessageL();

		void StopL();

		void DisconnectL();

		TBool IsBusy();
		TBool IsConnected();
	protected:

		void RunL();
        void DoCancel();

    public: 

    public: 

    private:
        void ConstructL();
		void ConnectToServerL();
		CBTB();
		enum TState 
			{
			EWaitingToGetDevice,
			EGettingDevice,
			EGettingService,
			EGettingConnection,
			EWaitingToSend,
			EDisconnecting
			};
		TState iState;
		
		CObexClient* iClient;
		TObexBluetoothProtocolInfo protocolInfo;
		TBTDevAddr iAutoConnectAddress;
    };

#endif // __BTB_H__

⌨️ 快捷键说明

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