Differential D11867 Diff 31103 src/core-impl/collections/ipodcollection/jobs/IpodDeleteTracksJob.cpp
Changeset View
Changeset View
Standalone View
Standalone View
src/core-impl/collections/ipodcollection/jobs/IpodDeleteTracksJob.cpp
Show All 10 Lines | |||||
11 | * PARTICULAR PURPOSE. See the GNU General Public License for more details. * | 11 | * PARTICULAR PURPOSE. See the GNU General Public License for more details. * | ||
12 | * * | 12 | * * | ||
13 | * You should have received a copy of the GNU General Public License along with * | 13 | * You should have received a copy of the GNU General Public License along with * | ||
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 | #include "IpodDeleteTracksJob.h" | 17 | #include "IpodDeleteTracksJob.h" | ||
18 | 18 | | |||
19 | #include "core/interfaces/Logger.h" | 19 | #include "core/logger/Logger.h" | ||
20 | #include "core/support/Components.h" | 20 | #include "core/support/Components.h" | ||
21 | #include "core-impl/collections/ipodcollection/IpodMeta.h" | 21 | #include "core-impl/collections/ipodcollection/IpodMeta.h" | ||
22 | 22 | | |||
23 | #include <QFile> | 23 | #include <QFile> | ||
24 | 24 | | |||
25 | #include <gpod/itdb.h> | 25 | #include <gpod/itdb.h> | ||
26 | 26 | | |||
27 | IpodDeleteTracksJob::IpodDeleteTracksJob( const Meta::TrackList &sources, | 27 | IpodDeleteTracksJob::IpodDeleteTracksJob( const Meta::TrackList &sources, | ||
Show All 10 Lines | |||||
38 | { | 38 | { | ||
39 | Q_UNUSED(self); | 39 | Q_UNUSED(self); | ||
40 | Q_UNUSED(thread); | 40 | Q_UNUSED(thread); | ||
41 | if( !m_coll ) | 41 | if( !m_coll ) | ||
42 | return; | 42 | return; | ||
43 | int trackCount = m_sources.size(); | 43 | int trackCount = m_sources.size(); | ||
44 | QString operationText = i18np( "Removing one track from iPod", | 44 | QString operationText = i18np( "Removing one track from iPod", | ||
45 | "Removing %1 tracks from iPod", trackCount ); | 45 | "Removing %1 tracks from iPod", trackCount ); | ||
46 | Amarok::Components::logger()->newProgressOperation( this, operationText, trackCount ); | 46 | Amarok::Logger::newProgressOperation( this, operationText, trackCount ); | ||
47 | itdb_start_sync( m_coll->m_itdb ); | 47 | itdb_start_sync( m_coll->m_itdb ); | ||
48 | 48 | | |||
49 | QListIterator<Meta::TrackPtr> it( m_sources ); | 49 | QListIterator<Meta::TrackPtr> it( m_sources ); | ||
50 | while( it.hasNext() ) | 50 | while( it.hasNext() ) | ||
51 | { | 51 | { | ||
52 | if( !m_coll ) | 52 | if( !m_coll ) | ||
53 | break; | 53 | break; | ||
54 | 54 | | |||
Show All 34 Lines |