kodi
WinEventsTVOS.h
1 /*
2  * Copyright (C) 2012-2018 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 #include "threads/CriticalSection.h"
12 #include "threads/Event.h"
13 #include "threads/Thread.h"
14 #include "windowing/WinEvents.h"
15 
16 #include <list>
17 #include <queue>
18 #include <string>
19 #include <vector>
20 
21 class CWinEventsTVOS : public IWinEvents, public CThread
22 {
23 public:
25  ~CWinEventsTVOS();
26 
27  void MessagePush(XBMC_Event* newEvent);
28  size_t GetQueueSize();
29 
30  bool MessagePump();
31 
32 private:
33  CCriticalSection m_eventsCond;
34  std::list<XBMC_Event> m_events;
35 };
Definition: Thread.h:44
Definition: WinEventsTVOS.h:21
Definition: XBMC_events.h:117
Definition: WinEvents.h:13