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

KCalUtils Library

incidenceformatter.h
Go to the documentation of this file.
00001 /*
00002   This file is part of the kcalutils library.
00003 
00004   Copyright (c) 2001-2003 Cornelius Schumacher <schumacher@kde.org>
00005   Copyright (c) 2004 Reinhold Kainhofer <reinhold@kainhofer.com>
00006   Copyright (c) 2009-2010 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.net>
00007 
00008   This library is free software; you can redistribute it and/or
00009   modify it under the terms of the GNU Library General Public
00010   License as published by the Free Software Foundation; either
00011   version 2 of the License, or (at your option) any later version.
00012 
00013   This library is distributed in the hope that it will be useful,
00014   but WITHOUT ANY WARRANTY; without even the implied warranty of
00015   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00016   Library General Public License for more details.
00017 
00018   You should have received a copy of the GNU Library General Public License
00019   along with this library; see the file COPYING.LIB.  If not, write to
00020   the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00021   Boston, MA 02110-1301, USA.
00022 */
00032 #ifndef KCALUTILS_INCIDENCEFORMATTER_H
00033 #define KCALUTILS_INCIDENCEFORMATTER_H
00034 
00035 #include "kcalutils_export.h"
00036 
00037 #include <kcalcore/incidence.h>
00038 #include <kcalcore/memorycalendar.h>
00039 
00040 namespace KCalUtils {
00041 
00042 class KCALUTILS_EXPORT InvitationFormatterHelper
00043 {
00044   public:
00045     InvitationFormatterHelper();
00046     virtual ~InvitationFormatterHelper();
00047     virtual QString generateLinkURL( const QString &id );
00048     virtual QString makeLink( const QString &id, const QString &text );
00049     virtual KCalCore::Calendar::Ptr 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 {
00082   KCALUTILS_EXPORT QString toolTipStr( const QString &sourceName,
00083                                        const KCalCore::IncidenceBase::Ptr &incidence,
00084                                        const QDate &date = QDate(),
00085                                        bool richText = true,
00086                                        KDateTime::Spec spec = KDateTime::Spec() );
00087 
00098   KCALUTILS_EXPORT QString extensiveDisplayStr( const KCalCore::Calendar::Ptr &calendar,
00099                                                 const KCalCore::IncidenceBase::Ptr &incidence,
00100                                                 const QDate &date=QDate(),
00101                                                 KDateTime::Spec spec=KDateTime::Spec() );
00102 
00113   KCALUTILS_EXPORT QString extensiveDisplayStr( const QString &sourceName,
00114                                                 const KCalCore::IncidenceBase::Ptr &incidence,
00115                                                 const QDate &date=QDate(),
00116                                                 KDateTime::Spec spec=KDateTime::Spec() );
00117 
00125   KCALUTILS_EXPORT QString mailBodyStr( const KCalCore::IncidenceBase::Ptr &incidence,
00126                                         KDateTime::Spec spec=KDateTime::Spec() );
00127 
00139   KCALUTILS_EXPORT QString formatICalInvitation(
00140     QString invitation,
00141     const KCalCore::MemoryCalendar::Ptr &calendar,
00142     InvitationFormatterHelper *helper,
00143     bool outlookCompareStyle );
00144 
00159   KCALUTILS_EXPORT QString formatICalInvitationNoHtml(
00160     const QString &invitation,
00161     const KCalCore::MemoryCalendar::Ptr &calendar,
00162     InvitationFormatterHelper *helper,
00163     const QString &sender,
00164     bool outlookCompareStyle );
00165 
00171   KCALUTILS_EXPORT QString recurrenceString( const KCalCore::Incidence::Ptr &incidence );
00172 
00181   KCALUTILS_EXPORT QStringList reminderStringList( const KCalCore::Incidence::Ptr &incidence,
00182                                                    bool shortfmt = true );
00183 
00191   KCALUTILS_EXPORT QString timeToString( const KDateTime &date, bool shortfmt = true,
00192                                          const KDateTime::Spec &spec = KDateTime::Spec() );
00193 
00201   KCALUTILS_EXPORT QString dateToString( const KDateTime &date, bool shortfmt = true,
00202                                          const KDateTime::Spec &spec = KDateTime::Spec() );
00203 
00212   KCALUTILS_EXPORT QString dateTimeToString( const KDateTime &date,
00213                                              bool dateOnly = false,
00214                                              bool shortfmt = true,
00215                                              const KDateTime::Spec &spec = KDateTime::Spec() );
00216 
00222   KCALUTILS_EXPORT QString resourceString( const KCalCore::Calendar::Ptr &calendar,
00223                                            const KCalCore::Incidence::Ptr &incidence );
00224 
00230   KCALUTILS_EXPORT QString durationString( const KCalCore::Incidence::Ptr &incidence );
00231 
00236   KCALUTILS_EXPORT QString incidenceStatusName( KCalCore::Incidence::Status status );
00237 
00241   KCALUTILS_EXPORT QString incidenceStatusStr( const KCalCore::Incidence::Ptr &incidence );
00242 
00243   class EventViewerVisitor;
00244   class ScheduleMessageVisitor;
00245   class InvitationHeaderVisitor;
00246   class InvitationBodyVisitor;
00247   class IncidenceCompareVisitor;
00248   class ToolTipVisitor;
00249   class MailBodyVisitor;
00250 }
00251 
00252 }
00253 
00254 #endif
00255 
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon Aug 27 2012 22:09:00 by doxygen 1.7.5 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KCalUtils Library

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

kdepimlibs-4.8.5 API Reference

Skip menu "kdepimlibs-4.8.5 API Reference"
  • 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
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