?? cmdbaseddevicerecovery.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 + -