22#ifndef KPLAYOBJECTFACTORY_H
23#define KPLAYOBJECTFACTORY_H
26#include <tdelibs_export.h>
28#include "soundserver.h"
29#include "kplayobject.h"
33class TDE_EXPORT KPlayObjectFactory
40 KPlayObjectFactory(Arts::SoundServerV2 server);
51 ~KPlayObjectFactory();
53 KPlayObject *createPlayObject(
const KURL& url,
bool createBUS);
54 KPlayObject *createPlayObject(
const KURL& url,
const TQString &mimetype,
bool createBUS);
56 void setAllowStreaming(
bool s) { m_allowStreaming = s; }
57 bool allowStreaming() {
return m_allowStreaming; }
59 bool isAStream() {
return m_stream; }
62 Arts::SoundServerV2 m_server;
63 bool m_allowStreaming;
79class TDE_EXPORT PlayObjectFactory
86 PlayObjectFactory(Arts::SoundServerV2 server);
113 KDE::PlayObject *createPlayObject(
const KURL& url,
bool createBUS);
119 KDE::PlayObject *createPlayObject(
const KURL& url,
const TQString &mimetype,
bool createBUS);
126 void setAllowStreaming(
bool s) { d->allowStreaming = s; }
132 bool allowStreaming() {
return d->allowStreaming; }
137 static TQStringList mimeTypes(
void);
144 Arts::SoundServerV2 server;
145 KDE::PlayObject* playObj;
KArtsServer is a wrapper to conveniently get a reference to a SoundServer, and restart artsd when nec...
KDE Wrapper for Arts::Synth_AMAN_PLAY.