diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /kioslaves/opengroupware/opengroupware.cpp | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kioslaves/opengroupware/opengroupware.cpp')
-rw-r--r-- | kioslaves/opengroupware/opengroupware.cpp | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/kioslaves/opengroupware/opengroupware.cpp b/kioslaves/opengroupware/opengroupware.cpp index 76abeb10e..55525aff3 100644 --- a/kioslaves/opengroupware/opengroupware.cpp +++ b/kioslaves/opengroupware/opengroupware.cpp @@ -84,8 +84,8 @@ int kdemain( int argc, char **argv ) return 0; } -OpenGroupware::OpenGroupware( const QCString &protocol, const QCString &pool, - const QCString &app ) +OpenGroupware::OpenGroupware( const TQCString &protocol, const TQCString &pool, + const TQCString &app ) : SlaveBase( protocol, pool, app ) { } @@ -103,7 +103,7 @@ void OpenGroupware::get( const KURL &url ) mimeType( "text/plain" ); - QString path = url.path(); + TQString path = url.path(); debugMessage( "Path: " + path ); if ( path.startsWith( "/freebusy/" ) ) { @@ -113,7 +113,7 @@ void OpenGroupware::get( const KURL &url ) } else if ( path.startsWith( "/addressbook/" ) ) { getAddressbook( url ); } else { - QString error = i18n("Unknown path. Known paths are '/freebusy/', " + TQString error = i18n("Unknown path. Known paths are '/freebusy/', " "'/calendar/' and '/addressbook/'."); errorMessage( error ); } @@ -123,16 +123,16 @@ void OpenGroupware::get( const KURL &url ) void OpenGroupware::getFreeBusy( const KURL &url ) { - QString file = url.filename(); + TQString file = url.filename(); if ( file.right( 4 ) != ".ifb" ) { - QString error = i18n("Illegal filename. File has to have '.ifb' suffix."); + TQString error = i18n("Illegal filename. File has to have '.ifb' suffix."); errorMessage( error ); } else { - QString email = file.left( file.length() - 4 ); + TQString email = file.left( file.length() - 4 ); debugMessage( "Email: " + email ); - QString user = url.user(); - QString pass = url.pass(); + TQString user = url.user(); + TQString pass = url.pass(); debugMessage( "URL: " ); debugMessage( "User: " + user ); @@ -146,8 +146,8 @@ void OpenGroupware::getFreeBusy( const KURL &url ) // FIXME get from server // FIXME: Read range from configuration or URL parameters. - QDate start = QDate::currentDate().addDays( -3 ); - QDate end = QDate::currentDate().addDays( 60 ); + TQDate start = TQDate::currentDate().addDays( -3 ); + TQDate end = TQDate::currentDate().addDays( 60 ); fb->setDtStart( start ); fb->setDtEnd( end ); @@ -157,15 +157,15 @@ void OpenGroupware::getFreeBusy( const KURL &url ) } #if 0 - QDateTime s = QDateTime( QDate( 2004, 9, 27 ), QTime( 10, 0 ) ); - QDateTime e = QDateTime( QDate( 2004, 9, 27 ), QTime( 11, 0 ) ); + TQDateTime s = TQDateTime( TQDate( 2004, 9, 27 ), TQTime( 10, 0 ) ); + TQDateTime e = TQDateTime( TQDate( 2004, 9, 27 ), TQTime( 11, 0 ) ); fb->addPeriod( s, e ); #endif KCal::ICalFormat format; - QString ical = format.createScheduleMessage( fb, KCal::Scheduler::Publish ); + TQString ical = format.createScheduleMessage( fb, KCal::Scheduler::Publish ); data( ical.utf8() ); @@ -178,10 +178,10 @@ void OpenGroupware::getCalendar( const KURL &_url ) { KURL url( _url ); // we'll be changing it - QString user = url.user(); - QString pass = url.pass(); + TQString user = url.user(); + TQString pass = url.pass(); - QDomDocument props = WebdavHandler::createAllPropsRequest(); + TQDomDocument props = WebdavHandler::createAllPropsRequest(); debugMessage( "URL: " ); debugMessage( "User: " + user ); @@ -194,8 +194,8 @@ void OpenGroupware::getCalendar( const KURL &_url ) // FIXME do progress handling mListEventsJob = KIO::davPropFind( url, props, "0", false ); - connect( mListEventsJob, SIGNAL( result( KIO::Job * ) ), - SLOT( slotGetCalendarListingResult( KIO::Job * ) ) ); + connect( mListEventsJob, TQT_SIGNAL( result( KIO::Job * ) ), + TQT_SLOT( slotGetCalendarListingResult( KIO::Job * ) ) ); } void OpenGroupware::getAddressbook( const KURL &url ) @@ -203,12 +203,12 @@ void OpenGroupware::getAddressbook( const KURL &url ) } -void OpenGroupware::errorMessage( const QString &msg ) +void OpenGroupware::errorMessage( const TQString &msg ) { error( KIO::ERR_SLAVE_DEFINED, msg ); } -void OpenGroupware::debugMessage( const QString &msg ) +void OpenGroupware::debugMessage( const TQString &msg ) { #if 0 data( ( msg + "\n" ).utf8() ); @@ -228,13 +228,13 @@ void OpenGroupware::slotGetCalendarListingResult( KIO::Job *job ) } else { kdDebug() << "ResourceSlox::slotResult() success" << endl; - QDomDocument doc = mListEventsJob->response(); + TQDomDocument doc = mListEventsJob->response(); } KCal::ICalFormat format; KCal::CalendarLocal calendar; - QString ical = format.toString( &calendar ); + TQString ical = format.toString( &calendar ); data( ical.utf8() ); |