Changeset View
Changeset View
Standalone View
Standalone View
src/core-impl/collections/ipodcollection/IpodPlaylistProvider.cpp
Show All 14 Lines | |||||
15 | ****************************************************************************************/ | 15 | ****************************************************************************************/ | ||
16 | 16 | | |||
17 | #include "IpodPlaylistProvider.h" | 17 | #include "IpodPlaylistProvider.h" | ||
18 | 18 | | |||
19 | #include "IpodCollection.h" | 19 | #include "IpodCollection.h" | ||
20 | #include "IpodCollectionLocation.h" | 20 | #include "IpodCollectionLocation.h" | ||
21 | #include "IpodPlaylist.h" | 21 | #include "IpodPlaylist.h" | ||
22 | #include "core/capabilities/ActionsCapability.h" | 22 | #include "core/capabilities/ActionsCapability.h" | ||
23 | #include "core/interfaces/Logger.h" | 23 | #include "core/logger/Logger.h" | ||
24 | #include "core/support/Components.h" | 24 | #include "core/support/Components.h" | ||
25 | #include "core/support/Debug.h" | 25 | #include "core/support/Debug.h" | ||
26 | #include "core-impl/collections/support/FileCollectionLocation.h" | 26 | #include "core-impl/collections/support/FileCollectionLocation.h" | ||
27 | 27 | | |||
28 | #include <QDir> | 28 | #include <QDir> | ||
29 | #include <QFileInfo> | 29 | #include <QFileInfo> | ||
30 | 30 | | |||
31 | #include <gpod/itdb.h> | 31 | #include <gpod/itdb.h> | ||
▲ Show 20 Lines • Show All 282 Lines • ▼ Show 20 Line(s) | 313 | QString failedText = failed ? i18np("Failed to process one track. (more info about " | |||
314 | "it is in the Amarok debugging log)", "Failed to process %1 tracks. (more info " | 314 | "it is in the Amarok debugging log)", "Failed to process %1 tracks. (more info " | ||
315 | "about these is in the Amarok debugging log)", failed ) : QString(); | 315 | "about these is in the Amarok debugging log)", failed ) : QString(); | ||
316 | QString text = i18nc( "Infrequently displayed message, don't bother with singlar " | 316 | QString text = i18nc( "Infrequently displayed message, don't bother with singlar " | ||
317 | "forms. %1 to %3 are numbers, %4 is the 'Failed to process ...' sentence or an " | 317 | "forms. %1 to %3 are numbers, %4 is the 'Failed to process ...' sentence or an " | ||
318 | "empty string.", "Done consolidating iPod files. %1 orphaned tracks matched with " | 318 | "empty string.", "Done consolidating iPod files. %1 orphaned tracks matched with " | ||
319 | "stale iTunes database entries, %2 stale database entries removed, %3 orphaned " | 319 | "stale iTunes database entries, %2 stale database entries removed, %3 orphaned " | ||
320 | "tracks added back to the iTunes database. %4", matched, removed, added, | 320 | "tracks added back to the iTunes database. %4", matched, removed, added, | ||
321 | failedText ); | 321 | failedText ); | ||
322 | Amarok::Components::logger()->longMessage( text ); | 322 | Amarok::Logger::longMessage( text ); | ||
323 | } | 323 | } | ||
324 | 324 | | |||
325 | void | 325 | void | ||
326 | IpodPlaylistProvider::slotCopyAndInsertToPlaylists() | 326 | IpodPlaylistProvider::slotCopyAndInsertToPlaylists() | ||
327 | { | 327 | { | ||
328 | QMutableSetIterator< AmarokSharedPointer<IpodPlaylist> > it( m_copyTracksTo ); | 328 | QMutableSetIterator< AmarokSharedPointer<IpodPlaylist> > it( m_copyTracksTo ); | ||
329 | while( it.hasNext() ) | 329 | while( it.hasNext() ) | ||
330 | { | 330 | { | ||
▲ Show 20 Lines • Show All 79 Lines • Show Last 20 Lines |