• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepimlibs API Reference
  • KDE Home
  • Contact Us
 

KCal Library

  • sources
  • kde-4.12
  • kdepimlibs
  • kcal
exceptions.h
Go to the documentation of this file.
1 /*
2  This file is part of the kcal library.
3 
4  Copyright (c) 2001-2003 Cornelius Schumacher <schumacher@kde.org>
5 
6  This library is free software; you can redistribute it and/or
7  modify it under the terms of the GNU Library General Public
8  License as published by the Free Software Foundation; either
9  version 2 of the License, or (at your option) any later version.
10 
11  This library is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  Library General Public License for more details.
15 
16  You should have received a copy of the GNU Library General Public License
17  along with this library; see the file COPYING.LIB. If not, write to
18  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  Boston, MA 02110-1301, USA.
20 */
36 #ifndef KCAL_EXCEPTIONS_H
37 #define KCAL_EXCEPTIONS_H
38 
39 #include <QtCore/QString>
40 #include "kcal_export.h"
41 
42 namespace KCal {
43 
48 class Exception
49 {
50  public:
55  explicit Exception( const QString &message = QString() );
56 
60  virtual ~Exception();
61 
65  virtual QString message();
66 
67  protected:
69  QString mMessage;
70 
71  private:
72  //@cond PRIVATE
73  Q_DISABLE_COPY( Exception )
74  class Private;
75  Private *d;
76  //@endcond
77 };
78 
82 class KCAL_DEPRECATED_EXPORT ErrorFormat : public Exception
83 {
84  public:
88  enum ErrorCodeFormat {
89  LoadError,
90  SaveError,
91  ParseErrorIcal,
92  ParseErrorKcal,
93  NoCalendar,
94  CalVersion1,
95  CalVersion2,
96  CalVersionUnknown,
97  Restriction,
98  UserCancel,
99  NoWritableFound
100  };
101 
108  explicit ErrorFormat( ErrorCodeFormat code,
109  const QString &message = QString() );
110 
114  ~ErrorFormat();
115 
119  QString message();
120 
124  ErrorCodeFormat errorCode();
125 
126  private:
127  //@cond PRIVATE
128  Q_DISABLE_COPY( ErrorFormat )
129  class Private;
130  Private *const d;
131  //@endcond
132 };
133 
134 }
135 
136 #endif
KCal::Exception::message
virtual QString message()
Returns the exception message.
Definition: exceptions.cpp:52
KCal::Exception::~Exception
virtual ~Exception()
Destructor.
Definition: exceptions.cpp:48
KCal::Exception::Exception
Exception(const QString &message=QString())
Construct an exception with a descriptive message.
Definition: exceptions.cpp:43
KCal::ErrorFormat::CalVersion1
vCalendar v1.0 detected
Definition: exceptions.h:94
KCal::ErrorFormat::UserCancel
User canceled the operation.
Definition: exceptions.h:98
KCal::ErrorFormat::CalVersionUnknown
Unknown calendar format detected.
Definition: exceptions.h:96
KCal::ErrorFormat::CalVersion2
iCalendar v2.0 detected
Definition: exceptions.h:95
KCal::Exception::mMessage
QString mMessage
The current exception message.
Definition: exceptions.h:69
KCal::ErrorFormat::ErrorCodeFormat
ErrorCodeFormat
The different types of Calendar format errors.
Definition: exceptions.h:88
KCal::ErrorFormat::SaveError
Save error.
Definition: exceptions.h:90
KCal::ErrorFormat::ParseErrorKcal
Parse error in libkcal.
Definition: exceptions.h:92
KCal::ErrorFormat::NoCalendar
No calendar component found.
Definition: exceptions.h:93
KCal::ErrorFormat
Calendar format related error class.
Definition: exceptions.h:82
KCal::ErrorFormat::Restriction
Restriction violation.
Definition: exceptions.h:97
KCal::ErrorFormat::ParseErrorIcal
Parse error in libical.
Definition: exceptions.h:91
KCal::Exception
Exceptions base class, currently used as a fancy kind of error code and not as an C++ exception...
Definition: exceptions.h:48
KCal::ErrorFormat::LoadError
Load error.
Definition: exceptions.h:89
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:57 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KCal Library

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

kdepimlibs API Reference

Skip menu "kdepimlibs API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kldap
  • kmbox
  • kmime
  • kpimidentities
  • kpimtextedit
  • kresources
  • ktnef
  • kxmlrpcclient
  • microblog

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal