• Skip to content
  • Skip to link menu
KDE 4.3 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • Sitemap
  • Contact Us
 

KCal Library

incidenceformatter.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   Copyright (c) 2004 Reinhold Kainhofer <reinhold@kainhofer.com>
00006 
00007   This library is free software; you can redistribute it and/or
00008   modify it under the terms of the GNU Library General Public
00009   License as published by the Free Software Foundation; either
00010   version 2 of the License, or (at your option) any later version.
00011 
00012   This library is distributed in the hope that it will be useful,
00013   but WITHOUT ANY WARRANTY; without even the implied warranty of
00014   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015   Library General Public License for more details.
00016 
00017   You should have received a copy of the GNU Library General Public License
00018   along with this library; see the file COPYING.LIB.  If not, write to
00019   the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00020   Boston, MA 02110-1301, USA.
00021 */
00030 #ifndef KCAL_INCIDENCEFORMATTER_H
00031 #define KCAL_INCIDENCEFORMATTER_H
00032 
00033 #include "kcal_export.h"
00034 #include <KDE/KDateTime>
00035 #include <QtCore/QString>
00036 
00037 namespace KCal {
00038 class Calendar;
00039 class Incidence;
00040 class IncidenceBase;
00041 
00042 class KCAL_EXPORT InvitationFormatterHelper
00043 {
00044   public:
00045     InvitationFormatterHelper() : d( 0 ) {}
00046     virtual ~InvitationFormatterHelper(){}
00047     virtual QString generateLinkURL( const QString &id );
00048     virtual QString makeLink( const QString &id, const QString &text );
00049     virtual Calendar *calendar() const;
00050 
00051   private:
00052     //@cond PRIVATE
00053     Q_DISABLE_COPY( InvitationFormatterHelper )
00054     class Private;
00055     Private *const d;
00056     //@endcond
00057 };
00058 
00068 namespace IncidenceFormatter
00069 {
00079   KCAL_EXPORT QString toolTipStr( IncidenceBase *incidence,
00080                                   bool richText=true,
00081                                   KDateTime::Spec spec=KDateTime::Spec() );
00082 
00090   KCAL_EXPORT KDE_DEPRECATED QString toolTipString( IncidenceBase *incidence,
00091                                                     bool richText=true );
00092 
00101   KCAL_EXPORT QString extensiveDisplayStr( IncidenceBase *incidence,
00102                                            KDateTime::Spec spec=KDateTime::Spec() );
00103 
00110   KCAL_EXPORT KDE_DEPRECATED QString extensiveDisplayString( IncidenceBase *incidence );
00111 
00120   KCAL_EXPORT QString mailBodyStr( IncidenceBase *incidence,
00121                                    KDateTime::Spec spec=KDateTime::Spec() );
00122 
00129   KCAL_EXPORT KDE_DEPRECATED QString mailBodyString( IncidenceBase *incidence );
00130 
00135   KCAL_EXPORT QString formatICalInvitation( QString invitation, Calendar *mCalendar,
00136                                             InvitationFormatterHelper *helper );
00140   KCAL_EXPORT QString formatICalInvitationNoHtml( QString invitation, Calendar *mCalendar,
00141                                                   InvitationFormatterHelper *helper );
00142 
00147   KCAL_EXPORT QString formatTNEFInvitation( const QByteArray &tnef, Calendar *mCalendar,
00148                                             InvitationFormatterHelper *helper );
00153   KCAL_EXPORT QString msTNEFToVPart( const QByteArray &tnef );
00154 
00161   KCAL_EXPORT QString recurrenceString( Incidence *incidence );
00162 
00171   KCAL_EXPORT QString timeToString( const KDateTime &date, bool shortfmt = true,
00172                                     const KDateTime::Spec &spec = KDateTime::Spec() );
00173 
00182   KCAL_EXPORT QString dateToString( const KDateTime &date, bool shortfmt = true,
00183                                     const KDateTime::Spec &spec = KDateTime::Spec() );
00184 
00194   KCAL_EXPORT QString dateTimeToString( const KDateTime &date,
00195                                         bool dateOnly = false,
00196                                         bool shortfmt = true,
00197                                         const KDateTime::Spec &spec = KDateTime::Spec() );
00198 
00199   class EventViewerVisitor;
00200   class ScheduleMessageVisitor;
00201   class InvitationHeaderVisitor;
00202   class InvitationBodyVisitor;
00203   class IncidenceCompareVisitor;
00204   class ToolTipVisitor;
00205   class MailBodyVisitor;
00206 }
00207 
00208 }
00209 
00210 #endif

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
  • kabc
  • kblog
  • kcal
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  • kldap
  • kmime
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.5.8
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