1#ifndef MKCAL_SERVICEHANDLER_H
2#define MKCAL_SERVICEHANDLER_H
25#include <KCalendarCore/Incidence>
35class ServiceHandlerPrivate;
50 ServiceHandlerPrivate *
const d;
72 static ServiceHandler singleton;
86 bool sendInvitation(
const KCalendarCore::Incidence::Ptr &invitation,
const QString &body,
100 bool sendUpdate(
const KCalendarCore::Incidence::Ptr &invitation,
const QString &body,
const ExtendedCalendar::Ptr &calendar,
113 bool sendResponse(
const KCalendarCore::Incidence::Ptr &invitation,
const QString &body,
159 const QString &path);
169 bool deleteAttachment(
const KCalendarCore::Incidence::Ptr &incidence,
const Notebook::Ptr ¬ebook,
195 QString defaultNotebook(
const QString &productId);
217 QStringList availableServices();
225 QString icon(QString serviceId);
233 QString uiName(QString serviceId);
Interface implemented by plugins for handling services.
Definition servicehandlerif.h:51
QSharedPointer< ExtendedStorage > Ptr
A shared pointer to a ExtendedStorage.
Definition extendedstorage.h:88
QSharedPointer< Notebook > Ptr
A shared pointer to a Notebook object.
Definition notebook.h:51
static ServiceHandler & instance()
Obtain an instance of the ServiceHandler.
Definition servicehandler.h:70
void downloadError(int id, ErrorCode error)
Informs that the download is finished with errors.
ServiceHandler::ErrorCode error() const
In case of error, more detailed information can be provided Sometimes the true/false is not enough,...
Definition servicehandler.cpp:423
void downloadProgress(int id, int percentage)
Monitors the progress of the download.
ErrorCode
Error Codes that can be returned by the plugins.
Definition servicehandler.h:58
@ ErrorInvalidParameters
Definition servicehandler.h:63
@ ErrorOk
Definition servicehandler.h:59
@ ErrorNoAccount
Definition servicehandler.h:60
@ ErrorNotSupported
Definition servicehandler.h:61
@ ErrorNoConnectivity
Definition servicehandler.h:62
@ ErrorInternal
Definition servicehandler.h:64
void downloadFinished(int id)
Informs that the download is over.
This file is part of the API for handling calendar data and defines the ExtendedCalendar class.
This file is part of the API for handling calendar data and defines the ExtendedStorage interface.
#define MKCAL_EXPORT
Definition mkcal_export.h:27
Definition extendedstorage.h:49
This file is part of the API for handling calendar data and defines the Notebook class.
const QString defaultName
Definition servicehandler.h:33
This file defines the common Interface to be inherited by all processes that handle service informati...