Changeset View
Changeset View
Standalone View
Standalone View
src/services/jamendo/JamendoXmlParser.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 | #include "JamendoXmlParser.h" | 17 | #include "JamendoXmlParser.h" | ||
18 | 18 | | |||
19 | #include "core/support/Amarok.h" | 19 | #include "core/support/Amarok.h" | ||
20 | #include "core/support/Debug.h" | 20 | #include "core/support/Debug.h" | ||
21 | #include "core/support/Components.h" | 21 | #include "core/support/Components.h" | ||
22 | #include "core/interfaces/Logger.h" | 22 | #include "core/logger/Logger.h" | ||
23 | 23 | | |||
24 | #include <QFile> | 24 | #include <QFile> | ||
25 | 25 | | |||
26 | #include <KFilterDev> | 26 | #include <KFilterDev> | ||
27 | #include <KLocalizedString> | 27 | #include <KLocalizedString> | ||
28 | 28 | | |||
29 | using namespace Meta; | 29 | using namespace Meta; | ||
30 | 30 | | |||
▲ Show 20 Lines • Show All 131 Lines • ▼ Show 20 Line(s) | |||||
162 | } | 162 | } | ||
163 | 163 | | |||
164 | void | 164 | void | ||
165 | JamendoXmlParser::completeJob() | 165 | JamendoXmlParser::completeJob() | ||
166 | { | 166 | { | ||
167 | if( m_aborted ) | 167 | if( m_aborted ) | ||
168 | return; | 168 | return; | ||
169 | 169 | | |||
170 | Amarok::Components::logger()->longMessage( | 170 | Amarok::Logger::longMessage( | ||
171 | i18ncp( "First part of: Jamendo.com database update complete. Added 3 tracks on 4 albums from 5 artists.", "Jamendo.com database update complete. Added 1 track on ", "Jamendo.com database update complete. Added %1 tracks on ", m_nNumberOfTracks) | 171 | i18ncp( "First part of: Jamendo.com database update complete. Added 3 tracks on 4 albums from 5 artists.", "Jamendo.com database update complete. Added 1 track on ", "Jamendo.com database update complete. Added %1 tracks on ", m_nNumberOfTracks) | ||
172 | + i18ncp( "Middle part of: Jamendo.com database update complete. Added 3 tracks on 4 albums from 5 artists.", "1 album from ", "%1 albums from ", m_nNumberOfAlbums) | 172 | + i18ncp( "Middle part of: Jamendo.com database update complete. Added 3 tracks on 4 albums from 5 artists.", "1 album from ", "%1 albums from ", m_nNumberOfAlbums) | ||
173 | + i18ncp( "Last part of: Jamendo.com database update complete. Added 3 tracks on 4 albums from 5 artists.", "1 artist.", "%1 artists.", m_nNumberOfArtists ) | 173 | + i18ncp( "Last part of: Jamendo.com database update complete. Added 3 tracks on 4 albums from 5 artists.", "1 artist.", "%1 artists.", m_nNumberOfArtists ) | ||
174 | , Amarok::Logger::Information ); | 174 | , Amarok::Logger::Information ); | ||
175 | 175 | | |||
176 | debug() << "JamendoXmlParser: total number of artists: " << m_nNumberOfArtists; | 176 | debug() << "JamendoXmlParser: total number of artists: " << m_nNumberOfArtists; | ||
177 | debug() << "JamendoXmlParser: total number of albums: " << m_nNumberOfAlbums; | 177 | debug() << "JamendoXmlParser: total number of albums: " << m_nNumberOfAlbums; | ||
178 | debug() << "JamendoXmlParser: total number of tracks: " << m_nNumberOfTracks; | 178 | debug() << "JamendoXmlParser: total number of tracks: " << m_nNumberOfTracks; | ||
▲ Show 20 Lines • Show All 265 Lines • Show Last 20 Lines |