KDE::PlayObjectFactory Class Reference
This class implements a factory to create KDE::PlayObjects for a given URL and mimetype. More...
#include <kplayobjectfactory.h>
Public Member Functions | |
PlayObjectFactory (Arts::SoundServerV2 server) | |
PlayObjectFactory (KArtsServer *server) | |
void | setAudioManagerPlay (KAudioManagerPlay *amanplay) |
KDE::PlayObject * | createPlayObject (const KURL &url, bool createBUS) |
KDE::PlayObject * | createPlayObject (const KURL &url, const QString &mimetype, bool createBUS) |
void | setAllowStreaming (bool s) |
bool | allowStreaming () |
Static Public Member Functions | |
QStringList | mimeTypes (void) |
Detailed Description
This class implements a factory to create KDE::PlayObjects for a given URL and mimetype.A detailed description about how to use the KDE multimedia framework can be found in the documentation for KDE::PlayObject.
Definition at line 77 of file kplayobjectfactory.h.
Constructor & Destructor Documentation
|
Creates a KDE::PlayObjectFactory.
|
|
Convenience constructor to pass a KArtsServer instead of an Arts::SoundServerV2. This equivalent to calling KDE::PlayObjectFactory( server.server() ).
References KArtsServer::server(). |
Member Function Documentation
|
If this is set the PlayObject doesn't create a Synth_BUS_UPLINK at all but always uses the Synth_AMAN_PLAY that you passed. Definition at line 114 of file kplayobjectfactory.cc. |
|
Creates a KDE::PlayObject to play back the file or stream
Set You don't need to know the mimetype of the file or stream, it will be detected automatically.Definition at line 121 of file kplayobjectfactory.cc. References KMimeType::findByURL(), and KMimeType::Ptr. |
|
This method also creates a KDE::PlayObject, but does no automatic mimetype detection. Use this method with care.Definition at line 127 of file kplayobjectfactory.cc. References QObject::connect(), endl(), KURL::isEmpty(), KURL::isLocalFile(), kdWarning(), mimeTypes(), KURL::path(), and KURL::protocol(). |
|
setAllowStreaming( true ) allows the factory to create a streaming PlayObject for a non-local URL. This is also the default. Usually, you should not need to set this to false.Definition at line 124 of file kplayobjectfactory.h. |
|
returns "true" if the factory is allowed to create streaming PlayObjects. Definition at line 130 of file kplayobjectfactory.h. |
|
Return the mimetypes that are playable. Definition at line 174 of file kplayobjectfactory.cc. References QString::fromLocal8Bit(), KMimeType::mimeType(), and QStringList::sort(). Referenced by createPlayObject(). |
The documentation for this class was generated from the following files: