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