MythTV
master
mythplugins
mythgame
mythgame
rom_metadata.h
Go to the documentation of this file.
1
#ifndef ROMMETADATA_H_
2
#define ROMMETADATA_H_
3
4
// C++
5
#include <utility>
6
7
// Qt
8
#include <QMap>
9
#include <QString>
10
11
class
RomData
12
{
13
public
:
14
explicit
RomData
(QString lgenre =
""
, QString lyear =
""
,
15
QString lcountry =
""
, QString lgamename =
""
,
16
QString ldescription =
""
, QString lpublisher =
""
,
17
QString lplatform =
""
, QString lversion =
""
)
18
:
m_genre
(std::move(lgenre)),
19
m_year
(std::move(lyear)),
20
m_country
(std::move(lcountry)),
21
m_gamename
(std::move(lgamename)),
22
m_description
(std::move(ldescription)),
23
m_publisher
(std::move(lpublisher)),
24
m_platform
(std::move(lplatform)),
25
m_version
(std::move(lversion))
26
{
27
}
28
29
QString
Genre
()
const
{
return
m_genre
; }
30
QString
Year
()
const
{
return
m_year
; }
31
QString
Country
()
const
{
return
m_country
; }
32
QString
GameName
()
const
{
return
m_gamename
; }
33
QString
Description
()
const
{
return
m_description
; }
34
QString
Publisher
()
const
{
return
m_publisher
; }
35
QString
Platform
()
const
{
return
m_platform
; }
36
QString
Version
()
const
{
return
m_version
; }
37
38
private
:
39
QString
m_genre
;
40
QString
m_year
;
41
QString
m_country
;
42
QString
m_gamename
;
43
QString
m_description
;
44
QString
m_publisher
;
45
QString
m_platform
;
46
QString
m_version
;
47
};
48
49
using
RomDBMap
= QMap <QString, RomData>;
50
51
QString
crcStr
(
int
crc);
52
53
QString
crcinfo
(
const
QString& romname,
const
QString&
GameType
, QString *key,
RomDBMap
*romDB);
54
55
#endif
RomData::m_genre
QString m_genre
Definition:
rom_metadata.h:39
RomData::m_platform
QString m_platform
Definition:
rom_metadata.h:45
RomData::Genre
QString Genre() const
Definition:
rom_metadata.h:29
RomData::m_gamename
QString m_gamename
Definition:
rom_metadata.h:42
RomData::m_country
QString m_country
Definition:
rom_metadata.h:41
crcinfo
QString crcinfo(const QString &romname, const QString &GameType, QString *key, RomDBMap *romDB)
Definition:
rom_metadata.cpp:59
crcStr
QString crcStr(int crc)
RomData::m_version
QString m_version
Definition:
rom_metadata.h:46
RomData::m_year
QString m_year
Definition:
rom_metadata.h:40
RomData::GameName
QString GameName() const
Definition:
rom_metadata.h:32
RomData::Publisher
QString Publisher() const
Definition:
rom_metadata.h:34
RomDBMap
QMap< QString, RomData > RomDBMap
Definition:
rom_metadata.h:49
RomData::m_description
QString m_description
Definition:
rom_metadata.h:43
RomData::Year
QString Year() const
Definition:
rom_metadata.h:30
RomData::Platform
QString Platform() const
Definition:
rom_metadata.h:35
GameType
Definition:
gamesettings.cpp:246
RomData::Country
QString Country() const
Definition:
rom_metadata.h:31
RomData
Definition:
rom_metadata.h:11
RomData::m_publisher
QString m_publisher
Definition:
rom_metadata.h:44
RomData::Description
QString Description() const
Definition:
rom_metadata.h:33
RomData::RomData
RomData(QString lgenre="", QString lyear="", QString lcountry="", QString lgamename="", QString ldescription="", QString lpublisher="", QString lplatform="", QString lversion="")
Definition:
rom_metadata.h:14
RomData::Version
QString Version() const
Definition:
rom_metadata.h:36
Generated on Tue Jan 7 2025 03:18:21 for MythTV by
1.8.17