2 * Copyright (C) 2016-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 "ContextMenuItem.h"
18 struct CEjectDisk
: CStaticContextMenuAction
20 CEjectDisk() : CStaticContextMenuAction(13391) {} // Eject/Load CD/DVD!
21 bool IsVisible(const CFileItem
& item
) const override
;
22 bool Execute(const std::shared_ptr
<CFileItem
>& item
) const override
;
25 struct CEjectDrive
: CStaticContextMenuAction
27 CEjectDrive() : CStaticContextMenuAction(13420) {} // Eject Removable HDD!
28 bool IsVisible(const CFileItem
& item
) const override
;
29 bool Execute(const std::shared_ptr
<CFileItem
>& item
) const override
;
32 struct CAddRemoveFavourite
: IContextMenuItem
34 CAddRemoveFavourite() = default;
35 std::string
GetLabel(const CFileItem
& item
) const override
;
36 bool IsVisible(const CFileItem
& item
) const override
;
37 bool Execute(const std::shared_ptr
<CFileItem
>& item
) const override
;