xbmc
DialogGameOSD.h
1 /*
2  * Copyright (C) 2017-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 "guilib/GUIDialog.h"
12 
13 #include <memory>
14 
15 namespace KODI
16 {
17 namespace GAME
18 {
19 class CDialogGameOSDHelp;
20 
21 class CDialogGameOSD : public CGUIDialog
22 {
23 public:
25 
26  ~CDialogGameOSD() override = default;
27 
28  // Implementation of CGUIControl via CGUIDialog
29  bool OnAction(const CAction& action) override;
30 
31  // Implementation of CGUIWindow via CGUIDialog
32  void OnDeinitWindow(int nextWindowID) override;
33 
44  static bool PlayInBackground(int dialogId);
45 
46 protected:
47  // Implementation of CGUIWindow via CGUIDialog
48  void OnInitWindow() override;
49 
50 private:
51  std::unique_ptr<CDialogGameOSDHelp> m_helpDialog;
52 };
53 } // namespace GAME
54 } // namespace KODI
void OnInitWindow() override
Called on window open.
Definition: DialogGameOSD.cpp:58
Definition: DialogGameOSD.h:21
static bool PlayInBackground(int dialogId)
Decide if the game should play behind the given dialog.
Definition: DialogGameOSD.cpp:78
class encapsulating information regarding a particular user action to be sent to windows and controls...
Definition: Action.h:22
Definition: GUIDialog.h:35
Controller configuration window.
Definition: AudioDecoder.h:18