MythTV  master
gamesettings.h
Go to the documentation of this file.
1 #ifndef GAMESETTINGS_H
2 #define GAMESETTINGS_H
3 
4 // MythTV headers
7 
8 QString GetGameTypeName(const QString &GameType);
9 QString GetGameTypeExtensions(const QString &GameType);
10 
12 {
13  Q_OBJECT
14 public:
16 };
17 
19 {
20  explicit PlayerId(uint id) : AutoIncrementSetting("gameplayers", "gameplayerid")
21  { setValue(id); }
22 
23  int Value() const { return getValue().toInt(); }
24 };
25 
27 {
28  Q_OBJECT
29 public:
30  explicit GamePlayerSetting(const QString& name, uint id = 0);
31 
32  void Save() override; // StandardSetting
33  bool canDelete() override { return true; } // GroupSetting
34  void deleteEntry() override; // GroupSetting
35 
36 private:
38 };
39 
41 {
42  Q_OBJECT
43 public:
45 
46 private:
47  void Load() override; // StandardSetting
48  void NewPlayerDialog() const;
49  void CreateNewPlayer(const QString& name);
50 };
51 
52 #endif
GamePlayerSetting::canDelete
bool canDelete() override
Definition: gamesettings.h:33
StandardSetting::setValue
virtual void setValue(const QString &newValue)
Definition: standardsettings.cpp:170
GamePlayerSetting::m_id
PlayerId m_id
Definition: gamesettings.h:37
GetGameTypeExtensions
QString GetGameTypeExtensions(const QString &GameType)
Definition: gamesettings.cpp:46
mythpluginexport.h
GamePlayerSetting::Save
void Save() override
Definition: gamesettings.cpp:329
GameGeneralSettings
Definition: gamesettings.h:11
StandardSetting::Load
virtual void Load(void)
Definition: standardsettings.cpp:214
GamePlayersList
Definition: gamesettings.h:40
GamePlayerSetting::deleteEntry
void deleteEntry() override
Definition: gamesettings.cpp:336
StandardSetting::getValue
virtual QString getValue(void) const
Definition: standardsettings.h:52
uint
unsigned int uint
Definition: compat.h:79
GamePlayerSetting
Definition: gamesettings.h:26
AutoIncrementSetting
Definition: standardsettings.h:127
PlayerId::Value
int Value() const
Definition: gamesettings.h:23
standardsettings.h
MPLUGIN_PUBLIC
#define MPLUGIN_PUBLIC
Definition: mythpluginexport.h:9
GetGameTypeName
QString GetGameTypeName(const QString &GameType)
Definition: gamesettings.cpp:36
PlayerId::PlayerId
PlayerId(uint id)
Definition: gamesettings.h:20
PlayerId
Definition: gamesettings.h:18
GameType
Definition: gamesettings.cpp:246
GamePlayerSetting::GamePlayerSetting
GamePlayerSetting(const QString &name, uint id=0)
Settings for a game player.
Definition: gamesettings.cpp:311
GroupSetting
Definition: standardsettings.h:435