cmdbaseddevicerecovery.hh
来自「It s a tool designed to extract as much 」· HH 代码 · 共 67 行
HH
67 行
/* -*- 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 + =
减小字号Ctrl + -
显示快捷键?