BIC Problem with KPlayObjectFactory resolved

Matthias Welwarsky matze at stud.fbi.fh-darmstadt.de
Wed Aug 28 00:21:48 BST 2002


Hi,

few weeks ago, Simon Hausmann wrote in a mail to kde-core-devel that 
kplayobjectfactory contains changes binary incompatibel to KDE 3.0.

The patches I placed there to implement proper mimetype recognition for media 
streams were the cause of this incompatibility, and as they are especially 
ugly (enter_loop() hackery) and even cause crashes in konqueror I propose to 
remove them and implement an alternative interface, like such:

class KPlayObjectCreator : public QObject
{
Q_OBJECT
public:
        KPlayObjectCreator(Arts::SoundServerV2 server);
        ~KPlayObjectCreator();

        bool create(const KURL& url, bool createBUS);
        bool create(const KURL& url, const QString &mimetype, bool createBUS);

signals:
        void playObjectCreated(KPlayObject* playObject);
};

The creator would work similar to KPlayObjectFactory, different only in that 
the create() method would not return the KPlayObject directly but emit 
playObjectCreated() once the mimetype of the stream is known.

Comments?

regards,
	matze

-- 
Matthias Welwarsky
Fachschaft Informatik FH Darmstadt
Email: matze at stud.fbi.fh-darmstadt.de

"all software sucks equally, but some software is more equal"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: signature
URL: <http://mail.kde.org/pipermail/kde-multimedia/attachments/20020828/9c280f3d/attachment.sig>


More information about the kde-multimedia mailing list