From 67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 13 Apr 2011 00:46:47 +0000 Subject: Initial conversion of kdepim to TQt This will probably require some tweaking before it will build under Qt4, however Qt3 builds are OK. Any alterations this commit makes to kdepim behaviour under Qt3 are unintentional and should be fixed. git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- .../newexchange/exchangeconvertercalendar.cpp | 28 +++++++++++----------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'kresources/newexchange/exchangeconvertercalendar.cpp') diff --git a/kresources/newexchange/exchangeconvertercalendar.cpp b/kresources/newexchange/exchangeconvertercalendar.cpp index d2a8d55c..d28e8b1c 100644 --- a/kresources/newexchange/exchangeconvertercalendar.cpp +++ b/kresources/newexchange/exchangeconvertercalendar.cpp @@ -34,7 +34,7 @@ using namespace KCal; #define TaskNamespace1 "http://schemas.microsoft.com/mapi/id/{00062003-0000-0000-C000-000000000046}/" -#define TaskProp_Status "0x00008101" +#define TaskProp_tqStatus "0x00008101" #define TaskProp_PercentCompleted "0x00008102" #define TaskProp_DtStart "0x00008104" #define TaskProp_DtDue "0x00008105" @@ -164,7 +164,7 @@ void ExchangeConverterCalendar::createRequestTask( TQDomDocument &doc, TQDomElem propertyTask2( TaskProp_ReminderTime ); propertyTask2( TaskProp_ReminderPlaySound ); propertyTask2( TaskProp_ReminderSoundFile ); - propertyTask1( TaskProp_Status ); + propertyTask1( TaskProp_tqStatus ); } #undef propertyTask1 #undef propertyTask2 @@ -410,7 +410,7 @@ kdDebug()<<"ExchangeConverterCalendar::readIncidence: ERROR: No UID given"<recurrence()->setExDates( exdates ); @@ -497,7 +497,7 @@ kdDebug()<<"ExchangeConverterCalendar::readIncidence: ERROR: No UID given"<description() ); // FIXME: timestampt, comments and categories // domHTTPMailProperty( "date", ??? ); // timestamp not available in libkcal -// domDavProperty( "comment", incidence->comments() ); // libkcal has a QStringlist, not one string +// domDavProperty( "comment", incidence->comments() ); // libkcal has a TQStringlist, not one string // domProperty( "urn:schemas-microsoft-com:office:office", "Keywords", ??? ); // It's a entyr1entry2 String list! - tmpstr = TQString::null; + tmpstr = TQString(); switch ( incidence->secrecy() ) { case KCal::Incidence::SecrecyPublic: tmpstr = "0"; break; case KCal::Incidence::SecrecyPrivate: tmpstr = "2"; break; @@ -622,7 +622,7 @@ class ExchangeConverterCalendar::createWebDAVVisitor : public IncidenceBase::Vis domMailHeaderProperty( "from", incidence->organizer().fullName() ); // Attendees: - tmpstr = TQString::null; + tmpstr = TQString(); TQStringList reqattnames; TQStringList optattnames; Attendee::List atts = incidence->attendees(); @@ -668,7 +668,7 @@ class ExchangeConverterCalendar::createWebDAVVisitor : public IncidenceBase::Vis // FIXME: domCalendarProperty( "sequence", event->sequence() ); domCalendarProperty( "location", event->location() ); - TQString tmpstr( TQString::null ); + TQString tmpstr; switch ( event->transparency() ) { case KCal::Event::Transparent: tmpstr = "FREE"; break; case KCal::Event::Opaque: tmpstr = "BUSY"; break; @@ -730,8 +730,8 @@ class ExchangeConverterCalendar::createWebDAVVisitor : public IncidenceBase::Vis /* FIXME: domCalendarProperty( "uid", todo->uid() ); - domCalendarProperty( "created", todo->created().toString( Qt::ISODate ) ); - domCalendarProperty( "lastmodified", todo->lastModified().toString( Qt::ISODate ) );*/ + domCalendarProperty( "created", todo->created().toString( TQt::ISODate ) ); + domCalendarProperty( "lastmodified", todo->lastModified().toString( TQt::ISODate ) );*/ // TODO /*propertyTask1( TaskProp_Owner ); propertyTask2( TaskProp_ContactNames ); @@ -747,7 +747,7 @@ class ExchangeConverterCalendar::createWebDAVVisitor : public IncidenceBase::Vis propertyTask2( TaskProp_ReminderTime ); propertyTask2( TaskProp_ReminderPlaySound ); propertyTask2( TaskProp_ReminderSoundFile ); - propertyTask1( TaskProp_Status );*/ + propertyTask1( TaskProp_tqStatus );*/ return true; } bool visit( Journal *journal ) @@ -758,8 +758,8 @@ class ExchangeConverterCalendar::createWebDAVVisitor : public IncidenceBase::Vis "outlookmessageclass", "IPM.Journal" ); /* FIXME: domCalendarProperty( "uid", todo->uid() ); - domCalendarProperty( "created", todo->created().toString( Qt::ISODate ) ); - domCalendarProperty( "lastmodified", todo->lastModified().toString( Qt::ISODate ) );*/ + domCalendarProperty( "created", todo->created().toString( TQt::ISODate ) ); + domCalendarProperty( "lastmodified", todo->lastModified().toString( TQt::ISODate ) );*/ // TODO return true; } -- cgit v1.2.3