22 #ifndef KPLAYOBJECTFACTORY_H
23 #define KPLAYOBJECTFACTORY_H
26 #include <kdelibs_export.h>
28 #include "soundserver.h"
29 #include "kplayobject.h"
33 class KDE_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;
119 KDE::PlayObject *createPlayObject(
const KURL& url,
const TQString &mimetype,
bool createBUS);
137 static TQStringList mimeTypes(
void);
144 Arts::SoundServerV2 server;