mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-01 11:03:54 -07:00
Refactred settings to use settingscache & ini files
This commit is contained in:
parent
9c28cdd1f5
commit
c8d59eec5e
29 changed files with 780 additions and 241 deletions
29
cockatrice/src/settings/messagesettings.h
Normal file
29
cockatrice/src/settings/messagesettings.h
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
#ifndef MESSAGESETTINGS_H
|
||||
#define MESSAGESETTINGS_H
|
||||
|
||||
#include "settingsmanager.h"
|
||||
|
||||
class MessageSettings : public SettingsManager
|
||||
{
|
||||
Q_OBJECT
|
||||
friend class SettingsCache;
|
||||
|
||||
public:
|
||||
int getCount();
|
||||
QString getMessageAt(int index);
|
||||
|
||||
void setCount(int count);
|
||||
void setMessageAt(int index, QString message);
|
||||
signals:
|
||||
|
||||
public slots:
|
||||
|
||||
private:
|
||||
MessageSettings(QString settingPath, QObject *parent = 0);
|
||||
MessageSettings( const MessageSettings& /*other*/ );
|
||||
MessageSettings( MessageSettings& /*other*/ );
|
||||
MessageSettings( volatile const MessageSettings& /*other*/ );
|
||||
MessageSettings( volatile MessageSettings& /*other*/ );
|
||||
};
|
||||
|
||||
#endif // MESSAGESETTINGS_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue