diff options
Diffstat (limited to 'knode/knarticlemanager.cpp')
-rw-r--r-- | knode/knarticlemanager.cpp | 74 |
1 files changed, 37 insertions, 37 deletions
diff --git a/knode/knarticlemanager.cpp b/knode/knarticlemanager.cpp index 4f1786e8c..86bcd8df9 100644 --- a/knode/knarticlemanager.cpp +++ b/knode/knarticlemanager.cpp @@ -44,7 +44,7 @@ using namespace KNode; -KNArticleManager::KNArticleManager() : QObject(0,0) +KNArticleManager::KNArticleManager() : TQObject(0,0) { g_roup=0; f_older=0; @@ -53,8 +53,8 @@ KNArticleManager::KNArticleManager() : QObject(0,0) s_earchDlg=0; d_isableExpander=false; - connect(f_ilterMgr, SIGNAL(filterChanged(KNArticleFilter*)), this, - SLOT(slotFilterChanged(KNArticleFilter*))); + connect(f_ilterMgr, TQT_SIGNAL(filterChanged(KNArticleFilter*)), this, + TQT_SLOT(slotFilterChanged(KNArticleFilter*))); } @@ -66,7 +66,7 @@ KNArticleManager::~KNArticleManager() void KNArticleManager::deleteTempFiles() { - for ( QValueList<KTempFile*>::Iterator it = mTempFiles.begin(); it != mTempFiles.end(); ++it ) { + for ( TQValueList<KTempFile*>::Iterator it = mTempFiles.begin(); it != mTempFiles.end(); ++it ) { (*it)->unlink(); delete (*it); } @@ -74,24 +74,24 @@ void KNArticleManager::deleteTempFiles() } -void KNArticleManager::saveContentToFile(KMime::Content *c, QWidget *parent) +void KNArticleManager::saveContentToFile(KMime::Content *c, TQWidget *parent) { KNSaveHelper helper(c->contentType()->name(),parent); - QFile *file = helper.getFile(i18n("Save Attachment")); + TQFile *file = helper.getFile(i18n("Save Attachment")); if (file) { - QByteArray data=c->decodedContent(); + TQByteArray data=c->decodedContent(); if (file->writeBlock(data.data(), data.size()) == -1 ) KNHelper::displayExternalFileError( parent ); } } -void KNArticleManager::saveArticleToFile(KNArticle *a, QWidget *parent) +void KNArticleManager::saveArticleToFile(KNArticle *a, TQWidget *parent) { - QString fName = a->subject()->asUnicodeString(); - QString s = ""; + TQString fName = a->subject()->asUnicodeString(); + TQString s = ""; for (unsigned int i=0; i<fName.length(); i++) if (fName[i].isLetterOrNumber()) @@ -99,22 +99,22 @@ void KNArticleManager::saveArticleToFile(KNArticle *a, QWidget *parent) else s.append(' '); fName = s.simplifyWhiteSpace(); - fName.replace(QRegExp("[\\s]"),"_"); + fName.replace(TQRegExp("[\\s]"),"_"); KNSaveHelper helper(fName,parent); - QFile *file = helper.getFile(i18n("Save Article")); + TQFile *file = helper.getFile(i18n("Save Article")); if (file) { - QCString tmp=a->encodedContent(false); + TQCString tmp=a->encodedContent(false); if ( file->writeBlock(tmp.data(), tmp.size()) == -1 ) KNHelper::displayExternalFileError( parent ); } } -QString KNArticleManager::saveContentToTemp(KMime::Content *c) +TQString KNArticleManager::saveContentToTemp(KMime::Content *c) { - QString path; + TQString path; KTempFile* tmpFile; KMime::Headers::Base *pathHdr=c->getHeaderByType("X-KNode-Tempfile"); // check for existing temp file @@ -123,7 +123,7 @@ QString KNArticleManager::saveContentToTemp(KMime::Content *c) bool found=false; // lets see if the tempfile-path is still valid... - for ( QValueList<KTempFile*>::Iterator it = mTempFiles.begin(); it != mTempFiles.end(); ++it ) { + for ( TQValueList<KTempFile*>::Iterator it = mTempFiles.begin(); it != mTempFiles.end(); ++it ) { if ( (*it)->name() == path ) { found = true; break; @@ -140,12 +140,12 @@ QString KNArticleManager::saveContentToTemp(KMime::Content *c) if (tmpFile->status()!=0) { KNHelper::displayTempFileError(); delete tmpFile; - return QString::null; + return TQString::null; } mTempFiles.append(tmpFile); - QFile *f=tmpFile->file(); - QByteArray data=c->decodedContent(); + TQFile *f=tmpFile->file(); + TQByteArray data=c->decodedContent(); f->writeBlock(data.data(), data.size()); tmpFile->close(); path=tmpFile->name(); @@ -158,7 +158,7 @@ QString KNArticleManager::saveContentToTemp(KMime::Content *c) void KNArticleManager::openContent(KMime::Content *c) { - QString path=saveContentToTemp(c); + TQString path=saveContentToTemp(c); if(path.isNull()) return; KService::Ptr offer = KServiceTypeProfile::preferredService(c->contentType()->mimeType(), "Application"); @@ -324,7 +324,7 @@ void KNArticleManager::showHdrs(bool clear) knGlobals.top->articleViewer()->setArticle( 0 ); } - knGlobals.setStatusMsg(QString::null); + knGlobals.setStatusMsg(TQString::null); updateStatusString(); knGlobals.top->setCursorBusy(false); } @@ -390,10 +390,10 @@ void KNArticleManager::search() KWin::activateWindow(s_earchDlg->winId()); } else { s_earchDlg=new KNSearchDialog(KNSearchDialog::STgroupSearch, 0); - connect(s_earchDlg, SIGNAL(doSearch(KNArticleFilter*)), this, - SLOT(slotFilterChanged(KNArticleFilter*))); - connect(s_earchDlg, SIGNAL(dialogDone()), this, - SLOT(slotSearchDialogDone())); + connect(s_earchDlg, TQT_SIGNAL(doSearch(KNArticleFilter*)), this, + TQT_SLOT(slotFilterChanged(KNArticleFilter*))); + connect(s_earchDlg, TQT_SIGNAL(dialogDone()), this, + TQT_SLOT(slotSearchDialogDone())); s_earchDlg->show(); } } @@ -569,7 +569,7 @@ void KNArticleManager::moveIntoFolder(KNLocalArticle::List &l, KNFolder *f) bool KNArticleManager::deleteArticles(KNLocalArticle::List &l, bool ask) { if(ask) { - QStringList lst; + TQStringList lst; for ( KNLocalArticle::List::Iterator it = l.begin(); it != l.end(); ++it ) { if ( (*it)->isLocked() ) continue; @@ -660,13 +660,13 @@ void KNArticleManager::setRead(KNRemoteArticle::List &l, bool r, bool handleXPos if( r && knGlobals.configManager()->readNewsGeneral()->markCrossposts() && handleXPosts && (*it)->newsgroups()->isCrossposted() ) { - QStringList groups = (*it)->newsgroups()->getGroups(); + TQStringList groups = (*it)->newsgroups()->getGroups(); KNGroup *targetGroup=0; KNRemoteArticle *xp=0; KNRemoteArticle::List al; - QCString mid = (*it)->messageID()->as7BitString( false ); + TQCString mid = (*it)->messageID()->as7BitString( false ); - for ( QStringList::Iterator it2 = groups.begin(); it2 != groups.end(); ++it2 ) { + for ( TQStringList::Iterator it2 = groups.begin(); it2 != groups.end(); ++it2 ) { targetGroup = knGlobals.groupManager()->group(*it2, g->account()); if (targetGroup) { if (targetGroup->isLoaded() && (xp=targetGroup->byMessageId(mid)) ) { @@ -987,7 +987,7 @@ void KNArticleManager::updateStatusString() else displCnt=g_roup->count(); - QString name = g_roup->name(); + TQString name = g_roup->name(); if (g_roup->status()==KNGroup::moderated) name += i18n(" (moderated)"); @@ -997,7 +997,7 @@ void KNArticleManager::updateStatusString() if(f_ilter) knGlobals.setStatusMsg(i18n(" Filter: %1").arg(f_ilter->translatedName()), SB_FILTER); else - knGlobals.setStatusMsg(QString::null, SB_FILTER); + knGlobals.setStatusMsg(TQString::null, SB_FILTER); } else if(f_older) { if(f_ilter) @@ -1006,10 +1006,10 @@ void KNArticleManager::updateStatusString() displCnt=f_older->count(); knGlobals.setStatusMsg(i18n(" %1: %2 displayed") .arg(f_older->name()).arg(displCnt), SB_GROUP); - knGlobals.setStatusMsg(QString::null, SB_FILTER); + knGlobals.setStatusMsg(TQString::null, SB_FILTER); } else { - knGlobals.setStatusMsg(QString::null, SB_GROUP); - knGlobals.setStatusMsg(QString::null, SB_FILTER); + knGlobals.setStatusMsg(TQString::null, SB_GROUP); + knGlobals.setStatusMsg(TQString::null, SB_FILTER); } } @@ -1028,7 +1028,7 @@ void KNArticleManager::slotSearchDialogDone() } -void KNArticleManager::slotItemExpanded(QListViewItem *p) +void KNArticleManager::slotItemExpanded(TQListViewItem *p) { if (d_isableExpander) // we don't want to call this method recursively return; @@ -1081,8 +1081,8 @@ void KNArticleManager::slotItemExpanded(QListViewItem *p) void KNArticleManager::setView(KNHeaderView* v) { v_iew = v; if(v) { - connect(v, SIGNAL(expanded(QListViewItem*)), this, - SLOT(slotItemExpanded(QListViewItem*))); + connect(v, TQT_SIGNAL(expanded(TQListViewItem*)), this, + TQT_SLOT(slotItemExpanded(TQListViewItem*))); } } |