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

KCal Library

  • 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
42namespace KCal {
43
48class 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
82class 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::ErrorFormat
Calendar format related error class.
Definition exceptions.h:83
KCal::ErrorFormat::ErrorCodeFormat
ErrorCodeFormat
The different types of Calendar format errors.
Definition exceptions.h:88
KCal::ErrorFormat::Restriction
@ Restriction
Restriction violation.
Definition exceptions.h:97
KCal::ErrorFormat::NoCalendar
@ NoCalendar
No calendar component found.
Definition exceptions.h:93
KCal::ErrorFormat::LoadError
@ LoadError
Load error.
Definition exceptions.h:89
KCal::ErrorFormat::CalVersion1
@ CalVersion1
vCalendar v1.0 detected
Definition exceptions.h:94
KCal::ErrorFormat::ParseErrorIcal
@ ParseErrorIcal
Parse error in libical.
Definition exceptions.h:91
KCal::ErrorFormat::ParseErrorKcal
@ ParseErrorKcal
Parse error in libkcal.
Definition exceptions.h:92
KCal::ErrorFormat::CalVersion2
@ CalVersion2
iCalendar v2.0 detected
Definition exceptions.h:95
KCal::ErrorFormat::SaveError
@ SaveError
Save error.
Definition exceptions.h:90
KCal::ErrorFormat::CalVersionUnknown
@ CalVersionUnknown
Unknown calendar format detected.
Definition exceptions.h:96
KCal::ErrorFormat::UserCancel
@ UserCancel
User canceled the operation.
Definition exceptions.h:98
KCal::Exception
Exceptions base class, currently used as a fancy kind of error code and not as an C++ exception.
Definition exceptions.h:49
KCal::Exception::mMessage
QString mMessage
The current exception message.
Definition exceptions.h:69
KCal::Exception::~Exception
virtual ~Exception()
Destructor.
Definition exceptions.cpp:48
KCal::Exception::message
virtual QString message()
Returns the exception message.
Definition exceptions.cpp:52
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 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-4.14.10 API Reference

Skip menu "kdepimlibs-4.14.10 API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
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