32 #include <QSharedDataPointer>
42 Q_CLASSINFO(
"Service",
"Sound")
45 virtual ~SoundBackend() {}
46 virtual void playSound(
const QString &filename) = 0;
47 virtual QStringList supportedFormats() = 0;
49 virtual void virtual_hook(
int type,
void *data);
56 SoundTheme(
const QString name = QString());
57 SoundTheme(
const SoundTheme &other);
58 SoundTheme(SoundThemeData *data);
60 SoundTheme &operator =(
const SoundTheme &other);
65 QString themeName()
const;
68 QSharedDataPointer<SoundThemeData> d;
71 class SoundThemeProviderPrivate;
80 virtual QString themeName() = 0;
81 virtual bool saveTheme();
83 virtual void virtual_hook(
int type,
void *data);
84 QScopedPointer<SoundThemeProviderPrivate> p;
100 static Sound *instance();
105 static void setTheme(
const QString &name);
108 void currentThemeChanged(
const QString &themeName);