summaryrefslogtreecommitdiffstats
path: root/ksirc/ioDCC.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-18 18:33:51 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-18 18:33:51 -0600
commit089118c18533dfa3e6ce5065dbebdd4db94051f1 (patch)
treece014fb2326a80fcfafa2362b7ff88486aa17c96 /ksirc/ioDCC.cpp
parent83677e35509b4dafac63b76995652bdf3b49f209 (diff)
downloadtdenetwork-089118c18533dfa3e6ce5065dbebdd4db94051f1.tar.gz
tdenetwork-089118c18533dfa3e6ce5065dbebdd4db94051f1.zip
Rename old tq methods that no longer need a unique name
Diffstat (limited to 'ksirc/ioDCC.cpp')
-rw-r--r--ksirc/ioDCC.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/ksirc/ioDCC.cpp b/ksirc/ioDCC.cpp
index 7f601ace..52c5dc9a 100644
--- a/ksirc/ioDCC.cpp
+++ b/ksirc/ioDCC.cpp
@@ -204,7 +204,7 @@ void KSircIODCC::sirc_receive(TQCString str, bool )
TQString who = rx.cap(1);
TQString filename = rx.cap(2);
TQString error = rx.cap(3);
- enum dccItem::dcctqStatus status = dccItem::dccDone;
+ enum dccItem::dccStatus status = dccItem::dccDone;
if(error == "CLOSE"){
status = dccItem::dccCancel;
@@ -218,7 +218,7 @@ void KSircIODCC::sirc_receive(TQCString str, bool )
kdDebug(5008) << "SendPercent: " << DCCSendItems[key]->getPercent() << endl;
if((status == dccItem::dccDone) && (DCCSendItems[key]->getPercent() < 100))
status = dccItem::dccError;
- DCCSendItems[key]->changetqStatus(status);
+ DCCSendItems[key]->changeStatus(status);
}
}
}
@@ -229,7 +229,7 @@ void KSircIODCC::sirc_receive(TQCString str, bool )
TQString who = rx.cap(1);
TQString filename = rx.cap(2);
TQString error = rx.cap(3);
- enum dccItem::dcctqStatus status = dccItem::dccDone;
+ enum dccItem::dccStatus status = dccItem::dccDone;
if(error != "OK"){
status = dccItem::dccError;
@@ -240,7 +240,7 @@ void KSircIODCC::sirc_receive(TQCString str, bool )
kdDebug(5008) << "GetPercent: " << DCCGetItems[key]->getPercent() << endl;
if((status == dccItem::dccDone) && (DCCGetItems[key]->getPercent() < 100))
status = dccItem::dccError;
- DCCGetItems[key]->changetqStatus(status);
+ DCCGetItems[key]->changeStatus(status);
}
}
else {
@@ -258,7 +258,7 @@ void KSircIODCC::sirc_receive(TQCString str, bool )
kdDebug(5008) << "Got DCC GET resumed message..." << it->file() << endl;
if(it->status() == dccItem::dccWaitOnResume)
dccConnectClicked(it);
- it->changetqStatus(dccItem::dccResumed);
+ it->changeStatus(dccItem::dccResumed);
}
}
}
@@ -269,7 +269,7 @@ void KSircIODCC::sirc_receive(TQCString str, bool )
TQString filename = rx.cap(2);
TQString key = TQString("%1/%2").tqarg(filename).tqarg(who);
if(DCCSendItems[key]){
- DCCSendItems[key]->changetqStatus(dccItem::dccResumed);
+ DCCSendItems[key]->changeStatus(dccItem::dccResumed);
}
}
}
@@ -280,7 +280,7 @@ void KSircIODCC::sirc_receive(TQCString str, bool )
TQString filename = rx.cap(2);
TQString key = TQString("%1/%2").tqarg(filename).tqarg(who);
if(DCCGetItems[key]){
- DCCGetItems[key]->changetqStatus(dccItem::dccRecving);
+ DCCGetItems[key]->changeStatus(dccItem::dccRecving);
}
}
}
@@ -293,7 +293,7 @@ void KSircIODCC::sirc_receive(TQCString str, bool )
TQString key = TQString("%1/%2").tqarg(filename).tqarg(who);
if(DCCSendItems[key]){
DCCSendItems[key]->setWhoPostfix("(" + ip + ")");
- DCCSendItems[key]->changetqStatus(dccItem::dccSending);
+ DCCSendItems[key]->changeStatus(dccItem::dccSending);
}
}
}
@@ -302,7 +302,7 @@ void KSircIODCC::sirc_receive(TQCString str, bool )
if(rx.search(str)){
TQString who = rx.cap(1);
if(DCCChatItems[who]){
- DCCChatItems[who]->changetqStatus(dccItem::dccOpen);
+ DCCChatItems[who]->changeStatus(dccItem::dccOpen);
proc->new_toplevel(KSircChannel(proc->serverName(), TQString("=") + who.lower()));
}
}
@@ -314,7 +314,7 @@ void KSircIODCC::sirc_receive(TQCString str, bool )
TQString ip = rx.cap(2);
if(DCCChatItems[who]){
DCCChatItems[who]->setWhoPostfix("(" + ip + ")");
- DCCChatItems[who]->changetqStatus(dccItem::dccOpen);
+ DCCChatItems[who]->changeStatus(dccItem::dccOpen);
proc->new_toplevel(KSircChannel(proc->serverName(), TQString("=") + who.lower()));
}
}
@@ -327,7 +327,7 @@ void KSircIODCC::sirc_receive(TQCString str, bool )
TQString error = rx.cap(3);
TQString key = TQString("%1/%2").tqarg(filename).tqarg(who);
if(DCCGetItems[key]){
- DCCGetItems[key]->changetqStatus(dccItem::dccError);
+ DCCGetItems[key]->changeStatus(dccItem::dccError);
}
KPassivePopup::message(i18n("DCC Get with %1 for %2 failed because of %3").tqarg(who).tqarg(filename).tqarg(error), mgr->mgr());
}
@@ -338,7 +338,7 @@ void KSircIODCC::sirc_receive(TQCString str, bool )
TQString who = rx.cap(1);
TQString error = rx.cap(2);
if(DCCChatItems[who]){
- DCCChatItems[who]->changetqStatus(dccItem::dccError);
+ DCCChatItems[who]->changeStatus(dccItem::dccError);
}
KPassivePopup::message(i18n("DCC Chat with %1 failed because of %2").tqarg(who).tqarg(error), mgr->mgr());
}
@@ -362,7 +362,7 @@ void KSircIODCC::sirc_receive(TQCString str, bool )
TQString filename = rx.cap(2);
TQString key = TQString("%1/%2").tqarg(filename).tqarg(who);
if(DCCGetItems[key]){
- DCCGetItems[key]->changetqStatus(dccItem::dccCancel);
+ DCCGetItems[key]->changeStatus(dccItem::dccCancel);
}
}
}
@@ -373,7 +373,7 @@ void KSircIODCC::sirc_receive(TQCString str, bool )
// TQString filename = rx.cap(2);
// TQString key = TQString("%1/%2").tqarg(filename).tqarg(who);
// if(DCCSendItems[key]){
-// DCCSendItems[key]->changetqStatus(dccItem::dccCancel);
+// DCCSendItems[key]->changeStatus(dccItem::dccCancel);
// }
// }
// }
@@ -382,7 +382,7 @@ void KSircIODCC::sirc_receive(TQCString str, bool )
if(rx.search(str)){
TQString who = rx.cap(1);
if(DCCChatItems[who]){
- DCCChatItems[who]->changetqStatus(dccItem::dccDone);
+ DCCChatItems[who]->changeStatus(dccItem::dccDone);
}
}
}
@@ -470,11 +470,11 @@ void KSircIODCC::control_message(int, TQString)
void KSircIODCC::cancelTransfer(TQString filename)
{
//if(DlgList[filename]){
- //emit outputLine(DCCtqStatus[filename]->cancelMessage.ascii());
+ //emit outputLine(DCCStatus[filename]->cancelMessage.ascii());
//delete DlgList[filename];
//DlgList.remove(filename);
- //delete DCCtqStatus[filename];
- //DCCtqStatus.remove(filename);
+ //delete DCCStatus[filename];
+ //DCCStatus.remove(filename);
//}
}
@@ -561,7 +561,7 @@ void KSircIODCC::dccResumeClicked(dccItem *it)
kdDebug(5008) << "Got resume click on " << it->who() << " " << it->type() << endl;
switch(it->type()){
case dccItem::dccGet:
- it->changetqStatus(dccItem::dccWaitOnResume);
+ it->changeStatus(dccItem::dccWaitOnResume);
str = "/resume " + it->who() + " " + it->file() + "\n";
emit outputLine(str.ascii());
break;