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

KCal Library

  • 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
40namespace KCal {
41
42class FreeBusy;
43
52class 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
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:52
KCal::Calendar
Represents the main calendar class.
Definition: calendar.h:121
KCal::FreeBusy
Provides information about the free/busy time of a calendar.
Definition: freebusy.h:51
KCal::ICalFormat
iCalendar format implementation.
Definition: icalformat.h:53
KCal::IncidenceBase
An abstract class that provides a common base for all calendar incidence classes.
Definition: incidencebase.h:103
KCal::Incidence
Provides the abstract base class common to non-FreeBusy (Events, To-dos, Journals) calendar component...
Definition: incidence.h:70
KCal::RecurrenceRule
This class represents a recurrence rule for a calendar incidence.
Definition: recurrencerule.h:47
KCal::ScheduleMessage
A Scheduling message class.
Definition: scheduler.h:59
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by doxygen 1.9.5 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