BIC Problem with KPlayObjectFactory resolved

Stefan Westerfeld stefan at space.twc.de
Thu Aug 29 20:53:48 BST 2002


   Hi!

On Thu, Aug 29, 2002 at 01:07:10PM -0700, Neil Stevens wrote:
> Can the Creator be made a "singleton," storing its own pointer?  That 
> should allow the Factory to use a Creator without problems.

The idea of making a Creator a class of its own which you have to instantiate
before using it was to have a straightforward way of cancelling creation
requests. For instance, think of a kaboodle embedded into a web page that
should play a stream. Now if the web page changes to a different one, then
obviously the creation can be cancelled.

Technically this should be implemeneted as having the creator instance a child
QObject of the Kaboodle QObject. That way, once the kaboodle gets deleted,
the creation process, with all resources bound to it, gets cancelled.

All of this doesn't work if the creator is a singleton.

Maybe one could find a similar class the kde libraries (maybe KIOJobs are
similar in behaviour, in terms of having an asynchronous action with an
asynchronous result, which can be cancelled in between) and model the API
closely after this class.

   Cu... Stefan
-- 
  -* Stefan Westerfeld, stefan at space.twc.de (PGP!), Hamburg/Germany
     KDE Developer, project infos at http://space.twc.de/~stefan/kde *-         



More information about the kde-multimedia mailing list