📄 device.hh
字号:
/* -*- c++ -*- --------------------------------------------------------------- Copyright (C) 2005, SWECO, All Rights Reserved. Definition of the device descriptor $Id$ Author: Zsolt Molnar (Zsolt.Molnar@ieee.org) ---------------------------------------------------------------------------*/#ifndef __DEVICE_HH__#define __DEVICE_HH__#include <string>#include "base.hh"#ifdef _cplusplusextern "C" {#endifclass Device {public: Device() {}; typedef string tDeviceID; typedef enum tDeviceType { UNKNOWN, OTHER, NOKIA6600, NOKIA7610 }; typedef int tOBEXChannel; explicit Device(const tDeviceID& aDevID, const tDeviceType& aDevType = UNKNOWN); tDeviceID devID; tDeviceType devType;public: bool operator < (const Device& aOp) const; bool operator == (const Device& aOp) const; bool operator != (const Device& aOp) const; Device& operator = (const Device& aOp);};// inline definitionsinline Device::Device(const tDeviceID& aDevID, const tDeviceType& aDevType){ devID = aDevID; devType = aDevType;}inline bool Device::operator < (const Device& aOp) const{ return devID < aOp.devID;}inline bool Device::operator == (const Device& aOp) const{ return devID == aOp.devID;}inline bool Device::operator != (const Device& aOp) const{ return !(*this == aOp);}inline Device& Device::operator = (const Device& aOp){ if (&aOp != this) { devID = aOp.devID; devType = aOp.devType; } return *this;}#ifdef _cplusplus}#endif#endif /* #ifndef __IDEVICERECOVERY_HH__ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -