DSInputDevice::DSInputDevice()
: __deviceName(nullptr),
__deviceIdentifier(nullptr),
- __deviceClass(DSInput::DeviceClass::None)
+ __deviceClass(DSInput::DeviceClass::NoneClass),
+ __deviceSubclass(DSInput::DeviceSubclass::NoneSubclass)
{
}
-DSInputDevice::DSInputDevice(std::string name, std::string identifier, DSInput::DeviceClass clas)
+DSInputDevice::DSInputDevice(std::string name, std::string identifier, DSInput::DeviceClass devClass, DSInput::DeviceSubclass devSubclass)
: __deviceName(name),
__deviceIdentifier(identifier),
- __deviceClass(clas)
+ __deviceClass(devClass),
+ __deviceSubclass(devSubclass)
{
}
return __deviceClass;
}
-void DSInputDevice::setClass(DSInput::DeviceClass clas)
+void DSInputDevice::setClass(DSInput::DeviceClass devClass)
{
- __deviceClass = clas;
+ __deviceClass = devClass;
}
+DSInput::DeviceSubclass DSInputDevice::getSubclass() const
+{
+ return __deviceSubclass;
+}
+
+void DSInputDevice::setSubclass(DSInput::DeviceSubclass devSubclass)
+{
+ __deviceSubclass = devSubclass;
+}
} // namespace display_server
DS_PIMPL_USE_PRIVATE(DSInput);
public:
enum DeviceClass {
- None = 0,
- Pointer = (1 << 0),
- Keyboard = (1 << 1),
- Touch = (1 << 2),
+ NoneClass,
+ PointerClass,
+ KeyboardClass,
+ TouchClass,
+ };
+ enum DeviceSubclass {
+ NoneSubclass,
};
public:
DSInput();
{
public:
DSInputDevice();
- DSInputDevice(std::string name, std::string identifier, DSInput::DeviceClass clas);
+ DSInputDevice(std::string name, std::string identifier, DSInput::DeviceClass devClass, DSInput::DeviceSubclass devSubclass);
~DSInputDevice();
std::string getName() const;
void setIdentifier(std::string identifier);
DSInput::DeviceClass getClass() const;
- void setClass(DSInput::DeviceClass clas);
+ void setClass(DSInput::DeviceClass devClass);
+
+ DSInput::DeviceSubclass getSubclass() const;
+ void setSubclass(DSInput::DeviceSubclass devSubclass);
private:
std::string __deviceName;
std::string __deviceIdentifier;
DSInput::DeviceClass __deviceClass;
-
+ DSInput::DeviceSubclass __deviceSubclass;
};
}