• Skip to content
  • Skip to link menu
KDE 4.6 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • KDE Home
  • Contact Us
 

KCal Library

  • KCal
  • ErrorFormat
Public Types | Public Member Functions

KCal::ErrorFormat Class Reference

Calendar format related error class. More...

#include <exceptions.h>

Inheritance diagram for KCal::ErrorFormat:
Inheritance graph
[legend]

List of all members.

Public Types

enum  ErrorCodeFormat {
  LoadError, SaveError, ParseErrorIcal, ParseErrorKcal,
  NoCalendar, CalVersion1, CalVersion2, CalVersionUnknown,
  Restriction, UserCancel, NoWritableFound
}

Public Member Functions

 ErrorFormat (ErrorCodeFormat code, const QString &message=QString())
 ~ErrorFormat ()
ErrorCodeFormat errorCode ()
QString message ()

Detailed Description

Calendar format related error class.

Definition at line 82 of file exceptions.h.


Member Enumeration Documentation

enum KCal::ErrorFormat::ErrorCodeFormat

The different types of Calendar format errors.

Enumerator:
LoadError 

Load error.

SaveError 

Save error.

ParseErrorIcal 

Parse error in libical.

ParseErrorKcal 

Parse error in libkcal.

NoCalendar 

No calendar component found.

CalVersion1 

vCalendar v1.0 detected

CalVersion2 

iCalendar v2.0 detected

CalVersionUnknown 

Unknown calendar format detected.

Restriction 

Restriction violation.

UserCancel 

User canceled the operation.

NoWritableFound 

No writable resource is available.

Since:
4.5

Definition at line 88 of file exceptions.h.


Constructor & Destructor Documentation

ErrorFormat::ErrorFormat ( ErrorCodeFormat  code,
const QString &  message = QString() 
) [explicit]

Creates a format error exception.

Private class that helps to provide binary compatibility between releases.

Parameters:
codeis the exception ErrorCodeFormat.
messageis the exception message string.

Definition at line 73 of file exceptions.cpp.

ErrorFormat::~ErrorFormat ( )

Destructor.

Definition at line 79 of file exceptions.cpp.


Member Function Documentation

ErrorFormat::ErrorCodeFormat ErrorFormat::errorCode ( )

Returns the format error code.

Definition at line 131 of file exceptions.cpp.

QString ErrorFormat::message ( ) [virtual]

Returns the format error message.

Reimplemented from KCal::Exception.

Definition at line 84 of file exceptions.cpp.


The documentation for this class was generated from the following files:
  • exceptions.h
  • exceptions.cpp

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
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.7.3
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