summaryrefslogtreecommitdiffstats
path: root/libkcal/incidenceformatter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libkcal/incidenceformatter.cpp')
-rw-r--r--libkcal/incidenceformatter.cpp436
1 files changed, 218 insertions, 218 deletions
diff --git a/libkcal/incidenceformatter.cpp b/libkcal/incidenceformatter.cpp
index 766906fd8..877d8860d 100644
--- a/libkcal/incidenceformatter.cpp
+++ b/libkcal/incidenceformatter.cpp
@@ -48,9 +48,9 @@
#include <kglobal.h>
#include <kiconloader.h>
-#include <qbuffer.h>
-#include <qstylesheet.h>
-#include <qdatetime.h>
+#include <tqbuffer.h>
+#include <tqstylesheet.h>
+#include <tqdatetime.h>
#include <time.h>
@@ -62,24 +62,24 @@ using namespace KCal;
* Helper functions for the extensive display (event viewer)
*******************************************************************/
-static QString eventViewerAddLink( const QString &ref, const QString &text,
+static TQString eventViewerAddLink( const TQString &ref, const TQString &text,
bool newline = true )
{
- QString tmpStr( "<a href=\"" + ref + "\">" + text + "</a>" );
+ TQString tmpStr( "<a href=\"" + ref + "\">" + text + "</a>" );
if ( newline ) tmpStr += "\n";
return tmpStr;
}
-static QString eventViewerAddTag( const QString & tag, const QString & text )
+static TQString eventViewerAddTag( const TQString & tag, const TQString & text )
{
int numLineBreaks = text.contains( "\n" );
- QString str = "<" + tag + ">";
- QString tmpText = text;
- QString tmpStr = str;
+ TQString str = "<" + tag + ">";
+ TQString tmpText = text;
+ TQString tmpStr = str;
if( numLineBreaks >= 0 ) {
if ( numLineBreaks > 0) {
int pos = 0;
- QString tmp;
+ TQString tmp;
for( int i = 0; i <= numLineBreaks; i++ ) {
pos = tmpText.find( "\n" );
tmp = tmpText.left( pos );
@@ -94,7 +94,7 @@ static QString eventViewerAddTag( const QString & tag, const QString & text )
return tmpStr;
}
-static QString linkPerson( const QString& email, QString name, QString uid )
+static TQString linkPerson( const TQString& email, TQString name, TQString uid )
{
// Make the search, if there is an email address to search on,
// and either name or uid is missing
@@ -109,12 +109,12 @@ static QString linkPerson( const QString& email, QString name, QString uid )
uid = o.uid();
} else
// Email not found in the addressbook. Don't make a link
- uid = QString::null;
+ uid = TQString::null;
}
kdDebug(5850) << "formatAttendees: uid = " << uid << endl;
// Show the attendee
- QString tmpString = "<li>";
+ TQString tmpString = "<li>";
if ( !uid.isEmpty() ) {
// There is a UID, so make a link to the addressbook
if ( name.isEmpty() )
@@ -134,16 +134,16 @@ static QString linkPerson( const QString& email, QString name, QString uid )
KURL mailto;
mailto.setProtocol( "mailto" );
mailto.setPath( person.fullName() );
- tmpString += eventViewerAddLink( mailto.url(), QString::null );
+ tmpString += eventViewerAddLink( mailto.url(), TQString::null );
}
tmpString += "</li>\n";
return tmpString;
}
-static QString eventViewerFormatAttendees( Incidence *event )
+static TQString eventViewerFormatAttendees( Incidence *event )
{
- QString tmpStr;
+ TQString tmpStr;
Attendee::List attendees = event->attendees();
if ( attendees.count() ) {
@@ -151,7 +151,7 @@ static QString eventViewerFormatAttendees( Incidence *event )
tmpStr += eventViewerAddTag( "i", i18n("Organizer") );
tmpStr += "<ul>";
tmpStr += linkPerson( event->organizer().email(),
- event->organizer().name(), QString::null );
+ event->organizer().name(), TQString::null );
tmpStr += "</ul>";
// Add attendees links
@@ -173,15 +173,15 @@ static QString eventViewerFormatAttendees( Incidence *event )
return tmpStr;
}
-static QString eventViewerFormatAttachments( Incidence *i )
+static TQString eventViewerFormatAttachments( Incidence *i )
{
- QString tmpStr;
+ TQString tmpStr;
Attachment::List as = i->attachments();
if ( as.count() > 0 ) {
Attachment::List::ConstIterator it;
for( it = as.begin(); it != as.end(); ++it ) {
if ( (*it)->isUri() ) {
- QString name;
+ TQString name;
if ( (*it)->uri().startsWith( "kmail:" ) )
name = i18n( "Show mail" );
else
@@ -198,16 +198,16 @@ static QString eventViewerFormatAttachments( Incidence *i )
FIXME:This function depends of kaddressbook. Is necessary a new
type of event?
*/
-static QString eventViewerFormatBirthday( Event *event )
+static TQString eventViewerFormatBirthday( Event *event )
{
- if ( !event) return QString::null;
- if ( event->customProperty("KABC","BIRTHDAY") != "YES" ) return QString::null;
+ if ( !event) return TQString::null;
+ if ( event->customProperty("KABC","BIRTHDAY") != "YES" ) return TQString::null;
- QString uid = event->customProperty("KABC","UID-1");
- QString name = event->customProperty("KABC","NAME-1");
- QString email= event->customProperty("KABC","EMAIL-1");
+ TQString uid = event->customProperty("KABC","UID-1");
+ TQString name = event->customProperty("KABC","NAME-1");
+ TQString email= event->customProperty("KABC","EMAIL-1");
- QString tmpString = "<ul>";
+ TQString tmpString = "<ul>";
tmpString += linkPerson( email, name, uid );
if ( event->customProperty( "KABC", "ANNIVERSARY") == "YES" ) {
@@ -221,9 +221,9 @@ static QString eventViewerFormatBirthday( Event *event )
return tmpString;
}
-static QString eventViewerFormatHeader( Incidence *incidence )
+static TQString eventViewerFormatHeader( Incidence *incidence )
{
- QString tmpStr = "<table><tr>";
+ TQString tmpStr = "<table><tr>";
// show icons
{
@@ -272,10 +272,10 @@ static QString eventViewerFormatHeader( Incidence *incidence )
return tmpStr;
}
-static QString eventViewerFormatEvent( Event *event )
+static TQString eventViewerFormatEvent( Event *event )
{
- if ( !event ) return QString::null;
- QString tmpStr = eventViewerFormatHeader( event );
+ if ( !event ) return TQString::null;
+ TQString tmpStr = eventViewerFormatHeader( event );
tmpStr += "<table>";
@@ -344,8 +344,8 @@ static QString eventViewerFormatEvent( Event *event )
}
if ( event->doesRecur() ) {
- QDateTime dt =
- event->recurrence()->getNextDateTime( QDateTime::currentDateTime() );
+ TQDateTime dt =
+ event->recurrence()->getNextDateTime( TQDateTime::currentDateTime() );
tmpStr += "<tr>";
tmpStr += "<td align=\"right\"><b>" + i18n( "Next on" ) + "</b></td>";
if ( !event->doesFloat() ) {
@@ -379,10 +379,10 @@ static QString eventViewerFormatEvent( Event *event )
return tmpStr;
}
-static QString eventViewerFormatTodo( Todo *todo )
+static TQString eventViewerFormatTodo( Todo *todo )
{
- if ( !todo ) return QString::null;
- QString tmpStr = eventViewerFormatHeader( todo );
+ if ( !todo ) return TQString::null;
+ TQString tmpStr = eventViewerFormatHeader( todo );
tmpStr += "<table>";
@@ -425,7 +425,7 @@ static QString eventViewerFormatTodo( Todo *todo )
tmpStr += "<tr>";
tmpStr += "<td align=\"right\"><b>" + i18n( "Priority" ) + "</b></td>";
if ( todo->priority() > 0 ) {
- tmpStr += "<td>" + QString::number( todo->priority() ) + "</td>";
+ tmpStr += "<td>" + TQString::number( todo->priority() ) + "</td>";
} else {
tmpStr += "<td>" + i18n( "Unspecified" ) + "</td>";
}
@@ -437,8 +437,8 @@ static QString eventViewerFormatTodo( Todo *todo )
tmpStr += "</tr>";
if ( todo->doesRecur() ) {
- QDateTime dt =
- todo->recurrence()->getNextDateTime( QDateTime::currentDateTime() );
+ TQDateTime dt =
+ todo->recurrence()->getNextDateTime( TQDateTime::currentDateTime() );
tmpStr += "<tr>";
tmpStr += "<td align=\"right\"><b>" + i18n( "Next on" ) + "</b></td>";
if ( !todo->doesFloat() ) {
@@ -472,11 +472,11 @@ static QString eventViewerFormatTodo( Todo *todo )
return tmpStr;
}
-static QString eventViewerFormatJournal( Journal *journal )
+static TQString eventViewerFormatJournal( Journal *journal )
{
- if ( !journal ) return QString::null;
+ if ( !journal ) return TQString::null;
- QString tmpStr;
+ TQString tmpStr;
if ( !journal->summary().isEmpty() ) {
tmpStr += eventViewerAddTag( "u",
eventViewerAddTag( "b", journal->summary() ) );
@@ -487,11 +487,11 @@ static QString eventViewerFormatJournal( Journal *journal )
return tmpStr;
}
-static QString eventViewerFormatFreeBusy( FreeBusy *fb )
+static TQString eventViewerFormatFreeBusy( FreeBusy *fb )
{
- if ( !fb ) return QString::null;
+ if ( !fb ) return TQString::null;
- QString tmpStr =
+ TQString tmpStr =
eventViewerAddTag( "u",
eventViewerAddTag( "b", i18n("Free/Busy information for %1")
.arg( fb->organizer().fullName() ) ) );
@@ -499,15 +499,15 @@ static QString eventViewerFormatFreeBusy( FreeBusy *fb )
.arg( KGlobal::locale()->formatDate( fb->dtStart().date(), true ) )
.arg( KGlobal::locale()->formatDate( fb->dtEnd().date(), true ) ) );
- QValueList<Period> periods = fb->busyPeriods();
+ TQValueList<Period> periods = fb->busyPeriods();
- QString text = eventViewerAddTag( "em", eventViewerAddTag( "b", i18n("Busy:") ) );
- QValueList<Period>::iterator it;
+ TQString text = eventViewerAddTag( "em", eventViewerAddTag( "b", i18n("Busy:") ) );
+ TQValueList<Period>::iterator it;
for ( it = periods.begin(); it != periods.end(); ++it ) {
Period per = *it;
if ( per.hasDuration() ) {
int dur = per.duration().asSeconds();
- QString cont;
+ TQString cont;
if ( dur >= 3600 ) {
cont += i18n("1 hour ", "%n hours ", dur / 3600 );
dur %= 3600;
@@ -546,7 +546,7 @@ class IncidenceFormatter::EventViewerVisitor : public IncidenceBase::Visitor
public:
EventViewerVisitor() { mResult = ""; }
bool act( IncidenceBase *incidence ) { return incidence->accept( *this ); }
- QString result() const { return mResult; }
+ TQString result() const { return mResult; }
protected:
bool visit( Event *event )
{
@@ -570,17 +570,17 @@ class IncidenceFormatter::EventViewerVisitor : public IncidenceBase::Visitor
}
protected:
- QString mResult;
+ TQString mResult;
};
-QString IncidenceFormatter::extensiveDisplayString( IncidenceBase *incidence )
+TQString IncidenceFormatter::extensiveDisplayString( IncidenceBase *incidence )
{
- if ( !incidence ) return QString::null;
+ if ( !incidence ) return TQString::null;
EventViewerVisitor v;
if ( v.act( incidence ) ) {
return v.result();
} else
- return QString::null;
+ return TQString::null;
}
@@ -590,14 +590,14 @@ QString IncidenceFormatter::extensiveDisplayString( IncidenceBase *incidence )
* Helper functions for the body part formatter of kmail
*******************************************************************/
-static QString string2HTML( const QString& str )
+static TQString string2HTML( const TQString& str )
{
- return QStyleSheet::convertFromPlainText(str, QStyleSheetItem::WhiteSpaceNormal);
+ return TQStyleSheet::convertFromPlainText(str, TQStyleSheetItem::WhiteSpaceNormal);
}
-static QString eventStartTimeStr( Event *event )
+static TQString eventStartTimeStr( Event *event )
{
- QString tmp;
+ TQString tmp;
if ( ! event->doesFloat() ) {
tmp = i18n("%1: Start Date, %2: Start Time", "%1 %2")
.arg( event->dtStartDateStr(), event->dtStartTimeStr() );
@@ -608,9 +608,9 @@ static QString eventStartTimeStr( Event *event )
return tmp;
}
-static QString eventEndTimeStr( Event *event )
+static TQString eventEndTimeStr( Event *event )
{
- QString tmp;
+ TQString tmp;
if ( event->hasEndDate() ) {
if ( ! event->doesFloat() ) {
tmp = i18n("%1: End Date, %2: End Time", "%1 %2")
@@ -625,21 +625,21 @@ static QString eventEndTimeStr( Event *event )
return tmp;
}
-static QString invitationRow( const QString &cell1, const QString &cell2 )
+static TQString invitationRow( const TQString &cell1, const TQString &cell2 )
{
return "<tr><td>" + cell1 + "</td><td>" + cell2 + "</td></tr>\n";
}
-static QString invitationsDetailsIncidence( Incidence *incidence )
+static TQString invitationsDetailsIncidence( Incidence *incidence )
{
- QString html;
- QString descr = incidence->description();
+ TQString html;
+ TQString descr = incidence->description();
if( !descr.isEmpty() ) {
html += "<br/><u>" + i18n("Description:")
+ "</u><table border=\"0\"><tr><td>&nbsp;</td><td>";
html += string2HTML(descr) + "</td></tr></table>";
}
- QStringList comments = incidence->comments();
+ TQStringList comments = incidence->comments();
if ( !comments.isEmpty() ) {
html += "<br><u>" + i18n("Comments:")
+ "</u><table border=\"0\"><tr><td>&nbsp;</td><td><ul>";
@@ -650,27 +650,27 @@ static QString invitationsDetailsIncidence( Incidence *incidence )
return html;
}
-static QString invitationDetailsEvent( Event* event )
+static TQString invitationDetailsEvent( Event* event )
{
// Meeting details are formatted into an HTML table
if ( !event )
- return QString::null;
+ return TQString::null;
- QString html;
- QString tmp;
+ TQString html;
+ TQString tmp;
- QString sSummary = i18n( "Summary unspecified" );
+ TQString sSummary = i18n( "Summary unspecified" );
if ( ! event->summary().isEmpty() ) {
sSummary = string2HTML( event->summary() );
}
- QString sLocation = i18n( "Location unspecified" );
+ TQString sLocation = i18n( "Location unspecified" );
if ( ! event->location().isEmpty() ) {
sLocation = string2HTML( event->location() );
}
- QString dir = ( QApplication::reverseLayout() ? "rtl" : "ltr" );
- html = QString("<div dir=\"%1\">\n").arg(dir);
+ TQString dir = ( TQApplication::reverseLayout() ? "rtl" : "ltr" );
+ html = TQString("<div dir=\"%1\">\n").arg(dir);
html += "<table border=\"0\" cellpadding=\"1\" cellspacing=\"1\">\n";
@@ -686,8 +686,8 @@ static QString invitationDetailsEvent( Event* event )
// Meeting Duration Row
if ( !event->doesFloat() && event->hasEndDate() ) {
- tmp = QString::null;
- QTime sDuration(0,0,0), t;
+ tmp = TQString::null;
+ TQTime sDuration(0,0,0), t;
int secs = event->dtStart().secsTo( event->dtEnd() );
t = sDuration.addSecs( secs );
if ( t.hour() > 0 ) {
@@ -707,21 +707,21 @@ static QString invitationDetailsEvent( Event* event )
return html;
}
-static QString invitationDetailsTodo( Todo *todo )
+static TQString invitationDetailsTodo( Todo *todo )
{
// Task details are formatted into an HTML table
if ( !todo )
- return QString::null;
+ return TQString::null;
- QString sSummary = i18n( "Summary unspecified" );
- QString sDescr = i18n( "Description unspecified" );
+ TQString sSummary = i18n( "Summary unspecified" );
+ TQString sDescr = i18n( "Description unspecified" );
if ( ! todo->summary().isEmpty() ) {
sSummary = todo->summary();
}
if ( ! todo->description().isEmpty() ) {
sDescr = todo->description();
}
- QString html( "<table border=\"0\" cellpadding=\"1\" cellspacing=\"1\">\n" );
+ TQString html( "<table border=\"0\" cellpadding=\"1\" cellspacing=\"1\">\n" );
html += invitationRow( i18n( "Summary:" ), sSummary );
html += invitationRow( i18n( "Description:" ), sDescr );
html += "</table>\n";
@@ -730,20 +730,20 @@ static QString invitationDetailsTodo( Todo *todo )
return html;
}
-static QString invitationDetailsJournal( Journal *journal )
+static TQString invitationDetailsJournal( Journal *journal )
{
if ( !journal )
- return QString::null;
+ return TQString::null;
- QString sSummary = i18n( "Summary unspecified" );
- QString sDescr = i18n( "Description unspecified" );
+ TQString sSummary = i18n( "Summary unspecified" );
+ TQString sDescr = i18n( "Description unspecified" );
if ( ! journal->summary().isEmpty() ) {
sSummary = journal->summary();
}
if ( ! journal->description().isEmpty() ) {
sDescr = journal->description();
}
- QString html( "<table border=\"0\" cellpadding=\"1\" cellspacing=\"1\">\n" );
+ TQString html( "<table border=\"0\" cellpadding=\"1\" cellspacing=\"1\">\n" );
html += invitationRow( i18n( "Summary:" ), sSummary );
html += invitationRow( i18n( "Date:" ), journal->dtStartDateStr( false ) );
html += invitationRow( i18n( "Description:" ), sDescr );
@@ -753,11 +753,11 @@ static QString invitationDetailsJournal( Journal *journal )
return html;
}
-static QString invitationDetailsFreeBusy( FreeBusy *fb )
+static TQString invitationDetailsFreeBusy( FreeBusy *fb )
{
if ( !fb )
- return QString::null;
- QString html( "<table border=\"0\" cellpadding=\"1\" cellspacing=\"1\">\n" );
+ return TQString::null;
+ TQString html( "<table border=\"0\" cellpadding=\"1\" cellspacing=\"1\">\n" );
html += invitationRow( i18n("Person:"), fb->organizer().fullName() );
html += invitationRow( i18n("Start date:"), fb->dtStartDateStr() );
@@ -766,14 +766,14 @@ static QString invitationDetailsFreeBusy( FreeBusy *fb )
html += "<tr><td colspan=2><hr></td></tr>\n";
html += "<tr><td colspan=2>Busy periods given in this free/busy object:</td></tr>\n";
- QValueList<Period> periods = fb->busyPeriods();
+ TQValueList<Period> periods = fb->busyPeriods();
- QValueList<Period>::iterator it;
+ TQValueList<Period>::iterator it;
for ( it = periods.begin(); it != periods.end(); ++it ) {
Period per = *it;
if ( per.hasDuration() ) {
int dur = per.duration().asSeconds();
- QString cont;
+ TQString cont;
if ( dur >= 3600 ) {
cont += i18n("1 hour ", "%n hours ", dur / 3600);
dur %= 3600;
@@ -785,11 +785,11 @@ static QString invitationDetailsFreeBusy( FreeBusy *fb )
if ( dur > 0 ) {
cont += i18n("1 second", "%n seconds", dur);
}
- html += invitationRow( QString::null, i18n("startDate for duration", "%1 for %2")
+ html += invitationRow( TQString::null, i18n("startDate for duration", "%1 for %2")
.arg( KGlobal::locale()->formatDateTime( per.start(), false ) )
.arg(cont) );
} else {
- QString cont;
+ TQString cont;
if ( per.start().date() == per.end().date() ) {
cont = i18n("date, fromTime - toTime ", "%1, %2 - %3")
.arg( KGlobal::locale()->formatDate( per.start().date() ) )
@@ -801,7 +801,7 @@ static QString invitationDetailsFreeBusy( FreeBusy *fb )
.arg( KGlobal::locale()->formatDateTime( per.end(), false ) );
}
- html += invitationRow( QString::null, cont );
+ html += invitationRow( TQString::null, cont );
}
}
@@ -809,10 +809,10 @@ static QString invitationDetailsFreeBusy( FreeBusy *fb )
return html;
}
-static QString invitationHeaderEvent( Event *event, ScheduleMessage *msg )
+static TQString invitationHeaderEvent( Event *event, ScheduleMessage *msg )
{
if ( !msg || !event )
- return QString::null;
+ return TQString::null;
switch ( msg->method() ) {
case Scheduler::Publish:
return i18n("This event has been published");
@@ -830,19 +830,19 @@ static QString invitationHeaderEvent( Event *event, ScheduleMessage *msg )
Attendee::List attendees = event->attendees();
if( attendees.count() == 0 ) {
kdDebug(5850) << "No attendees in the iCal reply!\n";
- return QString::null;
+ return TQString::null;
}
if( attendees.count() != 1 )
kdDebug(5850) << "Warning: attendeecount in the reply should be 1 "
<< "but is " << attendees.count() << endl;
Attendee* attendee = *attendees.begin();
- QString attendeeName = attendee->name();
+ TQString attendeeName = attendee->name();
if ( attendeeName.isEmpty() )
attendeeName = attendee->email();
if ( attendeeName.isEmpty() )
attendeeName = i18n( "Sender" );
- QString delegatorName, dummy;
+ TQString delegatorName, dummy;
KPIM::getNameAndMail( attendee->delegator(), delegatorName, dummy );
if ( delegatorName.isEmpty() )
delegatorName = attendee->delegator();
@@ -866,7 +866,7 @@ static QString invitationHeaderEvent( Event *event, ScheduleMessage *msg )
return i18n( "%1 declines this meeting invitation on behalf of %2" )
.arg( attendeeName ).arg( delegatorName );
case Attendee::Delegated: {
- QString delegate, dummy;
+ TQString delegate, dummy;
KPIM::getNameAndMail( attendee->delegate(), delegate, dummy );
if ( delegate.isEmpty() )
delegate = attendee->delegate();
@@ -891,13 +891,13 @@ static QString invitationHeaderEvent( Event *event, ScheduleMessage *msg )
return i18n("Error: iMIP message with unknown method: '%1'")
.arg( msg->method() );
}
- return QString::null;
+ return TQString::null;
}
-static QString invitationHeaderTodo( Todo *todo, ScheduleMessage *msg )
+static TQString invitationHeaderTodo( Todo *todo, ScheduleMessage *msg )
{
if ( !msg || !todo )
- return QString::null;
+ return TQString::null;
switch ( msg->method() ) {
case Scheduler::Publish:
return i18n("This task has been published");
@@ -915,7 +915,7 @@ static QString invitationHeaderTodo( Todo *todo, ScheduleMessage *msg )
Attendee::List attendees = todo->attendees();
if( attendees.count() == 0 ) {
kdDebug(5850) << "No attendees in the iCal reply!\n";
- return QString::null;
+ return TQString::null;
}
if( attendees.count() != 1 )
kdDebug(5850) << "Warning: attendeecount in the reply should be 1 "
@@ -932,7 +932,7 @@ static QString invitationHeaderTodo( Todo *todo, ScheduleMessage *msg )
case Attendee::Declined:
return i18n( "Sender declines this task" );
case Attendee::Delegated: {
- QString delegate, dummy;
+ TQString delegate, dummy;
KPIM::getNameAndMail( attendee->delegate(), delegate, dummy );
if ( delegate.isEmpty() )
delegate = attendee->delegate();
@@ -956,14 +956,14 @@ static QString invitationHeaderTodo( Todo *todo, ScheduleMessage *msg )
return i18n("Error: iMIP message with unknown method: '%1'")
.arg( msg->method() );
}
- return QString::null;
+ return TQString::null;
}
-static QString invitationHeaderJournal( Journal *journal, ScheduleMessage *msg )
+static TQString invitationHeaderJournal( Journal *journal, ScheduleMessage *msg )
{
// TODO: Several of the methods are not allowed for journals, so remove them.
if ( !msg || !journal )
- return QString::null;
+ return TQString::null;
switch ( msg->method() ) {
case Scheduler::Publish:
return i18n("This journal has been published");
@@ -979,7 +979,7 @@ static QString invitationHeaderJournal( Journal *journal, ScheduleMessage *msg )
Attendee::List attendees = journal->attendees();
if( attendees.count() == 0 ) {
kdDebug(5850) << "No attendees in the iCal reply!\n";
- return QString::null;
+ return TQString::null;
}
if( attendees.count() != 1 )
kdDebug(5850) << "Warning: attendeecount in the reply should be 1 "
@@ -1013,13 +1013,13 @@ static QString invitationHeaderJournal( Journal *journal, ScheduleMessage *msg )
return i18n("Error: iMIP message with unknown method: '%1'")
.arg( msg->method() );
}
- return QString::null;
+ return TQString::null;
}
-static QString invitationHeaderFreeBusy( FreeBusy *fb, ScheduleMessage *msg )
+static TQString invitationHeaderFreeBusy( FreeBusy *fb, ScheduleMessage *msg )
{
if ( !msg || !fb )
- return QString::null;
+ return TQString::null;
switch ( msg->method() ) {
case Scheduler::Publish:
return i18n("This free/busy list has been published");
@@ -1043,10 +1043,10 @@ class IncidenceFormatter::ScheduleMessageVisitor : public IncidenceBase::Visitor
public:
ScheduleMessageVisitor() : mMessage(0) { mResult = ""; }
bool act( IncidenceBase *incidence, ScheduleMessage *msg ) { mMessage = msg; return incidence->accept( *this ); }
- QString result() const { return mResult; }
+ TQString result() const { return mResult; }
protected:
- QString mResult;
+ TQString mResult;
ScheduleMessage *mMessage;
};
@@ -1113,11 +1113,11 @@ class IncidenceFormatter::IncidenceCompareVisitor :
return incidence->accept( *this );
}
- QString result() const
+ TQString result() const
{
if ( mChanges.isEmpty() )
- return QString();
- QString html = "<div align=\"left\"><ul><li>";
+ return TQString();
+ TQString html = "<div align=\"left\"><ul><li>";
html += mChanges.join( "</li><li>" );
html += "</li><ul></div>";
return html;
@@ -1190,13 +1190,13 @@ class IncidenceFormatter::IncidenceCompareVisitor :
private:
Incidence* mExistingIncidence;
- QStringList mChanges;
+ TQStringList mChanges;
};
-QString InvitationFormatterHelper::makeLink( const QString &id, const QString &text )
+TQString InvitationFormatterHelper::makeLink( const TQString &id, const TQString &text )
{
- QString res( "<a href=\"%1\"><b>%2</b></a>" );
+ TQString res( "<a href=\"%1\"><b>%2</b></a>" );
return res.arg( generateLinkURL( id ) ).arg( text );
return res;
}
@@ -1211,16 +1211,16 @@ static bool incidenceOwnedByMe( Calendar* calendar, Incidence *incidence )
ResourceCalendar* res = cal->resource( incidence );
if ( !res )
return true;
- const QString subRes = res->subresourceIdentifier( incidence );
+ const TQString subRes = res->subresourceIdentifier( incidence );
if ( !subRes.contains( "/.INBOX.directory/" ) )
return false;
return true;
}
-QString IncidenceFormatter::formatICalInvitation( QString invitation, Calendar *mCalendar,
+TQString IncidenceFormatter::formatICalInvitation( TQString invitation, Calendar *mCalendar,
InvitationFormatterHelper *helper )
{
- if ( invitation.isEmpty() ) return QString::null;
+ if ( invitation.isEmpty() ) return TQString::null;
ICalFormat format;
// parseScheduleMessage takes the tz from the calendar, no need to set it manually here for the format!
@@ -1230,7 +1230,7 @@ QString IncidenceFormatter::formatICalInvitation( QString invitation, Calendar *
kdDebug( 5850 ) << "Failed to parse the scheduling message" << endl;
Q_ASSERT( format.exception() );
kdDebug( 5850 ) << format.exception()->message() << endl;
- return QString::null;
+ return TQString::null;
}
IncidenceBase *incBase = msg->event();
@@ -1252,11 +1252,11 @@ QString IncidenceFormatter::formatICalInvitation( QString invitation, Calendar *
}
// First make the text of the message
- QString html;
+ TQString html;
- QString tableStyle = QString::fromLatin1(
+ TQString tableStyle = TQString::fromLatin1(
"style=\"border: solid 1px; margin: 0em;\"" );
- QString tableHead = QString::fromLatin1(
+ TQString tableHead = TQString::fromLatin1(
"<div align=\"center\">"
"<table width=\"80%\" cellpadding=\"1\" cellspacing=\"0\" %1>"
"<tr><td>").arg(tableStyle);
@@ -1265,12 +1265,12 @@ QString IncidenceFormatter::formatICalInvitation( QString invitation, Calendar *
InvitationHeaderVisitor headerVisitor;
// The InvitationHeaderVisitor returns false if the incidence is somehow invalid, or not handled
if ( !headerVisitor.act( incBase, msg ) )
- return QString::null;
+ return TQString::null;
html += "<b>" + headerVisitor.result() + "</b>";
InvitationBodyVisitor bodyVisitor;
if ( !bodyVisitor.act( incBase, msg ) )
- return QString::null;
+ return TQString::null;
html += bodyVisitor.result();
if ( msg->method() == Scheduler::Request ) { // ### Scheduler::Publish/Refresh/Add as well?
@@ -1382,15 +1382,15 @@ QString IncidenceFormatter::formatICalInvitation( QString invitation, Calendar *
//-----------------------------------------------------------------------------
-static QString stringProp( KTNEFMessage* tnefMsg, const Q_UINT32& key,
- const QString& fallback = QString::null)
+static TQString stringProp( KTNEFMessage* tnefMsg, const Q_UINT32& key,
+ const TQString& fallback = TQString::null)
{
return tnefMsg->findProp( key < 0x10000 ? key & 0xFFFF : key >> 16,
fallback );
}
-static QString sNamedProp( KTNEFMessage* tnefMsg, const QString& name,
- const QString& fallback = QString::null )
+static TQString sNamedProp( KTNEFMessage* tnefMsg, const TQString& name,
+ const TQString& fallback = TQString::null )
{
return tnefMsg->findNamedProp( name, fallback );
}
@@ -1449,7 +1449,7 @@ static void unset_tz( struct save_tz old_tz )
if( old_tz.tz_env_str ) free( old_tz.tz_env_str );
}
-static QDateTime utc2Local( const QDateTime& utcdt )
+static TQDateTime utc2Local( const TQDateTime& utcdt )
{
struct tm tmL;
@@ -1458,16 +1458,16 @@ static QDateTime utc2Local( const QDateTime& utcdt )
unset_tz( tmp_tz );
localtime_r( &utc, &tmL );
- return QDateTime( QDate( tmL.tm_year+1900, tmL.tm_mon+1, tmL.tm_mday ),
- QTime( tmL.tm_hour, tmL.tm_min, tmL.tm_sec ) );
+ return TQDateTime( TQDate( tmL.tm_year+1900, tmL.tm_mon+1, tmL.tm_mday ),
+ TQTime( tmL.tm_hour, tmL.tm_min, tmL.tm_sec ) );
}
-static QDateTime pureISOToLocalQDateTime( const QString& dtStr,
+static TQDateTime pureISOToLocalQDateTime( const TQString& dtStr,
bool bDateOnly = false )
{
- QDate tmpDate;
- QTime tmpTime;
+ TQDate tmpDate;
+ TQTime tmpTime;
int year, month, day, hour, minute, second;
if( bDateOnly ) {
@@ -1489,7 +1489,7 @@ static QDateTime pureISOToLocalQDateTime( const QString& dtStr,
tmpTime.setHMS( hour, minute, second );
if( tmpDate.isValid() && tmpTime.isValid() ) {
- QDateTime dT = QDateTime( tmpDate, tmpTime );
+ TQDateTime dT = TQDateTime( tmpDate, tmpTime );
if( !bDateOnly ) {
// correct for GMT ( == Zulu time == UTC )
@@ -1501,18 +1501,18 @@ static QDateTime pureISOToLocalQDateTime( const QString& dtStr,
}
return dT;
} else
- return QDateTime();
+ return TQDateTime();
}
-QString IncidenceFormatter::msTNEFToVPart( const QByteArray& tnef )
+TQString IncidenceFormatter::msTNEFToVPart( const TQByteArray& tnef )
{
bool bOk = false;
KTNEFParser parser;
- QBuffer buf( tnef );
- CalendarLocal cal ( QString::fromLatin1( "UTC" ) );
+ TQBuffer buf( tnef );
+ CalendarLocal cal ( TQString::fromLatin1( "UTC" ) );
KABC::Addressee addressee;
KABC::VCardConverter cardConv;
ICalFormat calFormat;
@@ -1520,11 +1520,11 @@ QString IncidenceFormatter::msTNEFToVPart( const QByteArray& tnef )
if( parser.openDevice( &buf ) ) {
KTNEFMessage* tnefMsg = parser.message();
- //QMap<int,KTNEFProperty*> props = parser.message()->properties();
+ //TQMap<int,KTNEFProperty*> props = parser.message()->properties();
// Everything depends from property PR_MESSAGE_CLASS
// (this is added by KTNEFParser):
- QString msgClass = tnefMsg->findProp( 0x001A, QString::null, true )
+ TQString msgClass = tnefMsg->findProp( 0x001A, TQString::null, true )
.upper();
if( !msgClass.isEmpty() ) {
// Match the old class names that might be used by Outlook for
@@ -1553,7 +1553,7 @@ QString IncidenceFormatter::msTNEFToVPart( const QByteArray& tnef )
if( bCompatClassAppointment || "IPM.APPOINTMENT" == msgClass ) {
// Compose a vCal
bool bIsReply = false;
- QString prodID = "-//Microsoft Corporation//Outlook ";
+ TQString prodID = "-//Microsoft Corporation//Outlook ";
prodID += tnefMsg->findNamedProp( "0x8554", "9.0" );
prodID += "MIMEDIR/EN\n";
prodID += "VERSION:2.0\n";
@@ -1585,7 +1585,7 @@ QString IncidenceFormatter::msTNEFToVPart( const QByteArray& tnef )
/// ### FIXME Need to get this attribute written
ScheduleMessage schedMsg(event, method, ScheduleMessage::Unknown );
- QString sSenderSearchKeyEmail( tnefMsg->findProp( 0x0C1D ) );
+ TQString sSenderSearchKeyEmail( tnefMsg->findProp( 0x0C1D ) );
if( !sSenderSearchKeyEmail.isEmpty() ) {
int colon = sSenderSearchKeyEmail.find( ':' );
@@ -1594,10 +1594,10 @@ QString IncidenceFormatter::msTNEFToVPart( const QByteArray& tnef )
sSenderSearchKeyEmail.remove( 0, colon+1 );
}
- QString s( tnefMsg->findProp( 0x0e04 ) );
- QStringList attendees = QStringList::split( ';', s );
+ TQString s( tnefMsg->findProp( 0x0e04 ) );
+ TQStringList attendees = TQStringList::split( ';', s );
if( attendees.count() ) {
- for( QStringList::Iterator it = attendees.begin();
+ for( TQStringList::Iterator it = attendees.begin();
it != attendees.end(); ++it ) {
// Skip all entries that have no '@' since these are
// no mail addresses
@@ -1624,7 +1624,7 @@ QString IncidenceFormatter::msTNEFToVPart( const QByteArray& tnef )
// This must be old style, let us use the PR_SENDER_SEARCH_KEY.
s = sSenderSearchKeyEmail;
if( !s.isEmpty() ) {
- Attendee *attendee = new Attendee( QString::null, QString::null,
+ Attendee *attendee = new Attendee( TQString::null, TQString::null,
true );
if( bIsReply ) {
if( bCompatMethodAccepted )
@@ -1647,13 +1647,13 @@ QString IncidenceFormatter::msTNEFToVPart( const QByteArray& tnef )
if( !s.isEmpty() )
event->setOrganizer( s );
- s = tnefMsg->findProp( 0x8516 ).replace( QChar( '-' ), QString::null )
- .replace( QChar( ':' ), QString::null );
- event->setDtStart( QDateTime::fromString( s ) ); // ## Format??
+ s = tnefMsg->findProp( 0x8516 ).replace( TQChar( '-' ), TQString::null )
+ .replace( TQChar( ':' ), TQString::null );
+ event->setDtStart( TQDateTime::fromString( s ) ); // ## Format??
- s = tnefMsg->findProp( 0x8517 ).replace( QChar( '-' ), QString::null )
- .replace( QChar( ':' ), QString::null );
- event->setDtEnd( QDateTime::fromString( s ) );
+ s = tnefMsg->findProp( 0x8517 ).replace( TQChar( '-' ), TQString::null )
+ .replace( TQChar( ':' ), TQString::null );
+ event->setDtEnd( TQDateTime::fromString( s ) );
s = tnefMsg->findProp( 0x8208 );
event->setLocation( s );
@@ -1669,10 +1669,10 @@ QString IncidenceFormatter::msTNEFToVPart( const QByteArray& tnef )
// PENDING(khz): is this value in local timezone? Must it be
// adjusted? Most likely this is a bug in the server or in
// Outlook - we ignore it for now.
- s = tnefMsg->findProp( 0x8202 ).replace( QChar( '-' ), QString::null )
- .replace( QChar( ':' ), QString::null );
+ s = tnefMsg->findProp( 0x8202 ).replace( TQChar( '-' ), TQString::null )
+ .replace( TQChar( ':' ), TQString::null );
// ### libkcal always uses currentDateTime()
- // event->setDtStamp(QDateTime::fromString(s));
+ // event->setDtStamp(TQDateTime::fromString(s));
s = tnefMsg->findNamedProp( "Keywords" );
event->setCategories( s );
@@ -1689,14 +1689,14 @@ QString IncidenceFormatter::msTNEFToVPart( const QByteArray& tnef )
// is reminder flag set ?
if(!tnefMsg->findProp(0x8503).isEmpty()) {
Alarm *alarm = new Alarm(event);
- QDateTime highNoonTime =
+ TQDateTime highNoonTime =
pureISOToLocalQDateTime( tnefMsg->findProp( 0x8502 )
- .replace( QChar( '-' ), "" )
- .replace( QChar( ':' ), "" ) );
- QDateTime wakeMeUpTime =
+ .replace( TQChar( '-' ), "" )
+ .replace( TQChar( ':' ), "" ) );
+ TQDateTime wakeMeUpTime =
pureISOToLocalQDateTime( tnefMsg->findProp( 0x8560, "" )
- .replace( QChar( '-' ), "" )
- .replace( QChar( ':' ), "" ) );
+ .replace( TQChar( '-' ), "" )
+ .replace( TQChar( ':' ), "" ) );
alarm->setTime(wakeMeUpTime);
if( highNoonTime.isValid() && wakeMeUpTime.isValid() )
@@ -1727,9 +1727,9 @@ QString IncidenceFormatter::msTNEFToVPart( const QByteArray& tnef )
addressee.insertCustom( "KADDRESSBOOK", "X-Office", stringProp( tnefMsg, MAPI_TAG_PR_OFFICE_LOCATION ) );
addressee.insertCustom( "KADDRESSBOOK", "X-Profession", stringProp( tnefMsg, MAPI_TAG_PR_PROFESSION ) );
- QString s = tnefMsg->findProp( MAPI_TAG_PR_WEDDING_ANNIVERSARY )
- .replace( QChar( '-' ), QString::null )
- .replace( QChar( ':' ), QString::null );
+ TQString s = tnefMsg->findProp( MAPI_TAG_PR_WEDDING_ANNIVERSARY )
+ .replace( TQChar( '-' ), TQString::null )
+ .replace( TQChar( ':' ), TQString::null );
if( !s.isEmpty() )
addressee.insertCustom( "KADDRESSBOOK", "X-Anniversary", s );
@@ -1782,7 +1782,7 @@ QString IncidenceFormatter::msTNEFToVPart( const QByteArray& tnef )
// a line looking like the following one:
// vPart += "\nADR;TYPE=dom;TYPE=intl;TYPE=parcel;TYPE=postal;TYPE=work;TYPE=home:other_pobox;;other_str1\nother_str2;other_loc;other_region;other_pocode;other_country
- QString nr;
+ TQString nr;
nr = stringProp( tnefMsg, MAPI_TAG_PR_HOME_TELEPHONE_NUMBER );
addressee.insertPhoneNumber( KABC::PhoneNumber( nr, KABC::PhoneNumber::Home ) );
nr = stringProp( tnefMsg, MAPI_TAG_PR_BUSINESS_TELEPHONE_NUMBER );
@@ -1795,10 +1795,10 @@ QString IncidenceFormatter::msTNEFToVPart( const QByteArray& tnef )
addressee.insertPhoneNumber( KABC::PhoneNumber( nr, KABC::PhoneNumber::Fax | KABC::PhoneNumber::Work ) );
s = tnefMsg->findProp( MAPI_TAG_PR_BIRTHDAY )
- .replace( QChar( '-' ), QString::null )
- .replace( QChar( ':' ), QString::null );
+ .replace( TQChar( '-' ), TQString::null )
+ .replace( TQChar( ':' ), TQString::null );
if( !s.isEmpty() )
- addressee.setBirthday( QDateTime::fromString( s ) );
+ addressee.setBirthday( TQDateTime::fromString( s ) );
bOk = ( !addressee.isEmpty() );
} else if( "IPM.NOTE" == msgClass ) {
@@ -1808,7 +1808,7 @@ QString IncidenceFormatter::msTNEFToVPart( const QByteArray& tnef )
}
// Compose return string
- QString iCal = calFormat.toString( &cal );
+ TQString iCal = calFormat.toString( &cal );
if( !iCal.isEmpty() )
// This was an iCal
return iCal;
@@ -1819,11 +1819,11 @@ QString IncidenceFormatter::msTNEFToVPart( const QByteArray& tnef )
}
-QString IncidenceFormatter::formatTNEFInvitation( const QByteArray& tnef,
+TQString IncidenceFormatter::formatTNEFInvitation( const TQByteArray& tnef,
Calendar *mCalendar, InvitationFormatterHelper *helper )
{
- QString vPart = IncidenceFormatter::msTNEFToVPart( tnef );
- QString iCal = IncidenceFormatter::formatICalInvitation( vPart, mCalendar, helper );
+ TQString vPart = IncidenceFormatter::msTNEFToVPart( tnef );
+ TQString iCal = IncidenceFormatter::formatICalInvitation( vPart, mCalendar, helper );
if( !iCal.isEmpty() )
return iCal;
return vPart;
@@ -1847,7 +1847,7 @@ class IncidenceFormatter::ToolTipVisitor : public IncidenceBase::Visitor
mResult = "";
return incidence ? incidence->accept( *this ) : false;
}
- QString result() const { return mResult; }
+ TQString result() const { return mResult; }
protected:
bool visit( Event *event );
@@ -1855,22 +1855,22 @@ class IncidenceFormatter::ToolTipVisitor : public IncidenceBase::Visitor
bool visit( Journal *journal );
bool visit( FreeBusy *fb );
- QString dateRangeText( Event*event );
- QString dateRangeText( Todo *todo );
- QString dateRangeText( Journal *journal );
- QString dateRangeText( FreeBusy *fb );
+ TQString dateRangeText( Event*event );
+ TQString dateRangeText( Todo *todo );
+ TQString dateRangeText( Journal *journal );
+ TQString dateRangeText( FreeBusy *fb );
- QString generateToolTip( Incidence* incidence, QString dtRangeText );
+ TQString generateToolTip( Incidence* incidence, TQString dtRangeText );
protected:
bool mRichText;
- QString mResult;
+ TQString mResult;
};
-QString IncidenceFormatter::ToolTipVisitor::dateRangeText( Event*event )
+TQString IncidenceFormatter::ToolTipVisitor::dateRangeText( Event*event )
{
- QString ret;
- QString tmp;
+ TQString ret;
+ TQString tmp;
if ( event->isMultiDay() ) {
tmp = "<br>" + i18n("Event start", "<i>From:</i>&nbsp;%1");
@@ -1890,8 +1890,8 @@ QString IncidenceFormatter::ToolTipVisitor::dateRangeText( Event*event )
ret += "<br>"+i18n("<i>Date:</i>&nbsp;%1").
arg( event->dtStartDateStr().replace(" ", "&nbsp;") );
if ( !event->doesFloat() ) {
- const QString dtStartTime = event->dtStartTimeStr().replace( " ", "&nbsp;" );
- const QString dtEndTime = event->dtEndTimeStr().replace( " ", "&nbsp;" );
+ const TQString dtStartTime = event->dtStartTimeStr().replace( " ", "&nbsp;" );
+ const TQString dtEndTime = event->dtEndTimeStr().replace( " ", "&nbsp;" );
if ( dtStartTime == dtEndTime ) { // to prevent 'Time: 17:00 - 17:00'
tmp = "<br>" + i18n("time for event, &nbsp; to prevent ugly line breaks",
"<i>Time:</i>&nbsp;%1").
@@ -1908,9 +1908,9 @@ QString IncidenceFormatter::ToolTipVisitor::dateRangeText( Event*event )
return ret;
}
-QString IncidenceFormatter::ToolTipVisitor::dateRangeText( Todo*todo )
+TQString IncidenceFormatter::ToolTipVisitor::dateRangeText( Todo*todo )
{
- QString ret;
+ TQString ret;
bool floats( todo->doesFloat() );
if (todo->hasStartDate())
// No need to add <i> here. This is separated issue and each line
@@ -1933,19 +1933,19 @@ QString IncidenceFormatter::ToolTipVisitor::dateRangeText( Todo*todo )
return ret;
}
-QString IncidenceFormatter::ToolTipVisitor::dateRangeText( Journal*journal )
+TQString IncidenceFormatter::ToolTipVisitor::dateRangeText( Journal*journal )
{
- QString ret;
+ TQString ret;
if (journal->dtStart().isValid() ) {
ret += "<br>" + i18n("<i>Date:</i>&nbsp;%1").arg( journal->dtStartDateStr( false ) );
}
return ret;
}
-QString IncidenceFormatter::ToolTipVisitor::dateRangeText( FreeBusy *fb )
+TQString IncidenceFormatter::ToolTipVisitor::dateRangeText( FreeBusy *fb )
{
- QString tmp( "<br>" + i18n("<i>Period start:</i>&nbsp;%1") );
- QString ret = tmp.arg( KGlobal::locale()->formatDateTime( fb->dtStart() ) );
+ TQString tmp( "<br>" + i18n("<i>Period start:</i>&nbsp;%1") );
+ TQString ret = tmp.arg( KGlobal::locale()->formatDateTime( fb->dtStart() ) );
tmp = "<br>" + i18n("<i>Period start:</i>&nbsp;%1");
ret += tmp.arg( KGlobal::locale()->formatDateTime( fb->dtEnd() ) );
return ret;
@@ -1980,12 +1980,12 @@ bool IncidenceFormatter::ToolTipVisitor::visit( FreeBusy *fb )
return !mResult.isEmpty();
}
-QString IncidenceFormatter::ToolTipVisitor::generateToolTip( Incidence* incidence, QString dtRangeText )
+TQString IncidenceFormatter::ToolTipVisitor::generateToolTip( Incidence* incidence, TQString dtRangeText )
{
if ( !incidence )
- return QString::null;
+ return TQString::null;
- QString tmp = "<qt><b>"+ incidence->summary().replace("\n", "<br>")+"</b>";
+ TQString tmp = "<qt><b>"+ incidence->summary().replace("\n", "<br>")+"</b>";
tmp += dtRangeText;
@@ -1995,7 +1995,7 @@ QString IncidenceFormatter::ToolTipVisitor::generateToolTip( Incidence* incidenc
arg( incidence->location().replace("\n", "<br>") );
}
if (!incidence->description().isEmpty()) {
- QString desc(incidence->description());
+ TQString desc(incidence->description());
if (desc.length()>120) {
desc = desc.left(120) + "...";
}
@@ -2005,13 +2005,13 @@ QString IncidenceFormatter::ToolTipVisitor::generateToolTip( Incidence* incidenc
return tmp;
}
-QString IncidenceFormatter::toolTipString( IncidenceBase *incidence, bool richText )
+TQString IncidenceFormatter::toolTipString( IncidenceBase *incidence, bool richText )
{
ToolTipVisitor v;
if ( v.act( incidence, richText ) ) {
return v.result();
} else
- return QString::null;
+ return TQString::null;
}
@@ -2031,7 +2031,7 @@ class IncidenceFormatter::MailBodyVisitor : public IncidenceBase::Visitor
mResult = "";
return incidence ? incidence->accept( *this ) : false;
}
- QString result() const { return mResult; }
+ TQString result() const { return mResult; }
protected:
bool visit( Event *event );
@@ -2039,13 +2039,13 @@ class IncidenceFormatter::MailBodyVisitor : public IncidenceBase::Visitor
bool visit( Journal *journal );
bool visit( FreeBusy * ) { mResult = i18n("This is a Free Busy Object"); return !mResult.isEmpty(); }
protected:
- QString mResult;
+ TQString mResult;
};
-static QString mailBodyIncidence( Incidence *incidence )
+static TQString mailBodyIncidence( Incidence *incidence )
{
- QString body;
+ TQString body;
if ( !incidence->summary().isEmpty() ) {
body += i18n("Summary: %1\n").arg( incidence->summary() );
}
@@ -2060,7 +2060,7 @@ static QString mailBodyIncidence( Incidence *incidence )
bool IncidenceFormatter::MailBodyVisitor::visit( Event *event )
{
- QString recurrence[]= {i18n("no recurrence", "None"),
+ TQString recurrence[]= {i18n("no recurrence", "None"),
i18n("Minutely"), i18n("Hourly"), i18n("Daily"),
i18n("Weekly"), i18n("Monthly Same Day"), i18n("Monthly Same Position"),
i18n("Yearly"), i18n("Yearly"), i18n("Yearly")};
@@ -2090,7 +2090,7 @@ bool IncidenceFormatter::MailBodyVisitor::visit( Event *event )
} else {
if ( recur->duration() != -1 ) {
// TODO_Recurrence: What to do with floating
- QString endstr;
+ TQString endstr;
if ( event->doesFloat() ) {
endstr = KGlobal::locale()->formatDate( recur->endDate() );
} else {
@@ -2102,7 +2102,7 @@ bool IncidenceFormatter::MailBodyVisitor::visit( Event *event )
}
}
}
- QString details = event->description();
+ TQString details = event->description();
if ( !details.isEmpty() ) {
mResult += i18n("Details:\n%1\n").arg( details );
}
@@ -2125,7 +2125,7 @@ bool IncidenceFormatter::MailBodyVisitor::visit( Todo *todo )
mResult += i18n("Due Time: %1\n").arg( todo->dtDueTimeStr() );
}
}
- QString details = todo->description();
+ TQString details = todo->description();
if ( !details.isEmpty() ) {
mResult += i18n("Details:\n%1\n").arg( details );
}
@@ -2146,21 +2146,21 @@ bool IncidenceFormatter::MailBodyVisitor::visit( Journal *journal )
-QString IncidenceFormatter::mailBodyString( IncidenceBase *incidence )
+TQString IncidenceFormatter::mailBodyString( IncidenceBase *incidence )
{
if ( !incidence )
- return QString::null;
+ return TQString::null;
MailBodyVisitor v;
if ( v.act( incidence ) ) {
return v.result();
}
- return QString::null;
+ return TQString::null;
}
-static QString recurEnd( Incidence *incidence )
+static TQString recurEnd( Incidence *incidence )
{
- QString endstr;
+ TQString endstr;
if ( incidence->doesFloat() ) {
endstr = KGlobal::locale()->formatDate( incidence->recurrence()->endDate() );
} else {
@@ -2169,7 +2169,7 @@ static QString recurEnd( Incidence *incidence )
return endstr;
}
-QString IncidenceFormatter::recurrenceString(Incidence * incidence)
+TQString IncidenceFormatter::recurrenceString(Incidence * incidence)
{
if ( !incidence->doesRecur() )
return i18n( "No recurrence" );