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

📄 cmdbaseddevicerecovery.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.   Device recovery based on external (command line) tools.   $Id$   Author: Zsolt Molnar (Zsolt.Molnar@ieee.org)   ---------------------------------------------------------------------------*/#ifndef __CMDBASEDDEVICERECOVERY_HH__#define __CMDBASEDDEVICERECOVERY_HH__#include <string>#include "DeviceRecoveryLogic.hh"// Definitions for the command line scanning// The command path#define HCITOOL_PATH    "/usr/bin/hcitool"// Command line options for hcitool to scan#define HCITOOL_SCAN    " -i hci0 inq"// The temporary file where the scan result is recorded#define HCITOOL_RESULT  "/tmp/eebt_hciscan"// The device id starts here in a line of the above file#define HCITOOL_IDSTART 1// The device id terminates here in a line of the above file#define HCITOOL_IDEND   17#ifdef _cplusplusextern "C" {#endifclass IDeviceManager;class CmdBasedDeviceRecovery : virtual public DeviceRecoveryLogic {public:	CmdBasedDeviceRecovery(IDeviceManager& aDevManager);	virtual ~CmdBasedDeviceRecovery() {};  private:	virtual _tDeviceSet _inquiryForDevices();	Device::tDeviceID _getDeviceID(const string& aScanLine);	Device::tDeviceType _getDeviceType(const string& aScanLine);#ifdef __TEST__public:		bool test();private:	void _scanSleep();#endif // #ifdef __TEST__};#ifdef _cplusplus}#endif#endif /* #ifndef __CMDBASEDDEVICERECOVERY_HH__ */   

⌨️ 快捷键说明

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