KCal Library
filestorage.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 KCAL_FILESTORAGE_H
00030 #define KCAL_FILESTORAGE_H
00031
00032 #include "calstorage.h"
00033 #include <QtCore/QString>
00034
00035 namespace KCal {
00036
00037 class CalFormat;
00038
00043 class KCAL_EXPORT FileStorage : public CalStorage
00044 {
00045 public:
00057 explicit FileStorage( Calendar *calendar,
00058 const QString &fileName = QString(),
00059 CalFormat *format = 0 );
00060
00064 virtual ~FileStorage();
00065
00072 void setFileName( const QString &fileName );
00073
00078 QString fileName() const;
00079
00087 void setSaveFormat( CalFormat *format );
00088
00093 CalFormat *saveFormat() const;
00094
00099 bool open();
00100
00105 bool load();
00106
00111 bool save();
00112
00117 bool close();
00118
00119 private:
00120
00121 Q_DISABLE_COPY( FileStorage )
00122 class Private;
00123 Private *const d;
00124
00125 };
00126
00127 }
00128
00129 #endif