kodi
AppInboundProtocol.h
1 /*
2  * Copyright (C) 2005-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 "windowing/XBMC_events.h"
13 
14 #include <deque>
15 
16 class CApplication;
17 
19 {
20  friend class CApplication;
21 
22 public:
24  bool OnEvent(const XBMC_Event& newEvent);
25  void SetRenderGUI(bool renderGUI);
26  void Close();
27 
28 protected:
29  void HandleEvents();
30 
31  bool m_closed = false;
32  CApplication &m_pApp;
33  std::deque<XBMC_Event> m_portEvents;
34  CCriticalSection m_portSection;
35 };
Definition: AppInboundProtocol.h:18
Definition: Application.h:82
Definition: XBMC_events.h:117