backend.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef BACKEND_H
00021 #define BACKEND_H
00022
00023 #include <qobject.h>
00024 #include <kdemacros.h>
00025 #include <kdemm/channel.h>
00026 #include <kurl.h>
00027
00028 namespace KDE
00029 {
00030 namespace Multimedia
00031 {
00032 class Player;
00033 class VideoPlayer;
00044 class KDE_EXPORT Backend : public QObject
00045 {
00046 Q_OBJECT
00047 public:
00051 Backend( QObject * parent = 0, const char * name = 0 );
00052 virtual ~Backend();
00053
00057 virtual Player * createPlayer() = 0;
00058
00066 virtual VideoPlayer * createVideoPlayer() { return 0; }
00067
00068 virtual bool playSoundEvent(const KURL & url);
00069
00070 virtual Channel * createChannel( const QString & title, const QString & channeltype,
00071 Channel::Direction direction ) = 0;
00072
00073 virtual QStringList availableChannels( Channel::Direction direction ) const = 0;
00074
00075 virtual QStringList playableMimeTypes() const = 0;
00076
00077 private:
00078 RESERVE_VIRTUAL_10
00079
00080 class Private;
00081 Private * d;
00082 };
00083 }}
00084
00085
00086 #endif // BACKEND_H
This file is part of the documentation for kdemm Library Version 3.4.2.