boo/include/inputdev/CDeviceBase.hpp

21 lines
415 B
C++

#ifndef CDEVICEBASE
#define CDEVICEBASE
class CDeviceToken;
class IHIDDevice;
class CDeviceBase
{
CDeviceToken* m_token;
IHIDDevice* m_hidDev;
friend CDeviceToken;
void _deviceDisconnected();
public:
inline CDeviceBase(CDeviceToken* token, IHIDDevice* hidDev)
: m_token(token), m_hidDev(hidDev) {}
void closeDevice();
virtual void deviceDisconnected()=0;
};
#endif // CDEVICEBASE