Changeset View
Changeset View
Standalone View
Standalone View
src/aboutdialog/libattica-ocsclient/activitylistjob.cpp
Show All 20 Lines | |||||
21 | 21 | | |||
22 | #include "activitylistjob.h" | 22 | #include "activitylistjob.h" | ||
23 | 23 | | |||
24 | #include "activityparser.h" | 24 | #include "activityparser.h" | ||
25 | 25 | | |||
26 | #include <QDebug> | 26 | #include <QDebug> | ||
27 | #include <QTimer> | 27 | #include <QTimer> | ||
28 | 28 | | |||
29 | #include <kio/job.h> | 29 | #include <KIO/Job> | ||
30 | #include <klocale.h> | | |||
31 | 30 | | |||
32 | 31 | | |||
33 | using namespace AmarokAttica; | 32 | using namespace AmarokAttica; | ||
34 | 33 | | |||
35 | ActivityListJob::ActivityListJob() | 34 | ActivityListJob::ActivityListJob() | ||
36 | : m_job( ) | 35 | : m_job( ) | ||
37 | { | 36 | { | ||
38 | } | 37 | } | ||
Show All 10 Lines | |||||
49 | 48 | | |||
50 | Activity::List ActivityListJob::ActivityList() const | 49 | Activity::List ActivityListJob::ActivityList() const | ||
51 | { | 50 | { | ||
52 | return m_activityList; | 51 | return m_activityList; | ||
53 | } | 52 | } | ||
54 | 53 | | |||
55 | void ActivityListJob::doWork() | 54 | void ActivityListJob::doWork() | ||
56 | { | 55 | { | ||
57 | qDebug() << m_url; | | |||
58 | | ||||
59 | auto job = KIO::get( m_url, KIO::NoReload, KIO::HideProgressInfo ); | 56 | auto job = KIO::get( m_url, KIO::NoReload, KIO::HideProgressInfo ); | ||
60 | connect( job, &KIO::TransferJob::result, | 57 | connect( job, &KIO::TransferJob::result, | ||
61 | this, &ActivityListJob::slotJobResult ); | 58 | this, &ActivityListJob::slotJobResult ); | ||
62 | connect( job, &KIO::TransferJob::data, | 59 | connect( job, &KIO::TransferJob::data, | ||
63 | this, &ActivityListJob::slotJobData ); | 60 | this, &ActivityListJob::slotJobData ); | ||
64 | 61 | | |||
65 | m_job = job; | 62 | m_job = job; | ||
66 | } | 63 | } | ||
Show All 23 Lines |