xbmc
GUIInfoHelper.h
1 /*
2  * Copyright (C) 2005-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 "playlists/PlayListTypes.h"
12 
13 #include <memory>
14 #include <string>
15 
16 class CFileItem;
17 
18 class CGUIListItem;
19 typedef std::shared_ptr<CGUIListItem> CGUIListItemPtr;
20 
21 class CGUIControl;
22 class CGUIMediaWindow;
23 class CGUIWindow;
24 
25 namespace KODI
26 {
27 namespace GUILIB
28 {
29 namespace GUIINFO
30 {
31 
32 std::string GetPlaylistLabel(int item, PLAYLIST::Id playlistid = PLAYLIST::TYPE_NONE);
33 
34 CGUIWindow* GetWindow(int contextWindow);
35 CGUIControl* GetActiveContainer(int containerId, int contextWindow);
36 CGUIMediaWindow* GetMediaWindow(int contextWindow);
37 CGUIListItemPtr GetCurrentListItem(int contextWindow, int containerId = 0, int itemOffset = 0, unsigned int itemFlags = 0);
38 
39 std::string GetFileInfoLabelValueFromPath(int info, const std::string& filenameAndPath);
40 
41 } // namespace GUIINFO
42 } // namespace GUILIB
43 } // namespace KODI
Definition: GUIListItem.h:30
Base class for controls.
Definition: GUIControl.h:75
Controller configuration window.
Definition: AudioDecoder.h:18
Definition: GUIWindow.h:58
Definition: GUIMediaWindow.h:28
Represents a file on a share.
Definition: FileItem.h:102