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

kplayobjectcreator.h

00001         /*
00002 
00003         Copyright (C) 2002 Matthias Welwarsky <mwelwarsky@web.de>
00004 
00005         This library is free software; you can redistribute it and/or
00006         modify it under the terms of the GNU Library General Public
00007         License as published by the Free Software Foundation; either
00008         version 2 of the License, or (at your option) any later version.
00009   
00010         This library is distributed in the hope that it will be useful,
00011         but WITHOUT ANY WARRANTY; without even the implied warranty of
00012         MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013         Library General Public License for more details.
00014 
00015         You should have received a copy of the GNU Library General Public License
00016         along with this library; see the file COPYING.LIB.  If not, write to
00017         the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00018         Boston, MA 02111-1307, USA.
00019 
00020         */
00021 
00022 #ifndef KPLAYOBJECTCREATOR_H
00023 #define KPLAYOBJECTCREATOR_H
00024 
00025 #include <kurl.h>
00026 #include <qobject.h>
00027 #include "soundserver.h"
00028 #include "kioinputstream_impl.h"
00029 
00030 namespace KDE {
00031 
00032 class PlayObjectCreator : public QObject
00033 {
00034 Q_OBJECT
00035 public:
00036         PlayObjectCreator(Arts::SoundServerV2 server);
00037         ~PlayObjectCreator();
00038 
00039         bool create(const KURL& url, bool createBUS, const QObject* receiver, const char* slot);
00040 
00041 signals:
00042         void playObjectCreated(Arts::PlayObject playObject);
00043 
00044 private slots:
00045         void slotMimeType(const QString &mimetype);
00046 
00047 private:
00048         Arts::SoundServerV2 m_server;
00049         Arts::KIOInputStream m_instream;
00050         Arts::PlayObject playObject;
00051         bool m_createBUS;
00052 };
00053 
00054 }
00055 #endif
00056 

Generated on Wed Aug 13 23:29:54 2003 for kdelibs by doxygen1.2.18