• Skip to content
  • Skip to link menu
KDE 4.4 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • Sitemap
  • Contact Us
 

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 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     };
00100 
00107     explicit ErrorFormat( ErrorCodeFormat code,
00108                           const QString &message = QString() );
00109 
00113     ~ErrorFormat();
00114 
00118     QString message();
00119 
00123     ErrorCodeFormat errorCode();
00124 
00125   private:
00126     //@cond PRIVATE
00127     Q_DISABLE_COPY( ErrorFormat )
00128     class Private;
00129     Private *const d;
00130     //@endcond
00131 };
00132 
00133 }
00134 
00135 #endif

KCal Library

Skip menu "KCal Library"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kblog
  • kcal
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.6.2-20100208
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal