diff options
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()) |