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