• 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
icalformat.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 */
29 #ifndef KCAL_ICALFORMAT_H
30 #define KCAL_ICALFORMAT_H
31 
32 #include "calformat.h"
33 #include "scheduler.h"
34 
35 #include <kdatetime.h>
36 
37 #include <QtCore/QString>
38 #include <QtCore/QByteArray>
39 
40 namespace KCal {
41 
42 class FreeBusy;
43 
52 class KCAL_DEPRECATED_EXPORT ICalFormat : public CalFormat
53 {
54  public:
58  ICalFormat();
59 
63  virtual ~ICalFormat();
64 
69  bool load( Calendar *calendar, const QString &fileName );
70 
75  bool save( Calendar *calendar, const QString &fileName );
76 
81  bool fromString( Calendar *calendar, const QString &string );
82 
91  Incidence *fromString( const QString &string );
92 
100  bool fromString ( RecurrenceRule *rule, const QString &string );
101 
106  bool fromRawString( Calendar *calendar, const QByteArray &string );
107 
112  QString toString( Calendar *calendar );
113 
121  QString toString( Incidence *incidence );
122 
130  QString toString( RecurrenceRule *rule );
131 
139  QString toICalString( Incidence *incidence );
140 
149  QString createScheduleMessage( IncidenceBase *incidence,
150  iTIPMethod method );
151 
162  ScheduleMessage *parseScheduleMessage( Calendar *calendar, const QString &string );
163 
172  FreeBusy *parseFreeBusy( const QString &string );
173 
179  void setTimeSpec( const KDateTime::Spec &timeSpec );
180 
185  KDateTime::Spec timeSpec() const;
186 
191  QString timeZoneId() const;
192 
193  private:
194  //@cond PRIVATE
195  Q_DISABLE_COPY( ICalFormat )
196  class Private;
197  Private *const d;
198  //@endcond
199 };
200 
201 }
202 
203 #endif
KCal::Calendar
Represents the main calendar class.
Definition: calendar.h:119
KCal::IncidenceBase
An abstract class that provides a common base for all calendar incidence classes. ...
Definition: incidencebase.h:102
KCal::ScheduleMessage
A Scheduling message class.
Definition: scheduler.h:58
calformat.h
This file is part of the API for handling calendar data and defines the CalFormat abstract base class...
KCal::CalFormat
An abstract base class that provides an interface to various calendar formats.
Definition: calformat.h:51
KCal::ICalFormat
iCalendar format implementation.
Definition: icalformat.h:52
KCal::Incidence
Provides the abstract base class common to non-FreeBusy (Events, To-dos, Journals) calendar component...
Definition: incidence.h:68
KCal::FreeBusy
Provides information about the free/busy time of a calendar.
Definition: freebusy.h:50
KCal::RecurrenceRule
This class represents a recurrence rule for a calendar incidence.
Definition: recurrencerule.h:46
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