Meta::Album: introduce canUpdateCompilation(), setCompilation()
authorMatěj Laitl <matej@laitl.cz>
Tue, 1 May 2012 16:14:56 +0000 (18:14 +0200)
committerMatěj Laitl <matej@laitl.cz>
Tue, 1 May 2012 19:01:50 +0000 (21:01 +0200)
commit59fa0ee6d3f2cbbe1298e74b7fc56f838712fa0e
tree5d792d948bd33fe959672cb87442261a7b917387
parentdf2f5ecfa5c998fd2e9b9f3c1047ef1cd70bc345
Meta::Album: introduce canUpdateCompilation(), setCompilation()

and convert subclasses to use these. Many many subclasses already had
equivalent methods, this reduces code duplication and eliminates one
static_cast. Some subclasses had equivalent methods but never used
them, these are deleted in order to avoid dead code.

This is a prerequisite for next commit that unifies album actions
across collections. This is rather a bigger change, so I'm CCing
list - if anyone opposes, raise your voice.

CCMAIL: amarok-devel@kde.org
20 files changed:
src/amarokurls/BookmarkTreeView.cpp
src/core-impl/collections/audiocd/AudioCdCollection.cpp
src/core-impl/collections/audiocd/AudioCdMeta.cpp
src/core-impl/collections/audiocd/AudioCdMeta.h
src/core-impl/collections/daap/DaapMeta.cpp
src/core-impl/collections/daap/DaapMeta.h
src/core-impl/collections/db/sql/SqlMeta.cpp
src/core-impl/collections/db/sql/SqlMeta.h
src/core-impl/collections/ipodcollection/IpodMeta.cpp
src/core-impl/collections/ipodcollection/IpodMeta.h
src/core-impl/collections/support/MemoryMeta.cpp
src/core-impl/collections/support/MemoryMeta.h
src/core-impl/collections/upnpcollection/UpnpMeta.cpp
src/core-impl/collections/upnpcollection/UpnpMeta.h
src/core-impl/meta/timecode/TimecodeMeta.cpp
src/core-impl/meta/timecode/TimecodeMeta.h
src/core/meta/Meta.h
src/services/ServiceMetaBase.cpp
src/services/ServiceMetaBase.h
src/services/amazon/AmazonParser.cpp