MythTV  master
gamedetails.h
Go to the documentation of this file.
1 #ifndef GAMEDETAILS_H_
2 #define GAMEDETAILS_H_
3 
4 // Qt
5 #include <QString>
6 
7 // MythTV
9 
10 // MythGame
11 #include "rominfo.h"
12 
14 {
15  Q_OBJECT
16 
17  public:
18  GameDetailsPopup(MythScreenStack *parent, const RomInfo *romInfo) :
19  MythScreenType (parent, "gamedetailspopup"),
20  m_romInfo(romInfo) {}
21  ~GameDetailsPopup() override = default;
22 
23  bool Create(void) override; // MythScreenType
24  void SetReturnEvent(QObject *retobject, const QString &resultid);
25 
26  private slots:
27  void Play(void);
28 
29  private:
30  void handleText(const QString &name, const QString &value);
31  void handleImage(const QString &name, const QString &filename);
32 
33  const RomInfo *m_romInfo {nullptr};
34  QString m_id;
35  QObject *m_retObject {nullptr};
36 
37  MythUIText *m_gameName {nullptr};
38  MythUIText *m_gameType {nullptr};
39  MythUIText *m_romName {nullptr};
40  MythUIText *m_crc {nullptr};
41  MythUIText *m_romPath {nullptr};
42  MythUIText *m_genre {nullptr};
43  MythUIText *m_year {nullptr};
44  MythUIText *m_country {nullptr};
45  MythUIText *m_plot {nullptr};
46  MythUIText *m_publisher {nullptr};
49  MythUIImage *m_boxImage {nullptr};
50 
53 };
54 
55 #endif
56 
GameDetailsPopup::GameDetailsPopup
GameDetailsPopup(MythScreenStack *parent, const RomInfo *romInfo)
Definition: gamedetails.h:18
MythUIImage
Image widget, displays a single image or multiple images in sequence.
Definition: mythuiimage.h:97
GameDetailsPopup::~GameDetailsPopup
~GameDetailsPopup() override=default
GameDetailsPopup::m_retObject
QObject * m_retObject
Definition: gamedetails.h:35
GameDetailsPopup::m_country
MythUIText * m_country
Definition: gamedetails.h:44
MythScreenStack
Definition: mythscreenstack.h:16
GameDetailsPopup::handleText
void handleText(const QString &name, const QString &value)
Definition: gamedetails.cpp:16
GameDetailsPopup::Play
void Play(void)
Definition: gamedetails.cpp:79
MythScreenType
Screen in which all other widgets are contained and rendered.
Definition: mythscreentype.h:45
GameDetailsPopup::m_boxImage
MythUIImage * m_boxImage
Definition: gamedetails.h:49
GameDetailsPopup::m_crc
MythUIText * m_crc
Definition: gamedetails.h:40
GameDetailsPopup::m_playButton
MythUIButton * m_playButton
Definition: gamedetails.h:51
GameDetailsPopup::m_gameName
MythUIText * m_gameName
Definition: gamedetails.h:37
GameDetailsPopup::m_doneButton
MythUIButton * m_doneButton
Definition: gamedetails.h:52
MythUIButton
A single button widget.
Definition: mythuibutton.h:21
rominfo.h
GameDetailsPopup::m_fanartImage
MythUIImage * m_fanartImage
Definition: gamedetails.h:48
GameDetailsPopup::m_romInfo
const RomInfo * m_romInfo
Definition: gamedetails.h:33
GameDetailsPopup::Create
bool Create(void) override
Definition: gamedetails.cpp:42
GameDetailsPopup::m_genre
MythUIText * m_genre
Definition: gamedetails.h:42
GameDetailsPopup::m_allSystems
MythUIText * m_allSystems
Definition: gamedetails.h:47
GameDetailsPopup
Definition: gamedetails.h:13
RomInfo
Definition: rominfo.h:14
GameDetailsPopup::SetReturnEvent
void SetReturnEvent(QObject *retobject, const QString &resultid)
Definition: gamedetails.cpp:89
GameDetailsPopup::m_year
MythUIText * m_year
Definition: gamedetails.h:43
MythUIText
All purpose text widget, displays a text string.
Definition: mythuitext.h:28
GameDetailsPopup::m_id
QString m_id
Definition: gamedetails.h:34
GameDetailsPopup::m_romPath
MythUIText * m_romPath
Definition: gamedetails.h:41
GameDetailsPopup::m_romName
MythUIText * m_romName
Definition: gamedetails.h:39
GameDetailsPopup::m_gameType
MythUIText * m_gameType
Definition: gamedetails.h:38
GameDetailsPopup::handleImage
void handleImage(const QString &name, const QString &filename)
Definition: gamedetails.cpp:26
GameDetailsPopup::m_plot
MythUIText * m_plot
Definition: gamedetails.h:45
build_compdb.filename
filename
Definition: build_compdb.py:21
mythscreentype.h
GameDetailsPopup::m_publisher
MythUIText * m_publisher
Definition: gamedetails.h:46