Revision 792517

Go back to digest for 6th April 2008

Features in Multimedia

Nikolaj Hald Nielsen committed changes in /trunk/extragear/multimedia/amarok/src:

Make it possible for QueryMakers to define which levels of filters they accept.
The default implementation is to accept everything. Some QueryMakers ( Such as Ampache and Mp3Tunes ) do not support filters for all the levels in the collection tree, and thus override the validFilterMask() function to return a mask of the filter levels that they support.

The collectionTreItemModelBase has been updated to honor this and only add filters that are accepted. The AmpacheQueryMaker now only accepts Artist filters.

This system will also be really useful for making the FilterEditor aware of which filter options should be available depending on which collection we are building filters for.

File Changes

Modified 6 files
  • /trunk/extragear/multimedia/amarok/src
  •   /collection/QueryMaker.cpp
  •   /collection/QueryMaker.h
  •   /collectionbrowser/CollectionTreeItemModelBase.cpp
  •   /servicebrowser/ampache/AmpacheServiceQueryMaker.cpp
  •   /servicebrowser/ampache/AmpacheServiceQueryMaker.h
  •   /servicebrowser/magnatunestore/MagnatuneStore.cpp
6 files changed in total