[WASAPI] set stream audio category
[xbmc.git] / xbmc / cores / RetroPlayer / RetroPlayerAutoSave.h
blobf34ab09c0c96c7b1dc70f41a4eeaa1784094535a
1 /*
2 * Copyright (C) 2017-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
9 #pragma once
11 #include "threads/Thread.h"
13 #include <string>
15 namespace KODI
17 namespace GAME
19 class CGameClient;
20 class CGameSettings;
21 } // namespace GAME
23 namespace RETRO
25 class IAutoSaveCallback
27 public:
28 virtual ~IAutoSaveCallback() = default;
30 virtual bool IsAutoSaveEnabled() const = 0;
31 virtual std::string CreateAutosave() = 0;
34 class CRetroPlayerAutoSave : protected CThread
36 public:
37 explicit CRetroPlayerAutoSave(IAutoSaveCallback& callback, GAME::CGameSettings& settings);
39 ~CRetroPlayerAutoSave() override;
41 protected:
42 // implementation of CThread
43 void Process() override;
45 private:
46 // Construction parameters
47 IAutoSaveCallback& m_callback;
48 GAME::CGameSettings& m_settings;
50 } // namespace RETRO
51 } // namespace KODI