diff options
Diffstat (limited to '')
-rw-r--r-- | xbmc/view/ViewDatabase.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/xbmc/view/ViewDatabase.h b/xbmc/view/ViewDatabase.h new file mode 100644 index 0000000..701d1f6 --- /dev/null +++ b/xbmc/view/ViewDatabase.h @@ -0,0 +1,34 @@ +/* + * Copyright (C) 2005-2018 Team Kodi + * This file is part of Kodi - https://kodi.tv + * + * SPDX-License-Identifier: GPL-2.0-or-later + * See LICENSES/README.md for more information. + */ + +#pragma once + +#include "dbwrappers/Database.h" + +#include <string> + +class CViewState; + +class CViewDatabase : public CDatabase +{ +public: + CViewDatabase(); + ~CViewDatabase() override; + bool Open() override; + + bool GetViewState(const std::string &path, int windowID, CViewState &state, const std::string &skin); + bool SetViewState(const std::string &path, int windowID, const CViewState &state, const std::string &skin); + bool ClearViewStates(int windowID); + +protected: + void CreateTables() override; + void CreateAnalytics() override; + void UpdateTables(int version) override; + int GetSchemaVersion() const override { return 6; } + const char *GetBaseDBName() const override { return "ViewModes"; } +}; |