KCal Library
calformat.h
Go to the documentation of this file.
00001 /* 00002 This file is part of the kcal library. 00003 00004 Copyright (c) 2001-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_CALFORMAT_H 00030 #define KCAL_CALFORMAT_H 00031 00032 #include <QtCore/QString> 00033 #include <QtCore/QDateTime> 00034 #include <QtCore/QEvent> 00035 00036 #include "exceptions.h" 00037 #include "event.h" 00038 #include "kcal_export.h" 00039 00040 namespace KCal { 00041 00042 class Calendar; 00043 00051 class KCAL_EXPORT_DEPRECATED CalFormat 00052 { 00053 public: 00057 CalFormat(); 00058 00062 virtual ~CalFormat(); 00063 00072 virtual bool load( Calendar *calendar, const QString &fileName ) = 0; 00073 00082 virtual bool save( Calendar *calendar, const QString &fileName ) = 0; 00083 00093 virtual bool fromString( Calendar *calendar, const QString &string ) = 0; 00094 00107 virtual bool fromRawString( Calendar *calendar, const QByteArray &string ) = 0; 00108 00117 virtual QString toString( Calendar *calendar ) = 0; 00118 00122 void clearException(); 00123 00128 ErrorFormat *exception(); 00129 00137 static void setApplication( const QString &application, 00138 const QString &productID ); 00139 00143 static const QString &application(); //krazy:exclude=constref 00144 00148 static const QString &productId(); //krazy:exclude=constref 00149 00153 const QString &loadedProductId(); //krazy:exclude=constref 00154 00158 static QString createUniqueId(); 00159 00166 void setException( ErrorFormat *error ); 00167 00168 protected: 00170 void setLoadedProductId( const QString &id ); 00171 00172 private: 00173 //@cond PRIVATE 00174 Q_DISABLE_COPY( CalFormat ) 00175 class Private; 00176 Private *const d; 00177 //@endcond 00178 }; 00179 00180 } 00181 00182 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon Aug 27 2012 22:10:04 by doxygen 1.7.5 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon Aug 27 2012 22:10:04 by doxygen 1.7.5 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.