Go to the documentation of this file.
30 #ifndef MKCAL_NOTEBOOK_H
31 #define MKCAL_NOTEBOOK_H
35 #include <incidence.h>
37 #include <kdatetime.h>
39 #include <QtCore/QList>
53 typedef QSharedPointer<Notebook>
Ptr;
58 typedef QSharedPointer<const Notebook>
ConstPtr;
70 explicit Notebook(
const QString &name,
const QString &description);
72 explicit Notebook(
const QString &uid,
const QString &name,
73 const QString &description,
const QString &color,
74 bool isShared,
bool isMaster,
bool oviSync,
75 bool isReadOnly,
bool isVisible);
77 explicit Notebook(
const QString &uid,
const QString &name,
78 const QString &description,
const QString &color,
79 bool isShared,
bool isMaster,
bool isSynchronized,
80 bool isReadOnly,
bool isVisible,
const QString &pluginName,
81 const QString &account,
int attachmentSize);
105 void setUid(
const QString &uid);
112 QString name()
const;
119 void setName(
const QString &name);
125 QString description()
const;
131 void setDescription(
const QString &description);
137 QString color()
const;
143 void setColor(
const QString &color);
149 bool isShared()
const;
156 void setIsShared(
bool isShared);
162 bool isMaster()
const;
170 void setIsMaster(
bool isMaster);
176 bool isSynchronized()
const;
183 void setIsSynchronized(
bool oviSync);
189 bool isReadOnly()
const;
198 void setIsReadOnly(
bool isReadOnly);
204 bool isVisible()
const;
212 void setIsVisible(
bool isVisible);
218 bool isRunTimeOnly()
const;
225 void setRunTimeOnly(
bool isRunTime);
231 KDateTime syncDate()
const;
239 void setSyncDate(
const KDateTime &syncDate);
246 QString pluginName()
const;
253 void setPluginName(
const QString &pluginName);
260 QString account()
const;
267 void setAccount(
const QString &account);
274 int attachmentSize()
const;
281 void setAttachmentSize(
int size);
287 KDateTime modifiedDate()
const;
295 void setModifiedDate(
const KDateTime &modifiedDate);
300 KDateTime creationDate()
const;
308 void setCreationDate(
const KDateTime &date);
314 bool isDefault()
const;
320 void setIsDefault(
bool isDefault);
326 bool isShareable()
const;
332 void setIsShareable(
bool isShareable);
339 QStringList sharedWith()
const;
346 QString sharedWithStr()
const;
353 void setSharedWith(
const QStringList &sharedWith);
360 void setSharedWithStr(
const QString &sharedWith);
369 QString syncProfile()
const;
378 void setSyncProfile(
const QString &syncProfile);
384 void setEventsAllowed(
bool eventsAllowed);
389 bool eventsAllowed()
const;
395 void setJournalsAllowed(
bool journalsAllowed);
400 bool journalsAllowed()
const;
406 void setTodosAllowed(
bool todosAllowed);
411 bool todosAllowed()
const;
417 bool incidenceAllowed(KCalCore::Incidence::Ptr incidence)
const;
428 void setFlags(
int flags);
445 void setCustomProperty(
const QByteArray &key,
const QString &value);
453 QString customProperty(
const QByteArray &key,
const QString &defaultValue = QString())
const;
458 QList<QByteArray> customPropertyKeys()
const;
468 bool operator==(
const Notebook ¬ebook)
const;
QSharedPointer< Notebook > Ptr
A shared pointer to a Notebook object.
Definition: notebook.h:53
Definition: extendedstorage.h:49
Placeholder for Notebook parameters.
Definition: notebook.h:47
QList< Ptr > List
List of notebooks.
Definition: notebook.h:63
#define MKCAL_EXPORT
Definition: mkcal_export.h:27
QSharedPointer< const Notebook > ConstPtr
A shared pointer to a non-mutable Notebook.
Definition: notebook.h:58
Generated on Sat Oct 17 2020 06:54:57 for libextendedkcal by
1.8.17