KCal Library
exceptions.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 */ 00036 #ifndef KCAL_EXCEPTIONS_H 00037 #define KCAL_EXCEPTIONS_H 00038 00039 #include <QtCore/QString> 00040 #include "kcal_export.h" 00041 00042 namespace KCal { 00043 00048 class Exception 00049 { 00050 public: 00055 explicit Exception( const QString &message = QString() ); 00056 00060 virtual ~Exception(); 00061 00065 virtual QString message(); 00066 00067 protected: 00069 QString mMessage; 00070 00071 private: 00072 //@cond PRIVATE 00073 Q_DISABLE_COPY( Exception ) 00074 class Private; 00075 Private *d; 00076 //@endcond 00077 }; 00078 00082 class KCAL_EXPORT_DEPRECATED ErrorFormat : public Exception 00083 { 00084 public: 00088 enum ErrorCodeFormat { 00089 LoadError, 00090 SaveError, 00091 ParseErrorIcal, 00092 ParseErrorKcal, 00093 NoCalendar, 00094 CalVersion1, 00095 CalVersion2, 00096 CalVersionUnknown, 00097 Restriction, 00098 UserCancel, 00099 NoWritableFound 00100 }; 00101 00108 explicit ErrorFormat( ErrorCodeFormat code, 00109 const QString &message = QString() ); 00110 00114 ~ErrorFormat(); 00115 00119 QString message(); 00120 00124 ErrorCodeFormat errorCode(); 00125 00126 private: 00127 //@cond PRIVATE 00128 Q_DISABLE_COPY( ErrorFormat ) 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 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.