KCalCore Library
filestorage.h
Go to the documentation of this file.
00001 /* 00002 This file is part of the kcalcore 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 KCALCORE_FILESTORAGE_H 00030 #define KCALCORE_FILESTORAGE_H 00031 00032 #include "kcalcore_export.h" 00033 #include "calstorage.h" 00034 00035 namespace KCalCore { 00036 00037 class CalFormat; 00038 class Calendar; 00039 00044 class KCALCORE_EXPORT FileStorage : public CalStorage 00045 { 00046 public: 00047 00051 typedef QSharedPointer<FileStorage> Ptr; 00052 00064 explicit FileStorage( const Calendar::Ptr &calendar, 00065 const QString &fileName = QString(), 00066 KCalCore::CalFormat *format = 0 ); 00067 00071 virtual ~FileStorage(); 00072 00079 void setFileName( const QString &fileName ); 00080 00085 QString fileName() const; 00086 00094 void setSaveFormat( KCalCore::CalFormat *format ); 00095 00100 CalFormat *saveFormat() const; 00101 00106 bool open(); 00107 00112 bool load(); 00113 00118 bool save(); 00119 00124 bool close(); 00125 00126 private: 00127 //@cond PRIVATE 00128 Q_DISABLE_COPY( FileStorage ) 00129 class Private; 00130 Private *const d; 00131 //@endcond 00132 }; 00133 00134 } 00135 00136 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon May 7 2012 23:54:01 by doxygen 1.8.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon May 7 2012 23:54:01 by doxygen 1.8.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.