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