30#ifndef MKCAL_NOTEBOOK_H
31#define MKCAL_NOTEBOOK_H
35#include <KCalendarCore/Incidence>
37#include <QtCore/QList>
51 typedef QSharedPointer<Notebook>
Ptr;
56 typedef QSharedPointer<const Notebook>
ConstPtr;
68 Notebook(
const QString &name,
const QString &description,
69 const QString &color = {});
71 Notebook(
const QString &uid,
const QString &name,
72 const QString &description,
const QString &color,
73 bool isShared,
bool isMaster,
bool oviSync,
74 bool isReadOnly,
bool isVisible);
76 Notebook(
const QString &uid,
const QString &name,
77 const QString &description,
const QString &color,
78 bool isShared,
bool isMaster,
bool isSynchronized,
79 bool isReadOnly,
bool isVisible,
const QString &pluginName,
80 const QString &account,
int attachmentSize);
104 void setUid(
const QString &uid);
111 QString name()
const;
118 void setName(
const QString &name);
124 QString description()
const;
130 void setDescription(
const QString &description);
136 QString color()
const;
142 void setColor(
const QString &color);
148 bool isShared()
const;
155 void setIsShared(
bool isShared);
161 bool isMaster()
const;
169 void setIsMaster(
bool isMaster);
175 bool isSynchronized()
const;
182 void setIsSynchronized(
bool oviSync);
188 bool isReadOnly()
const;
197 void setIsReadOnly(
bool isReadOnly);
203 bool isVisible()
const;
211 void setIsVisible(
bool isVisible);
217 bool isRunTimeOnly()
const;
224 void setRunTimeOnly(
bool isRunTime);
230 QDateTime syncDate()
const;
238 void setSyncDate(
const QDateTime &syncDate);
245 QString pluginName()
const;
252 void setPluginName(
const QString &pluginName);
259 QString account()
const;
266 void setAccount(
const QString &account);
273 int attachmentSize()
const;
280 void setAttachmentSize(
int size);
286 QDateTime modifiedDate()
const;
294 void setModifiedDate(
const QDateTime &modifiedDate);
299 QDateTime creationDate()
const;
307 void setCreationDate(
const QDateTime &date);
313 bool isShareable()
const;
319 void setIsShareable(
bool isShareable);
326 QStringList sharedWith()
const;
333 QString sharedWithStr()
const;
340 void setSharedWith(
const QStringList &sharedWith);
347 void setSharedWithStr(
const QString &sharedWith);
356 QString syncProfile()
const;
365 void setSyncProfile(
const QString &syncProfile);
371 void setEventsAllowed(
bool eventsAllowed);
376 bool eventsAllowed()
const;
382 void setJournalsAllowed(
bool journalsAllowed);
387 bool journalsAllowed()
const;
393 void setTodosAllowed(
bool todosAllowed);
398 bool todosAllowed()
const;
404 bool incidenceAllowed(KCalendarCore::Incidence::Ptr incidence)
const;
412 void setCustomProperty(
const QByteArray &key,
const QString &value);
420 QString customProperty(
const QByteArray &key,
const QString &defaultValue = QString())
const;
425 QList<QByteArray> customPropertyKeys()
const;
435 bool operator==(
const Notebook ¬ebook)
const;
Placeholder for Notebook parameters.
Definition notebook.h:46
QSharedPointer< Notebook > Ptr
A shared pointer to a Notebook object.
Definition notebook.h:51
QList< Ptr > List
List of notebooks.
Definition notebook.h:61
QSharedPointer< const Notebook > ConstPtr
A shared pointer to a non-mutable Notebook.
Definition notebook.h:56
#define MKCAL_EXPORT
Definition mkcal_export.h:29
Definition extendedstorage.h:49