2 * Copyright (C) 2012-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 "settings/lib/ISettingCallback.h"
12 #include "utils/Observer.h"
24 class CGameSettings
: public ISettingCallback
, public Observable
28 ~CGameSettings() override
;
33 void SetShowOSDHelp(bool bShow
);
35 bool AutosaveEnabled();
37 unsigned int MaxRewindTimeSec();
38 std::string
GetRAUsername() const;
39 std::string
GetRAToken() const;
41 // Inherited from ISettingCallback
42 void OnSettingChanged(const std::shared_ptr
<const CSetting
>& setting
) override
;
45 std::string
LoginToRA(const std::string
& username
,
46 const std::string
& password
,
47 std::string token
) const;
48 bool IsAccountVerified(const std::string
& username
, const std::string
& token
) const;
50 // Construction parameters
51 std::shared_ptr
<CSettings
> m_settings
;