1#ifndef SERVICEHANDLERIF_H
2#define SERVICEHANDLERIF_H
25#include <QtCore/QtPlugin>
70 virtual QString
icon()
const = 0;
124 const QString &uri) = 0;
176 "com.nokia.Organiser.ServiceInterface/1.0")
Interface implemented by plugins for handling services.
Definition servicehandlerif.h:51
virtual ErrorCode error() const =0
In case of error, more detailed information can be provided Sometimes the true/false is not enough,...
virtual QString icon() const =0
returns icon of service.
ErrorCode
Error Codes that can be returned by the plugins.
Definition servicehandlerif.h:58
@ ErrorInvalidParameters
Definition servicehandlerif.h:63
@ ErrorInternal
Definition servicehandlerif.h:64
@ ErrorNoAccount
Definition servicehandlerif.h:60
@ ErrorNoConnectivity
Definition servicehandlerif.h:62
@ ErrorOk
Definition servicehandlerif.h:59
@ ErrorNotSupported
Definition servicehandlerif.h:61
virtual bool multiCalendar() const =0
is this service supporting multiple calendars.
virtual bool shareNotebook(const mKCal::Notebook::Ptr ¬ebook, const QStringList &sharedWith)=0
Share notebook.
virtual QString displayName(const mKCal::Notebook::Ptr ¬ebook) const =0
returns the display name of account of service.
virtual QString defaultNotebook() const =0
A service might have a default Notebook in the set of notebooks supported It can be a null value.
virtual QString serviceName() const =0
The name of this service.
virtual bool deleteAttachment(const mKCal::Notebook::Ptr ¬ebook, const KCalendarCore::Incidence::Ptr &incidence, const QString &uri)=0
start the deletion of an attachment.
virtual QStringList sharedWith(const mKCal::Notebook::Ptr ¬ebook)=0
Returns list of emails, phones# of the persons that a notebook is shared with.
virtual QString uiName() const =0
returns name of service.
virtual bool checkProductId(const QString &prodId) const =0
Checks if a give Product Id obtained in an iCal file is handled by this plugin.
virtual bool downloadAttachment(const mKCal::Notebook::Ptr ¬ebook, const QString &uri, const QString &path)=0
Start the download of an attachment.
virtual QString emailAddress(const mKCal::Notebook::Ptr ¬ebook)=0
returns the email address that is currently configured in the service, it can be different per accoun...
virtual ~ServiceInterface()
Definition servicehandlerif.h:172
QSharedPointer< Notebook > Ptr
A shared pointer to a Notebook object.
Definition notebook.h:51
This file is part of the API for handling calendar data and defines the Notebook class.