[videodb] remove unused seasons table from episode_view
[xbmc.git] / xbmc / favourites / GUIWindowFavourites.h
blobec4ea32ef6fdbdfb619d17b0d9e95f477a37f874
1 /*
2 * Copyright (C) 2022 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 "favourites/FavouritesService.h"
12 #include "windows/GUIMediaWindow.h"
14 class CGUIWindowFavourites : public CGUIMediaWindow
16 public:
17 CGUIWindowFavourites();
18 ~CGUIWindowFavourites() override;
20 protected:
21 std::string GetRootPath() const override { return "favourites://"; }
23 bool OnSelect(int item) override;
24 bool OnAction(const CAction& action) override;
25 bool OnMessage(CGUIMessage& message) override;
27 bool Update(const std::string& strDirectory, bool updateFilterPath = true) override;
29 private:
30 void OnFavouritesEvent(const CFavouritesService::FavouritesUpdated& event);
31 bool MoveItem(int item, int amount);
32 bool RemoveItem(int item);