diff options
Diffstat (limited to 'kbugbuster/kresources/kcalresource.cpp')
-rw-r--r-- | kbugbuster/kresources/kcalresource.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/kbugbuster/kresources/kcalresource.cpp b/kbugbuster/kresources/kcalresource.cpp index c27e8e51..5af8b8be 100644 --- a/kbugbuster/kresources/kcalresource.cpp +++ b/kbugbuster/kresources/kcalresource.cpp @@ -22,9 +22,9 @@ #include <typeinfo> #include <stdlib.h> -#include <qdatetime.h> -#include <qstring.h> -#include <qptrlist.h> +#include <tqdatetime.h> +#include <tqstring.h> +#include <tqptrlist.h> #include <kdebug.h> #include <kurl.h> @@ -117,9 +117,9 @@ void KCalResource::writeConfig( KConfig *config ) mPrefs->writeConfig(); } -QString KCalResource::cacheFile() +TQString KCalResource::cacheFile() { - QString file = locateLocal( "cache", "kcal/kresources/" + identifier() ); + TQString file = locateLocal( "cache", "kcal/kresources/" + identifier() ); kdDebug() << "KCalResource::cacheFile(): " << file << endl; return file; } @@ -157,8 +157,8 @@ bool KCalResource::doLoad() BugSystem *kbb = BugSystem::self(); kdDebug() << "KNOWN SERVERS:" << endl; - QValueList<BugServer *> servers = kbb->serverList(); - QValueList<BugServer *>::ConstIterator it; + TQValueList<BugServer *> servers = kbb->serverList(); + TQValueList<BugServer *>::ConstIterator it; for( it = servers.begin(); it != servers.end(); ++it ) { kdDebug() << " " << (*it)->identifier() << endl; } @@ -175,9 +175,9 @@ bool KCalResource::doLoad() Package package = kbb->package( mPrefs->product() ); - connect( kbb, SIGNAL( bugListAvailable( const Package &, const QString &, + connect( kbb, TQT_SIGNAL( bugListAvailable( const Package &, const TQString &, const Bug::List & ) ), - SLOT( slotBugListAvailable( const Package &, const QString &, + TQT_SLOT( slotBugListAvailable( const Package &, const TQString &, const Bug::List & ) ) ); kbb->retrieveBugList( package, mPrefs->component() ); @@ -185,14 +185,14 @@ bool KCalResource::doLoad() return true; } -void KCalResource::slotBugListAvailable( const Package &, const QString &, +void KCalResource::slotBugListAvailable( const Package &, const TQString &, const Bug::List &bugs ) { kdDebug() << "KCalResource::slotBugListAvailable()" << endl; if ( bugs.isEmpty() ) return; - QString masterUid = "kbb_" + BugSystem::self()->server()->identifier(); + TQString masterUid = "kbb_" + BugSystem::self()->server()->identifier(); KCal::Todo *masterTodo = mCalendar.todo( masterUid ); if ( !masterTodo ) { masterTodo = new KCal::Todo; @@ -205,13 +205,13 @@ void KCalResource::slotBugListAvailable( const Package &, const QString &, for( it = bugs.begin(); it != bugs.end(); ++it ) { Bug bug = *it; kdDebug() << " Bug " << bug.number() << ": " << bug.title() << endl; - QString uid = "KBugBuster_" + bug.number(); + TQString uid = "KBugBuster_" + bug.number(); KCal::Todo *newTodo = 0; KCal::Todo *todo = mCalendar.todo( uid ); if ( !todo ) { newTodo = new KCal::Todo; newTodo->setUid( uid ); - QString uri = "http://bugs.kde.org/show_bug.cgi?id=%1"; + TQString uri = "http://bugs.kde.org/show_bug.cgi?id=%1"; newTodo->addAttachment( new KCal::Attachment( uri.arg( bug.number() ) ) ); todo = newTodo; } @@ -268,8 +268,8 @@ bool KCalResource::doSave() mCalendar.save( cacheFile() ); mUploadJob = KIO::file_copy( KURL( cacheFile() ), mUploadUrl, -1, true ); - connect( mUploadJob, SIGNAL( result( KIO::Job * ) ), - SLOT( slotSaveJobResult( KIO::Job * ) ) ); + connect( mUploadJob, TQT_SIGNAL( result( KIO::Job * ) ), + TQT_SLOT( slotSaveJobResult( KIO::Job * ) ) ); return true; } |