KCalCore Library
calstorage.h
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
00029 #ifndef KCALCORE_CALSTORAGE_H
00030 #define KCALCORE_CALSTORAGE_H
00031
00032 #include "kcalcore_export.h"
00033 #include "calendar.h"
00034
00035 #include <QtCore/QObject>
00036
00037 namespace KCalCore {
00038
00046 class KCALCORE_EXPORT CalStorage : public QObject
00047 {
00048 Q_OBJECT
00049
00050 public:
00055 explicit CalStorage( const Calendar::Ptr &calendar );
00056
00060 virtual ~CalStorage();
00061
00065 Calendar::Ptr calendar() const;
00066
00071 virtual bool open() = 0;
00072
00077 virtual bool load() = 0;
00078
00083 virtual bool save() = 0;
00084
00089 virtual bool close() = 0;
00090
00091 private:
00092
00093 Q_DISABLE_COPY( CalStorage )
00094 class Private;
00095 Private *const d;
00096
00097 };
00098
00099 }
00100
00101 #endif