|
|
@ -81,7 +81,7 @@ bool KNGroupInfo::operator< (const KNGroupInfo &gi2)
|
|
|
|
KNGroupListData::KNGroupListData()
|
|
|
|
KNGroupListData::KNGroupListData()
|
|
|
|
: codecForDescriptions(0)
|
|
|
|
: codecForDescriptions(0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
groups = new TQSortedList<KNGroupInfo>;
|
|
|
|
groups = new TQPtrList<KNGroupInfo>;
|
|
|
|
groups->setAutoDelete(true);
|
|
|
|
groups->setAutoDelete(true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -196,7 +196,7 @@ bool KNGroupListData::writeOut()
|
|
|
|
|
|
|
|
|
|
|
|
// merge in new groups, we want to preserve the "subscribed"-flag
|
|
|
|
// merge in new groups, we want to preserve the "subscribed"-flag
|
|
|
|
// of the loaded groups and the "new"-flag of the new groups.
|
|
|
|
// of the loaded groups and the "new"-flag of the new groups.
|
|
|
|
void KNGroupListData::merge(TQSortedList<KNGroupInfo>* newGroups)
|
|
|
|
void KNGroupListData::merge(TQPtrList<KNGroupInfo>* newGroups)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
bool subscribed;
|
|
|
|
bool subscribed;
|
|
|
|
|
|
|
|
|
|
|
@ -213,9 +213,9 @@ void KNGroupListData::merge(TQSortedList<KNGroupInfo>* newGroups)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TQSortedList<KNGroupInfo>* KNGroupListData::extractList()
|
|
|
|
TQPtrList<KNGroupInfo>* KNGroupListData::extractList()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
TQSortedList<KNGroupInfo>* temp = groups;
|
|
|
|
TQPtrList<KNGroupInfo>* temp = groups;
|
|
|
|
groups = 0;
|
|
|
|
groups = 0;
|
|
|
|
return temp;
|
|
|
|
return temp;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -417,7 +417,7 @@ void KNGroupManager::showGroupDialog(KNNntpAccount *a, TQWidget *parent)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
TQSortedList<KNGroupInfo> lst2;
|
|
|
|
TQPtrList<KNGroupInfo> lst2;
|
|
|
|
gDialog->toSubscribe(&lst2);
|
|
|
|
gDialog->toSubscribe(&lst2);
|
|
|
|
for(KNGroupInfo *var=lst2.first(); var; var=lst2.next()) {
|
|
|
|
for(KNGroupInfo *var=lst2.first(); var; var=lst2.next()) {
|
|
|
|
subscribeGroup(var, a);
|
|
|
|
subscribeGroup(var, a);
|
|
|
|