RFC: disabled (or not yet enabled) collections in the browser

Bart Cerneels bart.cerneels at kde.org
Mon Jul 19 20:54:07 CEST 2010


On Mon, Jul 19, 2010 at 20:50, Andy Coder <andrew.coder at gmail.com> wrote:
> On Mon, Jul 19, 2010 at 9:37 AM, Bart Cerneels <bart.cerneels at kde.org> wrote:
>> I want to make it possible to list a collection in the CB but not
>> actually enable it until the user has clicked on the collection root
>> item.
>>
>> Use case for this:
>>
>> - UMS Collection is not scanned by default (huge resource drain). It's
>> already listed in the CB but without tracks until the "Scan device"
>> action is triggered. That action is only shown if the mouse is over
>> the root item because it would cause to much visual clutter if always
>> visible. As long as the collection is not enabled though there is no
>> byline text either.
>> If the root item would show "click to start scanning" it would be a
>> lot easier to use for novice users already.
>>
>> - Nikhil's UPnP collection also needs to scan if the mediaserver does
>> not support Search. This "directory-walking" uses network, CPU and
>> memory resources in a serious intensive way. If a couple, or one very
>> large, search-less UPnP mediaservers are on the network, this could
>> bring amarok to it's knees. The user will click servers that really
>> should be scanned.
>>
>>
>> Currently the byline (text underneath the collection's name) is
>> hardcoded to show track count. I would like to change this to show a
>> different text when the collection is disabled and trigger some action
>> when the item is clicked.
>>
>> I plan to add a state to Collection and use it in the browser with a
>> hardcoded string. When state == disabled some function will be
>> triggered to enable a collection ( perhaps re-using
>> startIncrementalScan() ).
>>
>> Does anyone have a different use case that requires a custom byline?
>> Perhaps we should not hardcode any of the bylines.
>
> I don't know if I'd say that my PlaydarCollection requires it, but it
> would probably be better for users to see something like "Playdar
> Ready: search for music to populate" rather than "0 tracks" when it's
> empty, (as is always the case at the start of a session).
>
>  - Andy Coder

ok, so that is one very good usecase for a custom byline.


More information about the Amarok-devel mailing list