Changeset View
Changeset View
Standalone View
Standalone View
src/core-impl/collections/support/TrashCollectionLocation.cpp
Show All 13 Lines | |||||
14 | * this program. If not, see <http://www.gnu.org/licenses/>. * | 14 | * this program. If not, see <http://www.gnu.org/licenses/>. * | ||
15 | ****************************************************************************************/ | 15 | ****************************************************************************************/ | ||
16 | 16 | | |||
17 | #define DEBUG_PREFIX "TrashCollectionLocation" | 17 | #define DEBUG_PREFIX "TrashCollectionLocation" | ||
18 | 18 | | |||
19 | #include "TrashCollectionLocation.h" | 19 | #include "TrashCollectionLocation.h" | ||
20 | 20 | | |||
21 | #include "core/collections/CollectionLocationDelegate.h" | 21 | #include "core/collections/CollectionLocationDelegate.h" | ||
22 | #include "core/interfaces/Logger.h" | 22 | #include "core/logger/Logger.h" | ||
23 | #include "core/support/Components.h" | 23 | #include "core/support/Components.h" | ||
24 | #include "core/support/Debug.h" | 24 | #include "core/support/Debug.h" | ||
25 | 25 | | |||
26 | 26 | | |||
27 | #include <KIO/CopyJob> | 27 | #include <KIO/CopyJob> | ||
28 | #include <KLocalizedString> | 28 | #include <KLocalizedString> | ||
29 | 29 | | |||
30 | #include <QFile> | 30 | #include <QFile> | ||
▲ Show 20 Lines • Show All 62 Lines • ▼ Show 20 Line(s) | 90 | { | |||
93 | { | 93 | { | ||
94 | name += QString( ", %1" ).arg( tracks.takeFirst()->prettyName() ); | 94 | name += QString( ", %1" ).arg( tracks.takeFirst()->prettyName() ); | ||
95 | --max; | 95 | --max; | ||
96 | } | 96 | } | ||
97 | 97 | | |||
98 | if( max == 0 && !tracks.isEmpty() ) | 98 | if( max == 0 && !tracks.isEmpty() ) | ||
99 | name += " ..."; | 99 | name += " ..."; | ||
100 | } | 100 | } | ||
101 | Amarok::Components::logger()->newProgressOperation( job, i18n( "Moving to trash: %1", name ) ); | 101 | Amarok::Logger::newProgressOperation( job, i18n( "Moving to trash: %1", name ) ); | ||
102 | } | 102 | } | ||
103 | } | 103 | } | ||
104 | 104 | | |||
105 | void | 105 | void | ||
106 | TrashCollectionLocation::showDestinationDialog( const Meta::TrackList &tracks, bool removeSources, const Transcoding::Configuration &configuration ) | 106 | TrashCollectionLocation::showDestinationDialog( const Meta::TrackList &tracks, bool removeSources, const Transcoding::Configuration &configuration ) | ||
107 | { | 107 | { | ||
108 | Collections::CollectionLocationDelegate *delegate = Amarok::Components::collectionLocationDelegate(); | 108 | Collections::CollectionLocationDelegate *delegate = Amarok::Components::collectionLocationDelegate(); | ||
109 | m_trashConfirmed = delegate->reallyTrash( source(), tracks ); | 109 | m_trashConfirmed = delegate->reallyTrash( source(), tracks ); | ||
Show All 30 Lines |