Searched refs:EventDev (Results 1 – 5 of 5) sorted by relevance
135 class EventDev {141 EventDev();142 EventDev(const std::string& path);143 EventDev(const EventDev&) = delete;144 EventDev(EventDev&& other);145 EventDev& operator=(EventDev&& other);146 ~EventDev() { ungrab(); } in ~EventDev()154 std::function<void(short, const EventDev&)> handler);
44 virtual void handleEvent(const EventDev& evdev) = 0;
177 EventDev::EventDev() : fd_(-1), path_("") {} in EventDev() function in secure_input::EventDev178 EventDev::EventDev(const std::string& path) : fd_(-1), path_(path) {} in EventDev() function in secure_input::EventDev179 EventDev::EventDev(EventDev&& other) : fd_(other.fd_), path_(std::move(other.path_)) { in EventDev() function in secure_input::EventDev182 EventDev& EventDev::operator=(EventDev&& other) { in operator =()189 bool EventDev::grab() { in grab()209 void EventDev::ungrab() { in ungrab()221 std::tuple<bool, input_event> EventDev::readEvent() const { in readEvent()229 int EventDev::fd() const { in fd()234 std::function<void(short, const EventDev&)> handler) { in grabAllEvDevsAndRegisterCallbacks()250 EventDev evDev(std::string("/dev/input/") + dirs[i]->d_name); in grabAllEvDevsAndRegisterCallbacks()
100 void handleEvent(const EventDev& evdev) override { in handleEvent()
308 grabAllEvDevsAndRegisterCallbacks(&eventloop, [&](short flags, const EventDev& evDev) { in promptUserConfirmation_()