23 #ifndef KCAL_INCIDENCEFORMATTER_H
24 #define KCAL_INCIDENCEFORMATTER_H
26 #include "libkcal_export.h"
28 #include <tqdatetime.h>
30 #include <tqstringlist.h>
37 class LIBKCAL_EXPORT InvitationFormatterHelper
40 virtual TQString generateLinkURL( const TQString & id ) { return id; }
41 virtual TQString makeLink( const TQString & id, const TQString &text );
42 virtual Calendar *calendar() const { return 0; }
55 static TQString TDE_DEPRECATED toolTipString( IncidenceBase *incidence, bool richText = true );
56 static TQString toolTipStr( Calendar *calendar,
58 const TQDate &date=TQDate(),
59 bool richText = true );
60 static TQString mailBodyString( IncidenceBase *incidencebase );
61 static TQString TDE_DEPRECATED extensiveDisplayString( IncidenceBase *incidence );
62 static TQString extensiveDisplayStr( Calendar *calendar,
64 const TQDate &date=TQDate() );
66 static TQString formatICalInvitation( TQString invitation, Calendar *mCalendar,
67 InvitationFormatterHelper *helper );
68 static TQString TDE_DEPRECATED formatICalInvitationNoHtml( TQString invitation,
70 InvitationFormatterHelper *helper );
71 static TQString formatICalInvitationNoHtml( TQString invitation,
73 InvitationFormatterHelper *helper,
74 const TQString &sender );
77 static TQString formatTNEFInvitation( const TQByteArray& tnef,
79 InvitationFormatterHelper *helper );
81 static TQString msTNEFToVPart( const TQByteArray& tnef );
83 static TQString recurrenceString( Incidence *incidence );
93 static TQStringList reminderStringList( Incidence *incidence, bool shortfmt = true );
95 static TQString timeToString( const TQDateTime &date, bool shortfmt = true );
97 static TQString dateToString( const TQDateTime &date, bool shortfmt = true );
99 static TQString dateTimeToString( const TQDateTime &date,
100 bool dateOnly = false,
101 bool shortfmt = true );
114 static TQString durationString( Incidence *incidence );
117 static TQString formatICalInvitationHelper( TQString invitation,
119 InvitationFormatterHelper *helper,
121 const TQString &sender );
122 class EventViewerVisitor;
123 class ScheduleMessageVisitor;
124 class InvitationHeaderVisitor;
125 class InvitationBodyVisitor;
126 class IncidenceCompareVisitor;
127 class ToolTipVisitor;
128 class MailBodyVisitor;
This is the main "calendar" object class.
This class provides the base class common to all calendar components.
This class provides the base class common to all calendar components.
Namespace KCal is for global classes, objects and/or functions in libkcal.
|