diff options
Diffstat (limited to 'src/modules/dcc/send.cpp')
| -rw-r--r-- | src/modules/dcc/send.cpp | 16 | 
1 files changed, 8 insertions, 8 deletions
| diff --git a/src/modules/dcc/send.cpp b/src/modules/dcc/send.cpp index 7458611..a7485ca 100644 --- a/src/modules/dcc/send.cpp +++ b/src/modules/dcc/send.cpp @@ -158,7 +158,7 @@ void KviDccRecvThread::postMessageEvent(const char * m)  {  	KviThreadDataEvent<KviStr> * e = new KviThreadDataEvent<KviStr>(KVI_DCC_THREAD_EVENT_MESSAGE);  	e->setData(new KviStr(m)); -	postEvent(tqparent(),e); +	postEvent(parent(),e);  }  // FIXME: This stuff should be somewhat related to the 1448 bytes TCP basic packet size @@ -292,7 +292,7 @@ void KviDccRecvThread::run()  								{  									// Received the whole file...die  									KviThreadEvent * e = new KviThreadEvent(KVI_DCC_THREAD_EVENT_SUCCESS); -									postEvent(tqparent(),e); +									postEvent(parent(),e);  									break;  								}  							} @@ -327,7 +327,7 @@ void KviDccRecvThread::run()  							{  								// success if we got the whole file or if we don't know the file size (we trust the peer)  								KviThreadEvent * e = new KviThreadEvent(KVI_DCC_THREAD_EVENT_SUCCESS); -								postEvent(tqparent(),e); +								postEvent(parent(),e);  								break;  							}  						} @@ -368,7 +368,7 @@ void KviDccRecvThread::run()  							// success if we got the whole file or if we don't know the file size (we trust the peer)  							postMessageEvent(__tr2qs_ctx("Data transfer was terminated 30 seconds ago, closing the connection","dcc"));  							KviThreadEvent * e = new KviThreadEvent(KVI_DCC_THREAD_EVENT_SUCCESS); -							postEvent(tqparent(),e); +							postEvent(parent(),e);  							break;  						}  					} @@ -572,7 +572,7 @@ void KviDccSendThread::run()  					if(iLastAck >= pFile->size())  					{  						KviThreadEvent * e = new KviThreadEvent(KVI_DCC_THREAD_EVENT_SUCCESS); -						postEvent(tqparent(),e); +						postEvent(parent(),e);  						break;  					}  				} else { @@ -589,7 +589,7 @@ void KviDccSendThread::run()  								// done...success  								updateStats();  								KviThreadEvent * e = new KviThreadEvent(KVI_DCC_THREAD_EVENT_SUCCESS); -								postEvent(tqparent(),e); +								postEvent(parent(),e);  								break;  							} else {  								if(readLen < 0) @@ -598,7 +598,7 @@ void KviDccSendThread::run()  								} else {  									KviThreadDataEvent<KviStr> * e = new KviThreadDataEvent<KviStr>(KVI_DCC_THREAD_EVENT_MESSAGE);  									e->setData(new KviStr(__tr2qs_ctx("WARNING: Received data in a DCC TSEND, there should be no acknowledges","dcc"))); -									postEvent(tqparent(),e); +									postEvent(parent(),e);  								}  							}  						} @@ -672,7 +672,7 @@ void KviDccSendThread::run()  						// not in a tdcc: we can close the file...  						updateStats();  						KviThreadEvent * e = new KviThreadEvent(KVI_DCC_THREAD_EVENT_SUCCESS); -						postEvent(tqparent(),e); +						postEvent(parent(),e);  						break;  					} else {  						// upload finished but we're waiting for the last ack | 
