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