akonadi
21 #include "fetchjobcalendar.h"
22 #include "fetchjobcalendar_p.h"
23 #include "incidencefetchjob_p.h"
25 #include <akonadi/item.h>
26 #include <akonadi/collection.h>
28 using namespace Akonadi;
29 using namespace KCalCore;
31 FetchJobCalendarPrivate::FetchJobCalendarPrivate(
FetchJobCalendar *qq) : CalendarBasePrivate(qq)
36 connect(job, SIGNAL(result(KJob*)),
37 SLOT(slotSearchJobFinished(KJob*)));
40 FetchJobCalendarPrivate::~FetchJobCalendarPrivate()
44 void FetchJobCalendarPrivate::slotSearchJobFinished(KJob *job)
49 if (searchJob->error()) {
51 errorMessage = searchJob->errorText();
52 kWarning() <<
"Unable to fetch incidences:" << searchJob->errorText();
57 errorMessage = QString(
"Invalid item or payload: %1").arg(item.
id());
58 kWarning() <<
"Unable to fetch incidences:" << errorMessage;
66 QMetaObject::invokeMethod(q,
"loadFinished", Qt::QueuedConnection,
67 Q_ARG(
bool, success), Q_ARG(QString, errorMessage));
80 FetchJobCalendarPrivate *d =
static_cast<FetchJobCalendarPrivate*
>(d_ptr.data());
84 #include "fetchjobcalendar.moc"
85 #include "fetchjobcalendar_p.moc"
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Thu Jan 9 2014 17:55:06 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.