[prev in list] [next in list] [prev in thread] [next in thread] 

List:       amarok-devel
Subject:    Re: Queue Manager
From:       Casey Link <unnamedrambler () gmail ! com>
Date:       2010-02-01 13:05:28
Message-ID: fb3727061002010505v2a721dcek84a8f743625fc938 () mail ! gmail ! com
[Download RAW message or body]

> Concerning the actual implementation: currently I use a very basic approach by
> simply polling TrackNavigator::queue() from within a QueueEngine and
> subscribing to the QueueEngine from a QueueManager context applet. To be able
> to access the queue from within the QueueEngine I had to AMAROK_EXPORT the
> class TrackNavigator, but probably it would be better to create an observer
> pattern like a separate TrackQueue-class and a TrackQueueObserver. What do you
> think about this approach?

Why not emit a signal when the queue is modified, and connect that
signal to a slot in your manager?

Casey
_______________________________________________
Amarok-devel mailing list
Amarok-devel@kde.org
https://mail.kde.org/mailman/listinfo/amarok-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic