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
40 MythUIText *m_crc {nullptr};
42 MythUIText *m_genre {nullptr};
43 MythUIText *m_year {nullptr};
45 MythUIText *m_plot {nullptr};
50
53};
54
55#endif
56
MythUIImage * m_fanartImage
Definition: gamedetails.h:48
bool Create(void) override
Definition: gamedetails.cpp:43
MythUIText * m_genre
Definition: gamedetails.h:42
GameDetailsPopup(MythScreenStack *parent, const RomInfo *romInfo)
Definition: gamedetails.h:18
MythUIButton * m_doneButton
Definition: gamedetails.h:52
void SetReturnEvent(QObject *retobject, const QString &resultid)
Definition: gamedetails.cpp:90
MythUIText * m_year
Definition: gamedetails.h:43
void handleText(const QString &name, const QString &value)
Definition: gamedetails.cpp:15
MythUIImage * m_boxImage
Definition: gamedetails.h:49
MythUIText * m_plot
Definition: gamedetails.h:45
MythUIText * m_gameType
Definition: gamedetails.h:38
MythUIText * m_gameName
Definition: gamedetails.h:37
MythUIText * m_romName
Definition: gamedetails.h:39
MythUIText * m_country
Definition: gamedetails.h:44
MythUIText * m_crc
Definition: gamedetails.h:40
~GameDetailsPopup() override=default
const RomInfo * m_romInfo
Definition: gamedetails.h:33
QObject * m_retObject
Definition: gamedetails.h:35
void handleImage(const QString &name, const QString &filename)
Definition: gamedetails.cpp:25
MythUIText * m_allSystems
Definition: gamedetails.h:47
void Play(void)
Definition: gamedetails.cpp:80
MythUIText * m_romPath
Definition: gamedetails.h:41
MythUIButton * m_playButton
Definition: gamedetails.h:51
MythUIText * m_publisher
Definition: gamedetails.h:46
Screen in which all other widgets are contained and rendered.
A single button widget.
Definition: mythuibutton.h:22
Image widget, displays a single image or multiple images in sequence.
Definition: mythuiimage.h:98
All purpose text widget, displays a text string.
Definition: mythuitext.h:29