Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

KDE::PlayObjectFactory Class Reference

#include <kplayobjectfactory.h>

List of all members.

Public Methods

 PlayObjectFactory (Arts::SoundServerV2 server)
KDE::PlayObjectcreatePlayObject (const KURL &url, bool createBUS)
KDE::PlayObjectcreatePlayObject (const KURL &url, const QString &mimetype, bool createBUS)
void setAllowStreaming (bool s)
bool allowStreaming ()

Static Public Methods

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 58 of file kplayobjectfactory.h.


Constructor & Destructor Documentation

KDE::PlayObjectFactory::PlayObjectFactory Arts::SoundServerV2    server
 

Creates a KDE::PlayObjectFactory. server is an Arts::SoundServerV2


Member Function Documentation

bool KDE::PlayObjectFactory::allowStreaming   [inline]
 

returns "true" if the factory is allowed to create streaming PlayObjects.

Definition at line 97 of file kplayobjectfactory.h.

KDE::PlayObject* KDE::PlayObjectFactory::createPlayObject const KURL   url,
const QString &    mimetype,
bool    createBUS
 

This method also creates a KDE::PlayObject, but does no automatic mimetype detection. Use this method with care.

KDE::PlayObject* KDE::PlayObjectFactory::createPlayObject const KURL   url,
bool    createBUS
 

Creates a KDE::PlayObject to play back the file or stream url points to. Set createBUS to "true", if you want the PlayObject to be connected to a SYNTH_BUS_UPLINK on creation. This is usually the case. You only need to set this to "false" if you want to attach your own sound effects to the PlayObject.

You don't need to know the mimetype of the file or stream, it will be detected automatically.

QStringList KDE::PlayObjectFactory::mimeTypes void    [static]
 

Return the mimetypes that are playable

void KDE::PlayObjectFactory::setAllowStreaming bool    s [inline]
 

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 91 of file kplayobjectfactory.h.


The documentation for this class was generated from the following file:
Generated on Wed Aug 13 23:30:32 2003 for kdelibs by doxygen1.2.18