Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00030 #ifndef MKCAL_NOTEBOOK_H
00031 #define MKCAL_NOTEBOOK_H
00032
00033 #include "mkcal_export.h"
00034
00035 #include <incidence.h>
00036
00037 #include <kdatetime.h>
00038
00039 #include <QtCore/QList>
00040
00041 namespace mKCal {
00042
00047 class MKCAL_EXPORT Notebook
00048 {
00049 public:
00053 typedef QSharedPointer<Notebook> Ptr;
00054
00058 typedef QSharedPointer<const Notebook> ConstPtr;
00059
00063 typedef QList<Ptr> List;
00064
00068 explicit Notebook();
00069
00070 explicit Notebook( const QString &name, const QString &description );
00071
00072 explicit Notebook( const QString &uid, const QString &name,
00073 const QString &description, const QString &color,
00074 bool isShared, bool isMaster, bool oviSync,
00075 bool isReadOnly, bool isVisible );
00076
00077 explicit Notebook( const QString &uid, const QString &name,
00078 const QString &description, const QString &color,
00079 bool isShared, bool isMaster, bool isSynchronized,
00080 bool isReadOnly, bool isVisible, const QString &pluginName,
00081 const QString &account, int attachmentSize );
00082
00087 explicit Notebook( const Notebook &n );
00088
00092 virtual ~Notebook();
00093
00098 QString uid() const;
00099
00105 void setUid( const QString &uid );
00106
00112 QString name() const;
00113
00119 void setName( const QString &name );
00120
00125 QString description() const;
00126
00131 void setDescription( const QString &description );
00132
00137 QString color() const;
00138
00143 void setColor( const QString &color );
00144
00149 bool isShared() const;
00150
00156 void setIsShared( bool isShared );
00157
00162 bool isMaster() const;
00163
00170 void setIsMaster( bool isMaster );
00171
00176 bool isSynchronized() const;
00177
00183 void setIsSynchronized( bool oviSync );
00184
00189 bool isReadOnly() const;
00190
00198 void setIsReadOnly( bool isReadOnly );
00199
00204 bool isVisible() const;
00205
00212 void setIsVisible( bool isVisible );
00213
00218 bool isRunTimeOnly() const;
00219
00225 void setRunTimeOnly( bool isRunTime );
00226
00231 KDateTime syncDate() const;
00232
00239 void setSyncDate( const KDateTime &syncDate );
00240
00246 QString pluginName() const;
00247
00253 void setPluginName( const QString &pluginName );
00254
00260 QString account() const;
00261
00267 void setAccount( const QString &account );
00268
00274 int attachmentSize() const;
00275
00281 void setAttachmentSize( int size );
00282
00287 KDateTime modifiedDate() const;
00288
00295 void setModifiedDate( const KDateTime &modifiedDate );
00296
00300 KDateTime creationDate() const;
00301
00308 void setCreationDate( const KDateTime &date );
00309
00314 bool isDefault() const;
00315
00320 void setIsDefault( bool isDefault );
00321
00326 bool isShareable() const;
00327
00332 void setIsShareable( bool isShareable );
00333
00339 QStringList sharedWith() const;
00340
00346 QString sharedWithStr() const;
00347
00353 void setSharedWith( const QStringList &sharedWith );
00354
00360 void setSharedWithStr( const QString &sharedWith );
00361
00369 QString syncProfile() const;
00370
00378 void setSyncProfile(const QString &syncProfile);
00379
00384 void setEventsAllowed( bool eventsAllowed );
00385
00389 bool eventsAllowed() const;
00390
00395 void setJournalsAllowed( bool journalsAllowed );
00396
00400 bool journalsAllowed() const;
00401
00406 void setTodosAllowed( bool todosAllowed );
00407
00411 bool todosAllowed() const;
00412
00417 void setIsHidden( bool isHidden );
00418
00423 bool isHidden() const;
00424
00429 bool incidenceAllowed( KCalCore::Incidence::Ptr incidence ) const;
00430
00440 void setFlags( int flags );
00441
00449 int flags() const;
00450
00454 Notebook &operator=( const Notebook &other );
00455
00459 bool operator==( const Notebook ¬ebook ) const;
00460
00461 private:
00462
00463 class Private;
00464 Private *const d;
00465
00466 };
00467
00468 }
00469
00470 #endif