kodi
EventPollHandle.h
1 /*
2  * Copyright (C) 2016-2024 Team Kodi
3  * This file is part of Kodi - https://kodi.tv
4  *
5  * SPDX-License-Identifier: GPL-2.0-or-later
6  * See LICENSES/README.md for more information.
7  */
8 
9 #pragma once
10 
11 namespace PERIPHERALS
12 {
13 class CEventPollHandle;
14 
21 {
22 public:
23  virtual ~IEventPollCallback(void) = default;
24 
25  virtual void Activate(CEventPollHandle& handle) = 0;
26  virtual void Deactivate(CEventPollHandle& handle) = 0;
27  virtual void HandleEvents(bool bWait) = 0;
28  virtual void Release(CEventPollHandle& handle) = 0;
29 };
30 
38 {
39 public:
44 
49 
53  void Activate();
54 
58  void Deactivate();
59 
65  void HandleEvents(bool bWait);
66 
67 private:
68  IEventPollCallback& m_callback;
69 };
70 } // namespace PERIPHERALS
Definition: RetroPlayerInput.h:15
Handle returned by the event scanner to control scan timing.
Definition: EventPollHandle.h:37
Callback implemented by event scanner.
Definition: EventPollHandle.h:20