diff options
Diffstat (limited to 'knode/kngroupmanager.cpp')
-rw-r--r-- | knode/kngroupmanager.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/knode/kngroupmanager.cpp b/knode/kngroupmanager.cpp index 2bece3571..48cfc117c 100644 --- a/knode/kngroupmanager.cpp +++ b/knode/kngroupmanager.cpp @@ -51,7 +51,7 @@ KNGroupInfo::KNGroupInfo() } -KNGroupInfo::KNGroupInfo(const TQString &n_ame, const TQString &d_escription, bool n_ewGroup, bool s_ubscribed, KNGroup::Status s_tatus) +KNGroupInfo::KNGroupInfo(const TQString &n_ame, const TQString &d_escription, bool n_ewGroup, bool s_ubscribed, KNGroup::tqStatus s_tatus) : name(n_ame), description(d_escription), newGroup(n_ewGroup), subscribed(s_ubscribed), status(s_tatus) { @@ -101,7 +101,7 @@ bool KNGroupListData::readIn(KNProtocolClient *client) int sepPos1,sepPos2; TQString name,description; bool sub; - KNGroup::Status status=KNGroup::unknown; + KNGroup::tqStatus status=KNGroup::unknown; TQTime timer; uint size=f.size()+2; @@ -111,16 +111,16 @@ bool KNGroupListData::readIn(KNProtocolClient *client) if(f.open(IO_ReadOnly)) { while(!f.atEnd()) { line = f.readLine(); - sepPos1 = line.find(' '); + sepPos1 = line.tqfind(' '); if (sepPos1==-1) { // no description name = TQString::fromUtf8(line); - description = TQString::null; + description = TQString(); status = KNGroup::unknown; } else { name = TQString::fromUtf8(line.left(sepPos1)); - sepPos2 = line.find(' ',sepPos1+1); + sepPos2 = line.tqfind(' ',sepPos1+1); if (sepPos2==-1) { // no status description = TQString::fromUtf8(line.right(line.length()-sepPos1-1)); status = KNGroup::unknown; @@ -201,7 +201,7 @@ void KNGroupListData::merge(TQSortedList<KNGroupInfo>* newGroups) bool subscribed; for (KNGroupInfo *i=newGroups->first(); i; i=newGroups->next()) { - if (groups->find(i)>=0) { + if (groups->tqfind(i)>=0) { subscribed = groups->current()->subscribed; groups->remove(); // avoid duplicates } else @@ -224,8 +224,8 @@ TQSortedList<KNGroupInfo>* KNGroupListData::extractList() //=============================================================================== -KNGroupManager::KNGroupManager(TQObject * parent, const char * name) - : TQObject(parent,name) +KNGroupManager::KNGroupManager(TQObject * tqparent, const char * name) + : TQObject(tqparent,name) { c_urrentGroup=0; a_rticleMgr = knGlobals.articleManager(); @@ -393,9 +393,9 @@ void KNGroupManager::expireAll(KNNntpAccount *a) } -void KNGroupManager::showGroupDialog(KNNntpAccount *a, TQWidget *parent) +void KNGroupManager::showGroupDialog(KNNntpAccount *a, TQWidget *tqparent) { - KNGroupDialog* gDialog=new KNGroupDialog((parent!=0)? parent:knGlobals.topWidget, a); + KNGroupDialog* gDialog=new KNGroupDialog((tqparent!=0)? tqparent:knGlobals.topWidget, a); connect(gDialog, TQT_SIGNAL(loadList(KNNntpAccount*)), this, TQT_SLOT(slotLoadGroupList(KNNntpAccount*))); connect(gDialog, TQT_SIGNAL(fetchList(KNNntpAccount*)), this, TQT_SLOT(slotFetchGroupList(KNNntpAccount*))); @@ -408,8 +408,8 @@ void KNGroupManager::showGroupDialog(KNNntpAccount *a, TQWidget *parent) TQStringList lst; gDialog->toUnsubscribe(&lst); if (lst.count()>0) { - if (KMessageBox::Yes == KMessageBox::questionYesNoList((parent!=0)? parent:knGlobals.topWidget,i18n("Do you really want to unsubscribe\nfrom these groups?"), - lst, TQString::null, i18n("Unsubscribe"), KStdGuiItem::cancel())) { + if (KMessageBox::Yes == KMessageBox::questionYesNoList((tqparent!=0)? tqparent:knGlobals.topWidget,i18n("Do you really want to unsubscribe\nfrom these groups?"), + lst, TQString(), i18n("Unsubscribe"), KStdGuiItem::cancel())) { for ( TQStringList::Iterator it = lst.begin(); it != lst.end(); ++it ) { if((g=group(*it, a))) unsubscribeGroup(g); @@ -435,7 +435,7 @@ void KNGroupManager::subscribeGroup(const KNGroupInfo *gi, KNNntpAccount *a) grp=new KNGroup(a); grp->setGroupname(gi->name); grp->setDescription(gi->description); - grp->seStatus(gi->status); + grp->setqStatus(gi->status); grp->saveInfo(); mGroupList.append( grp ); emit groupAdded(grp); @@ -466,9 +466,9 @@ bool KNGroupManager::unsubscribeGroup(KNGroup *g) a_rticleMgr->updateStatusString(); } - const QFileInfoList *list = dir.entryInfoList(); // get list of matching files and delete all + const TQFileInfoList *list = dir.entryInfoList(); // get list of matching files and delete all if (list) { - QFileInfoListIterator it( *list ); + TQFileInfoListIterator it( *list ); while (it.current()) { if (it.current()->fileName() == g->groupname()+".dynamic" || it.current()->fileName() == g->groupname()+".static" || @@ -596,7 +596,7 @@ void KNGroupManager::processJob(KNJobData *j) for ( KNGroupInfo* inf = d->groups->first(); inf; inf = d->groups->next() ) if ( inf->name == (*it)->groupname() ) { (*it)->setDescription( inf->description ); - (*it)->seStatus( inf->status ); + (*it)->setqStatus( inf->status ); break; } } @@ -652,7 +652,7 @@ void KNGroupManager::slotLoadGroupList(KNNntpAccount *a) d->path = a->path(); if(!TQFileInfo(d->path+"groups").exists()) { - if (KMessageBox::Yes==KMessageBox::questionYesNo(knGlobals.topWidget,i18n("You do not have any groups for this account;\ndo you want to fetch a current list?"), TQString::null, i18n("Fetch List"), i18n("Do Not Fetch"))) { + if (KMessageBox::Yes==KMessageBox::questionYesNo(knGlobals.topWidget,i18n("You do not have any groups for this account;\ndo you want to fetch a current list?"), TQString(), i18n("Fetch List"), i18n("Do Not Fetch"))) { delete d; slotFetchGroupList(a); return; |