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 
14 namespace CONTEXTMENU
15 {
16 
17 struct CMusicInfo : CStaticContextMenuAction
18 {
19   explicit CMusicInfo(MediaType mediaType);
20   bool IsVisible(const CFileItem& item) const override;
21   bool Execute(const CFileItemPtr& item) const override;
22 private:
23   const MediaType m_mediaType;
24 };
25 
26 struct CAlbumInfo : CMusicInfo
27 {
CAlbumInfoCAlbumInfo28   CAlbumInfo() : CMusicInfo(MediaTypeAlbum) {}
29 };
30 
31 struct CArtistInfo : CMusicInfo
32 {
CArtistInfoCArtistInfo33   CArtistInfo() : CMusicInfo(MediaTypeArtist) {}
34 };
35 
36 struct CSongInfo : CMusicInfo
37 {
CSongInfoCSongInfo38   CSongInfo() : CMusicInfo(MediaTypeSong) {}
39 };
40 
41 }
42