summaryrefslogtreecommitdiffstats
path: root/knode/knnntpclient.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
commit67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch)
tree5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /knode/knnntpclient.cpp
parent2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff)
downloadtdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.tar.gz
tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.zip
Initial conversion of kdepim to TQt
This will probably require some tweaking before it will build under Qt4, however Qt3 builds are OK. Any alterations this commit makes to kdepim behaviour under Qt3 are unintentional and should be fixed. git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'knode/knnntpclient.cpp')
-rw-r--r--knode/knnntpclient.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/knode/knnntpclient.cpp b/knode/knnntpclient.cpp
index dd4f28fe..a6b1e566 100644
--- a/knode/knnntpclient.cpp
+++ b/knode/knnntpclient.cpp
@@ -93,7 +93,7 @@ void KNNntpClient::doFetchGroups()
char *s, *line;
TQString name;
- KNGroup::Status status;
+ KNGroup::tqStatus status;
bool subscribed;
while (getNextLine()) {
@@ -132,7 +132,7 @@ void KNNntpClient::doFetchGroups()
default : status = KNGroup::unknown;
}
- target->groups->append(new KNGroupInfo(name,TQString::null,false,subscribed,status));
+ target->groups->append(new KNGroupInfo(name,TQString(),false,subscribed,status));
}
doneLines++;
}
@@ -140,7 +140,7 @@ void KNNntpClient::doFetchGroups()
if (!job->success() || job->canceled())
return; // stopped...
- QSortedVector<KNGroupInfo> tempVector;
+ TQSortedVector<KNGroupInfo> tempVector;
target->groups->toVector(&tempVector);
tempVector.sort();
@@ -228,7 +228,7 @@ void KNNntpClient::doCheckNewGroups()
char *s, *line;
TQString name;
- KNGroup::Status status;
+ KNGroup::tqStatus status;
TQSortedList<KNGroupInfo> tmpList;
tmpList.setAutoDelete(true);
@@ -261,7 +261,7 @@ void KNNntpClient::doCheckNewGroups()
default : status = KNGroup::unknown;
}
- tmpList.append(new KNGroupInfo(name,TQString::null,true,false,status));
+ tmpList.append(new KNGroupInfo(name,TQString(),true,false,status));
}
doneLines++;
}
@@ -525,7 +525,7 @@ void KNNntpClient::doPostArticle()
TQCString s = getCurrentLine();
int start = s.findRev(TQRegExp("<[^\\s]*@[^\\s]*>"));
if (start != -1) { // post response includes a recommended id
- int end = s.find('>',start);
+ int end = s.tqfind('>',start);
art->messageID()->from7BitString(s.mid(start,end-start+1));
art->assemble();
#ifndef NDEBUG
@@ -569,7 +569,7 @@ void KNNntpClient::doFetchSource()
bool KNNntpClient::openConnection()
{
- currentGroup = TQString::null;
+ currentGroup = TQString();
TQString oldPrefix = errorPrefix;
errorPrefix=i18n("Unable to connect.\nThe following error occurred:\n");