You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdegames/ktuberling/soundfactory.h

47 lines
943 B

/* -------------------------------------------------------------
KDE Tuberling
Sound factory
mailto:e.bischoff@noos.fr
------------------------------------------------------------- */
#ifndef _SOUNDFACTORY_H_
#define _SOUNDFACTORY_H_
#include "qobject.h"
class QDomDocument;
class TopLevel;
class SoundFactory : public QObject
{
Q_OBJECT
public:
SoundFactory(TopLevel *parent, const char *name, uint selectedLanguage);
~SoundFactory();
void change(uint selectedLanguage);
void playSound(const QString &soundRef) const;
protected:
bool registerLanguages(QDomDocument &layoutDocument);
bool loadLanguage(QDomDocument &layoutDocument, uint toLoad);
private:
void loadFailure();
private:
int sounds; // Number of sounds
QString *namesList, // List of sound names
*filesList; // List of sound files associated with each sound name
TopLevel *topLevel; // Top-level window
};
#endif