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.
11 #include "threads/Thread.h"
25 class IAutoSaveCallback
28 virtual ~IAutoSaveCallback() = default;
30 virtual bool IsAutoSaveEnabled() const = 0;
31 virtual std::string
CreateAutosave() = 0;
34 class CRetroPlayerAutoSave
: protected CThread
37 explicit CRetroPlayerAutoSave(IAutoSaveCallback
& callback
, GAME::CGameSettings
& settings
);
39 ~CRetroPlayerAutoSave() override
;
42 // implementation of CThread
43 void Process() override
;
46 // Construction parameters
47 IAutoSaveCallback
& m_callback
;
48 GAME::CGameSettings
& m_settings
;