mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-02 03:23:56 -07:00
sound themes
This commit is contained in:
parent
226a8cc017
commit
85aa866e02
22 changed files with 132 additions and 72 deletions
|
|
@ -2,16 +2,26 @@
|
|||
#define SOUNDENGINE_H
|
||||
|
||||
#include <QObject>
|
||||
#include <QMap>
|
||||
#include <QDir>
|
||||
#include <QString>
|
||||
|
||||
typedef QMap<QString, QString> QStringMap;
|
||||
|
||||
class SoundEngine : public QObject {
|
||||
Q_OBJECT
|
||||
private:
|
||||
bool enabled;
|
||||
private slots:
|
||||
void soundEnabledChanged();
|
||||
public:
|
||||
SoundEngine(QObject *parent = 0);
|
||||
void playSound(QString fileName);
|
||||
QStringMap &getAvailableThemes();
|
||||
private:
|
||||
bool enabled;
|
||||
QStringMap availableThemes;
|
||||
protected:
|
||||
void ensureThemeDirectoryExists();
|
||||
private slots:
|
||||
void soundEnabledChanged();
|
||||
void themeChangedSlot();
|
||||
public slots:
|
||||
void testSound();
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue