kodi
ContextMenus.h
1 /*
2  * Copyright (C) 2016-2018 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 "ContextMenuItem.h"
12 
13 #include <memory>
14 
15 namespace CONTEXTMENU
16 {
17 
19 {
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;
23 };
24 
26 {
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;
30 };
31 
33 {
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;
38 };
39 
40 }
Definition: ContextMenus.h:25
Definition: ContextMenus.cpp:21
Definition: ContextMenuItem.h:28
Definition: ContextMenus.h:18
Definition: ContextMenus.h:32
Definition: ContextMenuItem.h:40
Represents a file on a share.
Definition: FileItem.h:102