1#ifndef MKCAL_SERVICEHANDLER_H
2#define MKCAL_SERVICEHANDLER_H
25#include <KCalendarCore/Incidence>
33class ServiceHandlerPrivate;
50 ServiceHandlerPrivate *
const d;
82 bool sendInvitation(
const Notebook::Ptr ¬ebook,
const KCalendarCore::Incidence::Ptr &invitation,
const QString &body);
90 bool sendUpdate(
const Notebook::Ptr ¬ebook,
const KCalendarCore::Incidence::Ptr &invitation,
const QString &body);
98 bool sendResponse(
const Notebook::Ptr ¬ebook,
const KCalendarCore::Incidence::Ptr &invitation,
const QString &body);
104 QString icon(
const QString &serviceId);
110 bool multiCalendar(
const QString &serviceId);
132 int downloadAttachment(
const Notebook::Ptr ¬ebook,
const QString &uri,
const QString &path);
141 bool deleteAttachment(
const KCalendarCore::Incidence::Ptr &incidence,
const Notebook::Ptr ¬ebook,
150 bool shareNotebook(
const Notebook::Ptr ¬ebook,
const QStringList &sharedWith);
165 QString defaultNotebook(
const QString &productId);
187 QStringList availableServices();
195 QString icon(QString serviceId);
203 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
Singleton class to get the exact handler (plugin) of the service In case of API with a notebook argum...
Definition servicehandler.h:42
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.
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
@ ErrorNoAccount
Definition servicehandler.h:60
@ ErrorNotSupported
Definition servicehandler.h:61
@ ErrorNoConnectivity
Definition servicehandler.h:62
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...