EvdevDevice.hpp
1 #pragma once
2 #include <ossia/detail/config.hpp>
3 #if defined(OSSIA_PROTOCOL_EVDEV)
4 #include <Device/Protocol/DeviceInterface.hpp>
5 
6 namespace Protocols
7 {
8 class EvdevDevice final : public Device::OwningDeviceInterface
9 {
10 
11  W_OBJECT(EvdevDevice)
12 public:
13  EvdevDevice(
14  const Device::DeviceSettings& settings,
15  const ossia::net::network_context_ptr& ctx);
16  ~EvdevDevice();
17 
18  bool reconnect() override;
19  void disconnect() override;
20 
21 private:
22  const ossia::net::network_context_ptr& m_ctx;
23 };
24 }
25 #endif
Definition: DeviceInterface.hpp:185
Definition: DeviceSettings.hpp:20