xbmc
DialogGameVideoRotation.h
1 /*
2  * Copyright (C) 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 "DialogGameVideoSelect.h"
12 
13 #include <string>
14 #include <vector>
15 
16 namespace KODI
17 {
18 namespace GAME
19 {
24 {
25 public:
27  ~CDialogGameVideoRotation() override = default;
28 
29 protected:
30  // implementation of CDialogGameVideoSelect
31  std::string GetHeading() override;
32  void PreInit() override;
33  void GetItems(CFileItemList& items) override;
34  void OnItemFocus(unsigned int index) override;
35  unsigned int GetFocusedItem() const override;
36  void PostExit() override;
37  bool OnClickAction() override;
38 
39 private:
40  // Helper functions
41  static std::string GetRotationLabel(unsigned int rotationDegCCW);
42 
43  // Dialog parameters
44  std::vector<unsigned int> m_rotations; // Degrees counter-clockwise
45 };
46 } // namespace GAME
47 } // namespace KODI
Definition: DialogGameVideoSelect.h:30
Represents a list of files.
Definition: FileItem.h:721
Definition: AudioDecoder.h:18
Definition: DialogGameVideoRotation.h:23