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 explicit Notebook(
const QString &name,
const QString &description);
70 explicit Notebook(
const QString &uid,
const QString &name,
71 const QString &description,
const QString &color,
72 bool isShared,
bool isMaster,
bool oviSync,
73 bool isReadOnly,
bool isVisible);
75 explicit Notebook(
const QString &uid,
const QString &name,
76 const QString &description,
const QString &color,
77 bool isShared,
bool isMaster,
bool isSynchronized,
78 bool isReadOnly,
bool isVisible,
const QString &pluginName,
79 const QString &account,
int attachmentSize);
103 void setUid(
const QString &uid);
110 QString name()
const;
117 void setName(
const QString &name);
123 QString description()
const;
129 void setDescription(
const QString &description);
135 QString color()
const;
141 void setColor(
const QString &color);
147 bool isShared()
const;
154 void setIsShared(
bool isShared);
160 bool isMaster()
const;
168 void setIsMaster(
bool isMaster);
174 bool isSynchronized()
const;
181 void setIsSynchronized(
bool oviSync);
187 bool isReadOnly()
const;
196 void setIsReadOnly(
bool isReadOnly);
202 bool isVisible()
const;
210 void setIsVisible(
bool isVisible);
216 bool isRunTimeOnly()
const;
223 void setRunTimeOnly(
bool isRunTime);
229 QDateTime syncDate()
const;
237 void setSyncDate(
const QDateTime &syncDate);
244 QString pluginName()
const;
251 void setPluginName(
const QString &pluginName);
258 QString account()
const;
265 void setAccount(
const QString &account);
272 int attachmentSize()
const;
279 void setAttachmentSize(
int size);
285 QDateTime modifiedDate()
const;
293 void setModifiedDate(
const QDateTime &modifiedDate);
298 QDateTime creationDate()
const;
306 void setCreationDate(
const QDateTime &date);
312 bool isShareable()
const;
318 void setIsShareable(
bool isShareable);
325 QStringList sharedWith()
const;
332 QString sharedWithStr()
const;
339 void setSharedWith(
const QStringList &sharedWith);
346 void setSharedWithStr(
const QString &sharedWith);
355 QString syncProfile()
const;
364 void setSyncProfile(
const QString &syncProfile);
370 void setEventsAllowed(
bool eventsAllowed);
375 bool eventsAllowed()
const;
381 void setJournalsAllowed(
bool journalsAllowed);
386 bool journalsAllowed()
const;
392 void setTodosAllowed(
bool todosAllowed);
397 bool todosAllowed()
const;
403 bool incidenceAllowed(KCalendarCore::Incidence::Ptr incidence)
const;
411 void setCustomProperty(
const QByteArray &key,
const QString &value);
419 QString customProperty(
const QByteArray &key,
const QString &defaultValue = QString())
const;
424 QList<QByteArray> customPropertyKeys()
const;
434 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:27
Definition extendedstorage.h:49