Debian Codegraph @

xbmc/favourites/FavouritesUtils.h

raw
1 /*
2 * Copyright (C) 2023 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
4 *
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
8
9 #pragma once
10
11 #include <memory>
12
13 class CExecString;
14 class CFavouritesURL;
15 class CFileItem;
16 class CFileItemList;
17
18 namespace FAVOURITES_UTILS
19 {
20 bool ChooseAndSetNewName(CFileItem& item);
21 bool ChooseAndSetNewThumbnail(CFileItem& item);
22 bool MoveItem(CFileItemList& items, const std::shared_ptr<CFileItem>& item, int amount);
23 bool RemoveItem(CFileItemList& items, const std::shared_ptr<CFileItem>& item);
24 bool ShouldEnableMoveItems();
25
26 bool ExecuteAction(const CExecString& execString);
27 bool ExecuteAction(const CFavouritesURL& favURL);
28
29 } // namespace FAVOURITES_UTILS