diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:51:49 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:51:49 +0000 |
commit | 4ae0c208b66e0f7954e194384464fe2d0a2c56dd (patch) | |
tree | b0a7cd1c184f0003c0292eb416ed27f674f9cc43 /kbugbuster/kresources/kcalresource.cpp | |
parent | 1964ea0fb4ab57493ca2ebb709c8d3b5395fd653 (diff) | |
download | tdesdk-4ae0c208b66e0f7954e194384464fe2d0a2c56dd.tar.gz tdesdk-4ae0c208b66e0f7954e194384464fe2d0a2c56dd.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1157652 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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; } |