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 isDefault()
const;
318 void setIsDefault(
bool isDefault);
324 bool isShareable()
const;
330 void setIsShareable(
bool isShareable);
337 QStringList sharedWith()
const;
344 QString sharedWithStr()
const;
351 void setSharedWith(
const QStringList &sharedWith);
358 void setSharedWithStr(
const QString &sharedWith);
367 QString syncProfile()
const;
376 void setSyncProfile(
const QString &syncProfile);
382 void setEventsAllowed(
bool eventsAllowed);
387 bool eventsAllowed()
const;
393 void setJournalsAllowed(
bool journalsAllowed);
398 bool journalsAllowed()
const;
404 void setTodosAllowed(
bool todosAllowed);
409 bool todosAllowed()
const;
415 bool incidenceAllowed(KCalendarCore::Incidence::Ptr incidence)
const;
426 void setFlags(
int flags);
443 void setCustomProperty(
const QByteArray &key,
const QString &value);
451 QString customProperty(
const QByteArray &key,
const QString &defaultValue = QString())
const;
456 QList<QByteArray> customPropertyKeys()
const;
466 bool operator==(
const Notebook ¬ebook)
const;
Placeholder for Notebook parameters.
Definition: notebook.h:46
QSharedPointer< const Notebook > ConstPtr
A shared pointer to a non-mutable Notebook.
Definition: notebook.h:56
QSharedPointer< Notebook > Ptr
A shared pointer to a Notebook object.
Definition: notebook.h:51
QList< Ptr > List
List of notebooks.
Definition: notebook.h:61
#define MKCAL_EXPORT
Definition: mkcal_export.h:27
Definition: extendedstorage.h:47