xbmc
GUIWindowGames.h
1 /*
2  * Copyright (C) 2012-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 "windows/GUIMediaWindow.h"
12 
13 class CGUIDialogProgress;
14 
15 namespace KODI
16 {
17 namespace GAME
18 {
20 {
21 public:
23  ~CGUIWindowGames() override = default;
24 
25  // implementation of CGUIControl via CGUIMediaWindow
26  bool OnMessage(CGUIMessage& message) override;
27 
28 protected:
29  // implementation of CGUIMediaWindow
30  void SetupShares() override;
31  bool OnClick(int iItem, const std::string& player = "") override;
32  void GetContextButtons(int itemNumber, CContextButtons& buttons) override;
33  bool OnContextButton(int itemNumber, CONTEXT_BUTTON button) override;
34  bool OnAddMediaSource() override;
35  bool GetDirectory(const std::string& strDirectory, CFileItemList& items) override;
36  std::string GetStartFolder(const std::string& dir) override;
37 
38  bool OnClickMsg(int controlId, int actionId);
39  void OnItemInfo(int itemNumber);
40  bool PlayGame(const CFileItem& item);
41 
42  CGUIDialogProgress* m_dlgProgress = nullptr;
43 };
44 } // namespace GAME
45 } // namespace KODI
bool OnMessage(CGUIMessage &message) override
Definition: GUIWindowGames.cpp:46
bool OnClick(int iItem, const std::string &player="") override
On click.
Definition: GUIWindowGames.cpp:139
Represents a list of files.
Definition: FileItem.h:713
bool GetDirectory(const std::string &strDirectory, CFileItemList &items) override
Overwrite to fill fileitems from a source.
Definition: GUIWindowGames.cpp:241
void OnItemInfo(int itemNumber)
Definition: GUIWindowGames.cpp:312
std::string GetStartFolder(const std::string &dir) override
Translate the folder to start in from the given quick path.
Definition: GUIWindowGames.cpp:283
Controller configuration window.
Definition: AudioDecoder.h:18
Definition: GUIWindowGames.h:19
Definition: GUIMessage.h:365
Definition: GUIDialogProgress.h:16
Definition: GUIMediaWindow.h:28
Definition: GUIDialogContextMenu.h:95
Represents a file on a share.
Definition: FileItem.h:102