From 72aaee9802d447ee21340b011856b9b355a58f1a Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 10 Aug 2011 06:08:18 +0000 Subject: 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 --- src/modules/http/libkvihttp.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src/modules/http') 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()) -- cgit v1.2.1