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.
11 #include "favourites/FavouritesService.h"
12 #include "windows/GUIMediaWindow.h"
14 class CGUIWindowFavourites
: public CGUIMediaWindow
17 CGUIWindowFavourites();
18 ~CGUIWindowFavourites() override
;
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
;
30 void OnFavouritesEvent(const CFavouritesService::FavouritesUpdated
& event
);
31 bool MoveItem(int item
, int amount
);
32 bool RemoveItem(int item
);