20 #ifndef AKONADI_CALENDAR_ITIP_HANDLER_P_H
21 #define AKONADI_CALENDAR_ITIP_HANDLER_P_H
23 #include "calendarbase.h"
24 #include "mailscheduler_p.h"
25 #include "itiphandler.h"
26 #include "itiphandlerhelper_p.h"
28 #include <kcalcore/schedulemessage.h>
40 KCalCore::iTIPMethod method;
41 KCalCore::Incidence::Ptr incidence;
51 OperationProcessiTIPMessage,
52 OperationSendiTIPMessage,
53 OperationPublishInformation,
54 OperationSendAsICalendar
57 class ITIPHandler::Private :
public QObject
63 void finishProcessiTIPMessage(Akonadi::MailScheduler::Result,
const QString &errorMessage);
64 void finishSendiTIPMessage(Akonadi::MailScheduler::Result,
const QString &errorMessage);
65 void finishPublishInformation(Akonadi::MailScheduler::Result,
const QString &errorMessage);
74 Invitation m_queuedInvitation;
75 bool m_calendarLoadError;
76 CalendarBase::Ptr m_calendar;
77 MailScheduler *m_scheduler;
78 KCalCore::Incidence::Ptr m_incidence;
79 KCalCore::iTIPMethod m_method;
80 ITIPHandlerHelper *m_helper;
82 QPointer<QWidget> m_parentWidget;
83 GroupwareUiDelegate *m_uiDelegate;
84 bool m_showDialogsOnError;
88 void finishSendAsICalendar(Akonadi::MailScheduler::Result,
const QString &errorMessage);
89 void onLoadFinished(
bool success,
const QString &errorMessage);
90 void onSchedulerFinished(Akonadi::Scheduler::Result,
const QString &errorMessage);
92 const QString &errorMessage);
94 void onCounterProposalDelegateFinished(
bool success,
const QString &errorMessage);
Akonadi::CalendarBase::Ptr calendar() const
Returns the calendar used by this itip handler.
ITIPHandler(QObject *parent=0)
Creates a new ITIPHandler instance.
Operation
Our API has two methods, one to process received invitations and another one to send them...