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();
55 internalInsert( item );
60 QMetaObject::invokeMethod( q,
"loadFinished", Qt::QueuedConnection,
61 Q_ARG(
bool, success ), Q_ARG( QString, errorMessage ) );
74 FetchJobCalendarPrivate *d =
static_cast<FetchJobCalendarPrivate*
>( d_ptr.data() );
78 #include "fetchjobcalendar.moc"
79 #include "fetchjobcalendar_p.moc"
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sat Jul 13 2013 01:27:36 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.