kodi
xbmc
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
18
struct
CEjectDisk
:
CStaticContextMenuAction
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
25
struct
CEjectDrive
:
CStaticContextMenuAction
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
32
struct
CAddRemoveFavourite
:
IContextMenuItem
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
}
CONTEXTMENU::CEjectDrive
Definition:
ContextMenus.h:25
CONTEXTMENU
Definition:
ContextMenus.cpp:21
IContextMenuItem
Definition:
ContextMenuItem.h:28
CONTEXTMENU::CEjectDisk
Definition:
ContextMenus.h:18
CONTEXTMENU::CAddRemoveFavourite
Definition:
ContextMenus.h:32
CStaticContextMenuAction
Definition:
ContextMenuItem.h:40
CFileItem
Represents a file on a share.
Definition:
FileItem.h:102
Generated by
1.8.13