Changeset View
Changeset View
Standalone View
Standalone View
src/services/magnatune/MagnatuneXmlParser.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 "MagnatuneXmlParser.h" | 17 | #include "MagnatuneXmlParser.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 <KCompressionDevice> | 24 | #include <KCompressionDevice> | ||
25 | #include <KLocalizedString> | 25 | #include <KLocalizedString> | ||
26 | 26 | | |||
27 | #include <QDomDocument> | 27 | #include <QDomDocument> | ||
28 | #include <QFile> | 28 | #include <QFile> | ||
29 | 29 | | |||
30 | using namespace Meta; | 30 | using namespace Meta; | ||
Show All 36 Lines | 66 | if (!self->success()) { | |||
67 | Q_EMIT failed(self); | 67 | Q_EMIT failed(self); | ||
68 | } | 68 | } | ||
69 | Q_EMIT done(self); | 69 | Q_EMIT done(self); | ||
70 | } | 70 | } | ||
71 | 71 | | |||
72 | void | 72 | void | ||
73 | MagnatuneXmlParser::completeJob( ) | 73 | MagnatuneXmlParser::completeJob( ) | ||
74 | { | 74 | { | ||
75 | Amarok::Components::logger()->longMessage( | 75 | Amarok::Logger::longMessage( | ||
76 | i18ncp( "First part of: Magnatune.com database update complete. Database contains 3 tracks on 4 albums from 5 artists.", | 76 | i18ncp( "First part of: Magnatune.com database update complete. Database contains 3 tracks on 4 albums from 5 artists.", | ||
77 | "Magnatune.com database update complete. Database contains 1 track on ", | 77 | "Magnatune.com database update complete. Database contains 1 track on ", | ||
78 | "Magnatune.com database update complete. Database contains %1 tracks on ", | 78 | "Magnatune.com database update complete. Database contains %1 tracks on ", | ||
79 | m_nNumberOfTracks) | 79 | m_nNumberOfTracks) | ||
80 | + i18ncp( "Middle part of: Magnatune.com database update complete. Database contains 3 tracks on 4 albums from 5 artists.", | 80 | + i18ncp( "Middle part of: Magnatune.com database update complete. Database contains 3 tracks on 4 albums from 5 artists.", | ||
81 | "1 album from ", "%1 albums from ", m_nNumberOfAlbums) | 81 | "1 album from ", "%1 albums from ", m_nNumberOfAlbums) | ||
82 | + i18ncp( "Last part of: Magnatune.com database update complete. Database contains 3 tracks on 4 albums from 5 artists.", | 82 | + i18ncp( "Last part of: Magnatune.com database update complete. Database contains 3 tracks on 4 albums from 5 artists.", | ||
83 | "1 artist.", "%1 artists.", m_nNumberOfArtists ) | 83 | "1 artist.", "%1 artists.", m_nNumberOfArtists ) | ||
▲ Show 20 Lines • Show All 347 Lines • Show Last 20 Lines |