Debian Codegraph @

xbmc/cores/RetroPlayer/guibridge/GUIGameMessenger.h

raw
1 /*
2 * Copyright (C) 2023 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 <string>
12
13 class CGUIComponent;
14
15 namespace KODI
16 {
17 namespace RETRO
18 {
19 class CRPProcessInfo;
20 class ISavestate;
21
22 /*!
23 * \brief Class to send messages to the GUI, if a GUI is present
24 */
25 class CGUIGameMessenger
26 {
27 public:
28 CGUIGameMessenger(CRPProcessInfo& processInfo);
29
30 /*!
31 * \brief Refresh savestate GUI elements being displayed
32 *
33 * \param savestatePath The savestate to refresh, or empty to refresh all savestates
34 * \param savestate Optional savestate info to send with the message
35 */
36 void RefreshSavestates(const std::string& savestatePath = "", ISavestate* savestate = nullptr);
37
38 private:
39 CGUIComponent* const m_guiComponent;
40 };
41 } // namespace RETRO
42 } // namespace KODI