diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
commit | 72aaee9802d447ee21340b011856b9b355a58f1a (patch) | |
tree | f97a68e4f75e6c25c8492e03fdfe6983fb0aa199 /src/modules/http | |
parent | 5d03948cd3558c613fae1fad109635f860babcbb (diff) | |
download | kvirc-72aaee9802d447ee21340b011856b9b355a58f1a.tar.gz kvirc-72aaee9802d447ee21340b011856b9b355a58f1a.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kvirc@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/modules/http')
-rw-r--r-- | src/modules/http/libkvihttp.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/modules/http/libkvihttp.cpp b/src/modules/http/libkvihttp.cpp index 8b98b218..6e880840 100644 --- a/src/modules/http/libkvihttp.cpp +++ b/src/modules/http/libkvihttp.cpp @@ -50,13 +50,13 @@ static bool http_kvs_complete_get(KviKvsModuleCommandCall * c,TQString &szUrl,TQ if(szFileName.isEmpty()) { - if(c->switches()->tqfind('a',"auto-file-name")) + if(c->switches()->find('a',"auto-file-name")) { tmp = szUrl; - tmp.tqreplace('/',"_"); - tmp.tqreplace(':',"_"); - tmp.tqreplace('@',"_"); - tmp.tqreplace('?',"_"); + tmp.replace('/',"_"); + tmp.replace(':',"_"); + tmp.replace('@',"_"); + tmp.replace('?',"_"); // http____path_path2_path3_filename.ext g_pApp->getLocalKvircDirectory(szFileName,KviApp::Incoming,tmp); } else { @@ -68,7 +68,7 @@ static bool http_kvs_complete_get(KviKvsModuleCommandCall * c,TQString &szUrl,TQ KviHttpFileTransfer * hft = new KviHttpFileTransfer(); - bool bHead = c->switches()->tqfind('h',"head"); + bool bHead = c->switches()->find('h',"head"); if(c->switches()->getAsStringIfExisting('p',"post-data",tmp)) { @@ -114,25 +114,25 @@ static bool http_kvs_complete_get(KviKvsModuleCommandCall * c,TQString &szUrl,TQ if(c->switches()->getAsStringIfExisting('w',"winctrl",tmp)) { - if(!tmp.tqcontains('h'))hft->invokeTransferWindow(c->window(),tmp.tqcontains('m'),tmp.tqcontains('n')); + if(!tmp.contains('h'))hft->invokeTransferWindow(c->window(),tmp.contains('m'),tmp.contains('n')); } else { hft->invokeTransferWindow(c->window(),false,false); } - KviKvsVariant * v = c->switches()->tqfind('i',"identifier"); + KviKvsVariant * v = c->switches()->find('i',"identifier"); if(v) hft->setMagicIdentifier(*v); - if(c->switches()->tqfind('q',"quiet")) + if(c->switches()->find('q',"quiet")) hft->setNotifyCompletion(false); - if(c->switches()->tqfind('y',"no-output")) + if(c->switches()->find('y',"no-output")) hft->setNoOutput(true); if(!szCallback.isEmpty()) hft->setCompletionCallback(szCallback); - if(c->switches()->tqfind('c',"clear")) + if(c->switches()->find('c',"clear")) hft->setAutoClean(true); if(!hft->startDownload()) |