1#ifndef MKCAL_SERVICEHANDLER_H
2#define MKCAL_SERVICEHANDLER_H
25#include <KCalendarCore/Incidence>
33class ServiceHandlerPrivate;
50 ServiceHandlerPrivate *
const d;
71 static ServiceHandler singleton;
81 bool sendInvitation(
const Notebook::Ptr ¬ebook,
const KCalendarCore::Incidence::Ptr &invitation,
90 bool sendUpdate(
const Notebook::Ptr ¬ebook,
const KCalendarCore::Incidence::Ptr &invitation,
99 bool sendResponse(
const Notebook::Ptr ¬ebook,
const KCalendarCore::Incidence::Ptr &invitation,
100 const QString &body);
106 QString icon(
const QString &serviceId);
112 bool multiCalendar(
const QString &serviceId);
134 int downloadAttachment(
const Notebook::Ptr ¬ebook,
const QString &uri,
const QString &path);
143 bool deleteAttachment(
const KCalendarCore::Incidence::Ptr &incidence,
const Notebook::Ptr ¬ebook,
152 bool shareNotebook(
const Notebook::Ptr ¬ebook,
const QStringList &sharedWith);
167 QString defaultNotebook(
const QString &productId);
189 QStringList availableServices();
197 QString icon(QString serviceId);
205 QString uiName(QString serviceId);
Interface implemented by plugins for handling services.
Definition servicehandlerif.h:51
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:69
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:354
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:57
@ ErrorInvalidParameters
Definition servicehandler.h:62
@ ErrorOk
Definition servicehandler.h:58
@ ErrorNoAccount
Definition servicehandler.h:59
@ ErrorNotSupported
Definition servicehandler.h:60
@ ErrorNoConnectivity
Definition servicehandler.h:61
@ ErrorInternal
Definition servicehandler.h:63
void downloadFinished(int id)
Informs that the download is over.
#define MKCAL_EXPORT
Definition mkcal_export.h:29
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:31
This file defines the common Interface to be inherited by all processes that handle service informati...