MythTV  master
gamesettings.h
Go to the documentation of this file.
1 #ifndef GAMESETTINGS_H
2 #define GAMESETTINGS_H
3 
4 // MythTV headers
5 #include <standardsettings.h>
6 
7 QString GetGameTypeName(const QString &GameType);
8 QString GetGameTypeExtensions(const QString &GameType);
9 
11 {
12  Q_OBJECT
13 public:
15 };
16 
18 {
19  PlayerId(uint id) : AutoIncrementSetting("gameplayers", "gameplayerid")
20  { setValue(id); }
21 
22  int Value() const { return getValue().toInt(); }
23 };
24 
26 {
27  Q_OBJECT
28 public:
29  GamePlayerSetting(const QString& name, uint id = 0);
30 
31  void Save() override; // StandardSetting
32  bool canDelete() override { return true; } // GroupSetting
33  void deleteEntry() override; // GroupSetting
34 
35 private:
37 };
38 
40 {
41  Q_OBJECT
42 public:
44 
45 private:
46  void Load() override; // StandardSetting
47  void NewPlayerDialog();
48  void CreateNewPlayer(const QString& name);
49 };
50 
51 #endif
PlayerId(uint id)
Definition: gamesettings.h:19
#define MPUBLIC
Definition: mythexp.h:10
virtual void Load(void)
void Save() override
virtual QString getValue(void) const
QString GetGameTypeExtensions(const QString &GameType)
unsigned int uint
Definition: compat.h:140
void deleteEntry() override
QString GetGameTypeName(const QString &GameType)
int Value() const
Definition: gamesettings.h:22
bool canDelete() override
Definition: gamesettings.h:32
virtual void setValue(const QString &newValue)
GamePlayerSetting(const QString &name, uint id=0)
Settings for a game player.