Changeset View
Changeset View
Standalone View
Standalone View
src/services/opmldirectory/OpmlDirectoryInfoParser.cpp
Show All 12 Lines | |||||
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 "OpmlDirectoryInfoParser.h" | 17 | #include "OpmlDirectoryInfoParser.h" | ||
18 | 18 | | |||
19 | #include "core/support/Debug.h" | 19 | #include "core/support/Debug.h" | ||
20 | #include "core/support/Components.h" | 20 | #include "core/support/Components.h" | ||
21 | #include "core/interfaces/Logger.h" | 21 | #include "core/logger/Logger.h" | ||
22 | #include "OpmlDirectoryMeta.h" | 22 | #include "OpmlDirectoryMeta.h" | ||
23 | 23 | | |||
24 | #include <QDomDocument> | 24 | #include <QDomDocument> | ||
25 | 25 | | |||
26 | #include <KLocalizedString> | 26 | #include <KLocalizedString> | ||
27 | 27 | | |||
28 | using namespace Meta; | 28 | using namespace Meta; | ||
29 | 29 | | |||
Show All 27 Lines | 54 | { | |||
57 | 57 | | |||
58 | OpmlDirectoryFeed * feed = dynamic_cast<OpmlDirectoryFeed *>( track.data() ); | 58 | OpmlDirectoryFeed * feed = dynamic_cast<OpmlDirectoryFeed *>( track.data() ); | ||
59 | 59 | | |||
60 | if ( !feed ) return; | 60 | if ( !feed ) return; | ||
61 | 61 | | |||
62 | debug() << "OpmlDirectoryInfoParser: getInfo about feed: " << feed->uidUrl(); | 62 | debug() << "OpmlDirectoryInfoParser: getInfo about feed: " << feed->uidUrl(); | ||
63 | 63 | | |||
64 | m_rssDownloadJob = KIO::storedGet( QUrl( feed->uidUrl() ), KIO::Reload, KIO::HideProgressInfo ); | 64 | m_rssDownloadJob = KIO::storedGet( QUrl( feed->uidUrl() ), KIO::Reload, KIO::HideProgressInfo ); | ||
65 | Amarok::Components::logger()->newProgressOperation( m_rssDownloadJob, | 65 | Amarok::Logger::newProgressOperation( m_rssDownloadJob, | ||
66 | i18n( "Fetching Podcast Info" ) ); | 66 | i18n( "Fetching Podcast Info" ) ); | ||
67 | connect( m_rssDownloadJob, &KJob::result, this, &OpmlDirectoryInfoParser::rssDownloadComplete ); | 67 | connect( m_rssDownloadJob, &KJob::result, this, &OpmlDirectoryInfoParser::rssDownloadComplete ); | ||
68 | } | 68 | } | ||
69 | 69 | | |||
70 | void OpmlDirectoryInfoParser::rssDownloadComplete(KJob * downLoadJob) | 70 | void OpmlDirectoryInfoParser::rssDownloadComplete(KJob * downLoadJob) | ||
71 | { | 71 | { | ||
72 | 72 | | |||
73 | if ( downLoadJob->error() ) | 73 | if ( downLoadJob->error() ) | ||
▲ Show 20 Lines • Show All 55 Lines • Show Last 20 Lines |