summaryrefslogtreecommitdiffstats
path: root/src/modules/http
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-12-18 18:14:01 -0600
committerTimothy Pearson <[email protected]>2011-12-18 18:14:01 -0600
commit32a249baaef1b910bffd79734c78cac3671f00f2 (patch)
tree07233b57d529ba723ec8d157152dada5b9cf8380 /src/modules/http
parentc6611272c2bc4a42580848946c8c5d81bb0409c7 (diff)
downloadkvirc-32a249baaef1b910bffd79734c78cac3671f00f2.tar.gz
kvirc-32a249baaef1b910bffd79734c78cac3671f00f2.zip
Rename old tq methods that no longer need a unique name
Diffstat (limited to 'src/modules/http')
-rw-r--r--src/modules/http/httpfiletransfer.cpp16
-rw-r--r--src/modules/http/httpfiletransfer.h4
2 files changed, 10 insertions, 10 deletions
diff --git a/src/modules/http/httpfiletransfer.cpp b/src/modules/http/httpfiletransfer.cpp
index 789b7a1b..cfe90879 100644
--- a/src/modules/http/httpfiletransfer.cpp
+++ b/src/modules/http/httpfiletransfer.cpp
@@ -67,7 +67,7 @@ KviHttpFileTransfer::KviHttpFileTransfer()
connect(m_pHttpRequest,TQT_SIGNAL(receivedResponse(const TQString &)),this,TQT_SLOT(receivedResponse(const TQString &)));
connect(m_pHttpRequest,TQT_SIGNAL(connectionEstabilished()),this,TQT_SLOT(connectionEstabilished()));
- m_eGeneraltqStatus = Initializing;
+ m_eGeneralStatus = Initializing;
m_szStatusString = __tr2qs_ctx("Initializing","http");
}
@@ -110,20 +110,20 @@ void KviHttpFileTransfer::fillContextPopup(KviTalPopupMenu * m,int column)
bool KviHttpFileTransfer::active()
{
- return ((m_eGeneraltqStatus == Connecting) || (m_eGeneraltqStatus == Downloading));
+ return ((m_eGeneralStatus == Connecting) || (m_eGeneralStatus == Downloading));
}
void KviHttpFileTransfer::displayPaint(TQPainter * p,int column,int width,int height)
{
TQString txt;
- bool bIsTerminated = ((m_eGeneraltqStatus == Success) || (m_eGeneraltqStatus == Failure));
+ bool bIsTerminated = ((m_eGeneralStatus == Success) || (m_eGeneralStatus == Failure));
switch(column)
{
case COLUMN_TRANSFERTYPE:
{
int offset = 0;
- switch(m_eGeneraltqStatus)
+ switch(m_eGeneralStatus)
{
case Initializing: offset = 0; break;
case Connecting: offset = 0; break;
@@ -406,7 +406,7 @@ void KviHttpFileTransfer::receivedResponse(const TQString &response)
m_lHeaders.append(response);
m_szStatusString = __tr2qs_ctx("Transferring data (%1)","http").tqarg(response);
m_tTransferStartTime = kvi_unixTime();
- m_eGeneraltqStatus = Downloading;
+ m_eGeneralStatus = Downloading;
displayUpdate();
}
@@ -439,7 +439,7 @@ void KviHttpFileTransfer::transferTerminated(bool bSuccess)
if(bSuccess)
{
m_szStatusString = __tr2qs_ctx("Transfer completed","http");
- m_eGeneraltqStatus = Success;
+ m_eGeneralStatus = Success;
displayUpdate();
if(out && (!m_bNoOutput))out->output(KVI_OUT_GENERICSUCCESS,__tr2qs_ctx("[HTTP %d]: Transfer completed","http"),id());
g_pApp->fileDownloadTerminated(true,m_pHttpRequest->url().url().ptr(),m_pHttpRequest->fileName(),TQString(),TQString(),!m_bNotifyCompletion);
@@ -447,7 +447,7 @@ void KviHttpFileTransfer::transferTerminated(bool bSuccess)
m_szStatusString = __tr2qs_ctx("Transfer failed","http");
m_szStatusString += ": ";
m_szStatusString += m_pHttpRequest->lastError();
- m_eGeneraltqStatus = Failure;
+ m_eGeneralStatus = Failure;
displayUpdate();
if(out && (!m_bNoOutput))out->output(KVI_OUT_GENERICERROR,__tr2qs_ctx("[HTTP %d]: Transfer failed: %Q","http"),id(),&(m_pHttpRequest->lastError()));
g_pApp->fileDownloadTerminated(false,m_pHttpRequest->url().url().ptr(),m_pHttpRequest->fileName(),TQString(),m_pHttpRequest->lastError(),!m_bNotifyCompletion);
@@ -482,7 +482,7 @@ void KviHttpFileTransfer::headersReceived(KviPointerHashTable<const char *,KviSt
bool KviHttpFileTransfer::startDownload()
{
- m_eGeneraltqStatus = Connecting;
+ m_eGeneralStatus = Connecting;
return m_pHttpRequest->start();
}
diff --git a/src/modules/http/httpfiletransfer.h b/src/modules/http/httpfiletransfer.h
index 792205b1..cfba8910 100644
--- a/src/modules/http/httpfiletransfer.h
+++ b/src/modules/http/httpfiletransfer.h
@@ -38,7 +38,7 @@ class KviTalPopupMenu;
class KviHttpFileTransfer : public KviFileTransfer
{
- enum GeneraltqStatus { Initializing, Connecting, Downloading, Success, Failure };
+ enum GeneralStatus { Initializing, Connecting, Downloading, Success, Failure };
Q_OBJECT
TQ_OBJECT
public:
@@ -46,7 +46,7 @@ public:
~KviHttpFileTransfer();
private:
KviHttpRequest * m_pHttpRequest;
- GeneraltqStatus m_eGeneraltqStatus;
+ GeneralStatus m_eGeneralStatus;
TQString m_szStatusString;
TQStringList m_lHeaders;