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

KCal Library

calformat.h
Go to the documentation of this file.
00001 /*
00002   This file is part of the kcal library.
00003 
00004   Copyright (c) 2001-2003 Cornelius Schumacher <schumacher@kde.org>
00005 
00006   This library is free software; you can redistribute it and/or
00007   modify it under the terms of the GNU Library General Public
00008   License as published by the Free Software Foundation; either
00009   version 2 of the License, or (at your option) any later version.
00010 
00011   This library is distributed in the hope that it will be useful,
00012   but WITHOUT ANY WARRANTY; without even the implied warranty of
00013   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014   Library General Public License for more details.
00015 
00016   You should have received a copy of the GNU Library General Public License
00017   along with this library; see the file COPYING.LIB.  If not, write to
00018   the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00019   Boston, MA 02110-1301, USA.
00020 */
00029 #ifndef KCAL_CALFORMAT_H
00030 #define KCAL_CALFORMAT_H
00031 
00032 #include <QtCore/QString>
00033 #include <QtCore/QDateTime>
00034 #include <QtCore/QEvent>
00035 
00036 #include "exceptions.h"
00037 #include "event.h"
00038 #include "kcal_export.h"
00039 
00040 namespace KCal {
00041 
00042 class Calendar;
00043 
00051 class KCAL_EXPORT_DEPRECATED CalFormat
00052 {
00053   public:
00057     CalFormat();
00058 
00062     virtual ~CalFormat();
00063 
00072     virtual bool load( Calendar *calendar, const QString &fileName ) = 0;
00073 
00082     virtual bool save( Calendar *calendar, const QString &fileName ) = 0;
00083 
00093     virtual bool fromString( Calendar *calendar, const QString &string ) = 0;
00094 
00107     virtual bool fromRawString( Calendar *calendar, const QByteArray &string ) = 0;
00108 
00117     virtual QString toString( Calendar *calendar ) = 0;
00118 
00122     void clearException();
00123 
00128     ErrorFormat *exception();
00129 
00137     static void setApplication( const QString &application,
00138                                 const QString &productID );
00139 
00143     static const QString &application(); //krazy:exclude=constref
00144 
00148     static const QString &productId(); //krazy:exclude=constref
00149 
00153     const QString &loadedProductId(); //krazy:exclude=constref
00154 
00158     static QString createUniqueId();
00159 
00166     void setException( ErrorFormat *error );
00167 
00168   protected:
00170     void setLoadedProductId( const QString &id );
00171 
00172   private:
00173     //@cond PRIVATE
00174     Q_DISABLE_COPY( CalFormat )
00175     class Private;
00176     Private *const d;
00177     //@endcond
00178 };
00179 
00180 }
00181 
00182 #endif

KCal Library

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

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kalarmcal
  • 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.6.1
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