KCal::IncidenceFormatter Class Reference

#include <incidenceformatter.h>

Static Public Member Functions

static TQString TDE_DEPRECATED toolTipString (IncidenceBase *incidence, bool richText=true)
 
static TQString toolTipStr (Calendar *calendar, IncidenceBase *incidence, const TQDate &date=TQDate(), bool richText=true)
 
static TQString mailBodyString (IncidenceBase *incidencebase)
 
static TQString TDE_DEPRECATED extensiveDisplayString (IncidenceBase *incidence)
 
static TQString extensiveDisplayStr (Calendar *calendar, IncidenceBase *incidence, const TQDate &date=TQDate())
 
static TQString formatICalInvitation (TQString invitation, Calendar *mCalendar, InvitationFormatterHelper *helper)
 
static TQString TDE_DEPRECATED formatICalInvitationNoHtml (TQString invitation, Calendar *mCalendar, InvitationFormatterHelper *helper)
 
static TQString formatICalInvitationNoHtml (TQString invitation, Calendar *mCalendar, InvitationFormatterHelper *helper, const TQString &sender)
 
static TQString formatTNEFInvitation (const TQByteArray &tnef, Calendar *mCalendar, InvitationFormatterHelper *helper)
 
static TQString msTNEFToVPart (const TQByteArray &tnef)
 
static TQString recurrenceString (Incidence *incidence)
 
static TQStringList reminderStringList (Incidence *incidence, bool shortfmt=true)
 
static TQString timeToString (const TQDateTime &date, bool shortfmt=true)
 
static TQString dateToString (const TQDateTime &date, bool shortfmt=true)
 
static TQString dateTimeToString (const TQDateTime &date, bool dateOnly=false, bool shortfmt=true)
 
static TQString resourceString (Calendar *calendar, Incidence *incidence)
 
static TQString durationString (Incidence *incidence)
 

Detailed Description

This class is a helper class that provides several static methods to format an Incidence into different formats, like an HTML representation for KMail, a representation for tool tips, or a representation for the event viewer.

methods to format incidences into various formats for displaying them

Definition at line 52 of file incidenceformatter.h.

Member Function Documentation

◆ durationString()

TQString IncidenceFormatter::durationString ( Incidence incidence)
static

Returns a duration string computed for the specified Incidence.

Only makes sense for Events and Todos.

Parameters
incidenceis a pointer to the Incidence.

Definition at line 4101 of file incidenceformatter.cpp.

◆ msTNEFToVPart()

TQString IncidenceFormatter::msTNEFToVPart ( const TQByteArray &  tnef)
static

FIXME Need to get this attribute written

Definition at line 2841 of file incidenceformatter.cpp.

◆ resourceString()

TQString IncidenceFormatter::resourceString ( Calendar calendar,
Incidence incidence 
)
static

Returns a Calendar Resource label name for the specified Incidence.

Parameters
calendaris a pointer to the Calendar.
incidenceis a pointer to the Incidence.

Definition at line 4052 of file incidenceformatter.cpp.


The documentation for this class was generated from the following files: