boo/include/inputdev/CDeviceBase.hpp

21 lines
415 B
C++
Raw Normal View History

2015-04-19 22:52:45 +00:00
#ifndef CDEVICEBASE
#define CDEVICEBASE
class CDeviceToken;
class IHIDDevice;
2015-04-19 22:52:45 +00:00
class CDeviceBase
{
CDeviceToken* m_token;
IHIDDevice* m_hidDev;
2015-04-22 21:48:23 +00:00
friend CDeviceToken;
void _deviceDisconnected();
2015-04-19 22:52:45 +00:00
public:
inline CDeviceBase(CDeviceToken* token, IHIDDevice* hidDev)
: m_token(token), m_hidDev(hidDev) {}
2015-04-22 21:48:23 +00:00
void closeDevice();
virtual void deviceDisconnected()=0;
2015-04-19 22:52:45 +00:00
};
#endif // CDEVICEBASE