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

📄 obexcomminitiator.hh

📁 It s a tool designed to extract as much information as possible from Bluetooth devices without the r
💻 HH
字号:
/* -*- c++ -*- ---------------------------------------------------------------   Copyright (C) 2005, SWECO, All Rights Reserved.   OBEX push based communication initiator implementation   $Id$   Author: Zsolt Molnar (Zsolt.Molnar@ieee.org)   ---------------------------------------------------------------------------*/#ifndef __OBEXCOMMINITIATOR_HH__#define __OBEXCOMMINITIATOR_HH__#include <map>#include "base.hh"#include "Lockable.hh"#include "OBEXInitSequence.hh"#include "IOBEXSender.hh"#include "ICommInitiator.hh"// The delay between the separate messages in a message sequence#define OCI_INTERMESSAGE_DELAY 60 // second#ifdef _cplusplusextern "C" {#endifclass OBEXCommInitiator : virtual public ICommInitiator,						  public Lockable{public:	OBEXCommInitiator();	virtual ~OBEXCommInitiator() {};	virtual bool perform(const Device& aDevice);	virtual void reset(const set<Device>& aDevices);private:	typedef enum _tInitState {		NOT_SUPPORTED,		ACCEPTED,		REFUSED,		RETRY,		PROCESSING	};	typedef map<Device, _tInitState> _tDeviceDb;	_tDeviceDb _deviceDb;	const string _fileName;	typedef map<Device::tDeviceType, OBEXInitSequence> _tInitStore;	static _tInitStore _initStore;private:	bool _checkIfProcess(const Device& aDevice);	IOBEXSender::tSendState _initCommunication(const Device& aDevice,											   const OBEXInitSequence& aSeq);	bool _setInitState(const Device& aDevice,					   const IOBEXSender::tSendState& aSendRes);	bool _save();	bool _load();	void _fillInitStore();#ifdef __TEST__public:		bool test();#endif // #ifdef __TEST__};#ifdef _cplusplus}#endif#endif /* #ifndef __OBEXCOMMINITIATOR_HH__ */   

⌨️ 快捷键说明

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