soundplayer.h 482 Bytes
#ifndef SOUNDPLAYER_H
#define SOUNDPLAYER_H

#include <QObject>
#include <QSound>
#include <QMap>

class SoundPlayer : public QObject
{
    Q_OBJECT
public:
    static void play(const QString &filename);
    static void playClick();
    static void playStart();
    static void playStop();
    static void playError1();
    static void playError2();

signals:

public slots:

private:
    static QMap<QString, QSound *> map;
    static QSound *current;

};

#endif // SOUNDPLAYER_H