KCal Library
filestorage.h
Go to the documentation of this file.
00001 /* 00002 This file is part of the kcal library. 00003 00004 Copyright (c) 2002,2003 Cornelius Schumacher <schumacher@kde.org> 00005 00006 This library is free software; you can redistribute it and/or 00007 modify it under the terms of the GNU Library General Public 00008 License as published by the Free Software Foundation; either 00009 version 2 of the License, or (at your option) any later version. 00010 00011 This library is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 Library General Public License for more details. 00015 00016 You should have received a copy of the GNU Library General Public License 00017 along with this library; see the file COPYING.LIB. If not, write to 00018 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00019 Boston, MA 02110-1301, USA. 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_DEPRECATED 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 //@cond PRIVATE 00121 Q_DISABLE_COPY( FileStorage ) 00122 class Private; 00123 Private *const d; 00124 //@endcond 00125 }; 00126 00127 } 00128 00129 #endif