summaryrefslogtreecommitdiffstats
path: root/kget/transfer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kget/transfer.cpp')
-rw-r--r--kget/transfer.cpp66
1 files changed, 33 insertions, 33 deletions
diff --git a/kget/transfer.cpp b/kget/transfer.cpp
index 44e76fae..7569e52b 100644
--- a/kget/transfer.cpp
+++ b/kget/transfer.cpp
@@ -23,7 +23,7 @@
*
***************************************************************************/
-#include <qheader.h>
+#include <tqheader.h>
#include <kurl.h>
#include <kmessagebox.h>
@@ -54,7 +54,7 @@ extern Settings ksettings;
Transfer::Transfer(TransferList * _view, const KURL & _src, const KURL & _dest, const uint _id)
- : QObject( _view ),
+ : TQObject( _view ),
KListViewItem(_view),
dlgIndividual( 0 )
{
@@ -71,8 +71,8 @@ Transfer::Transfer(TransferList * _view, const KURL & _src, const KURL & _dest,
Transfer::Transfer(TransferList * _view, Transfer * after, const KURL & _src, const KURL & _dest, const uint _id)
- : QObject( _view ),
- KListViewItem(_view, (QListViewItem *) after),
+ : TQObject( _view ),
+ KListViewItem(_view, (TQListViewItem *) after),
src(_src), dest(_dest), view(_view),
dlgIndividual( 0 )
{
@@ -109,7 +109,7 @@ Transfer::init(const uint _id)
id = _id;
m_pSlave = new Slave(this, src, dest);
canResume = false;
- startTime = QDateTime::currentDateTime();
+ startTime = TQDateTime::currentDateTime();
speed = 0;
// retryCount = ksettings.reconnectRetries-1;
retryCount = 0;
@@ -118,25 +118,25 @@ Transfer::init(const uint _id)
status = ST_STOPPED;
- connect(this, SIGNAL(statusChanged(Transfer *, int)), kmain, SLOT(slotStatusChanged(Transfer *, int)));
- connect(this, SIGNAL(statusChanged(Transfer *, int)), this, SLOT(slotUpdateActions()));
+ connect(this, TQT_SIGNAL(statusChanged(Transfer *, int)), kmain, TQT_SLOT(slotStatusChanged(Transfer *, int)));
+ connect(this, TQT_SIGNAL(statusChanged(Transfer *, int)), this, TQT_SLOT(slotUpdateActions()));
- connect(this, SIGNAL(log(uint, const QString &, const QString &)), kmain->logwin(), SLOT(logTransfer(uint, const QString &, const QString &)));
+ connect(this, TQT_SIGNAL(log(uint, const TQString &, const TQString &)), kmain->logwin(), TQT_SLOT(logTransfer(uint, const TQString &, const TQString &)));
// setup actions
- m_paResume = new KAction(i18n("&Resume"), "tool_resume", 0, this, SLOT(slotResume()), this, "resume");
+ m_paResume = new KAction(i18n("&Resume"), "tool_resume", 0, this, TQT_SLOT(slotResume()), this, "resume");
- m_paPause = new KAction(i18n("&Pause"), "tool_pause", 0, this, SLOT(slotRequestPause()), this, "pause");
+ m_paPause = new KAction(i18n("&Pause"), "tool_pause", 0, this, TQT_SLOT(slotRequestPause()), this, "pause");
- m_paDelete = new KAction(i18n("&Delete"), "editdelete", 0, this, SLOT(slotRequestRemove()), this, "delete");
+ m_paDelete = new KAction(i18n("&Delete"), "editdelete", 0, this, TQT_SLOT(slotRequestRemove()), this, "delete");
- m_paRestart = new KAction(i18n("Re&start"), "tool_restart", 0, this, SLOT(slotRequestRestart()), this, "restart");
+ m_paRestart = new KAction(i18n("Re&start"), "tool_restart", 0, this, TQT_SLOT(slotRequestRestart()), this, "restart");
- m_paQueue = new KRadioAction(i18n("&Queue"), "tool_queue", 0, this, SLOT(slotQueue()), this, "queue");
+ m_paQueue = new KRadioAction(i18n("&Queue"), "tool_queue", 0, this, TQT_SLOT(slotQueue()), this, "queue");
- m_paTimer = new KRadioAction(i18n("&Timer"), "tool_timer", 0, this, SLOT(slotRequestSchedule()), this, "timer");
+ m_paTimer = new KRadioAction(i18n("&Timer"), "tool_timer", 0, this, TQT_SLOT(slotRequestSchedule()), this, "timer");
- m_paDelay = new KRadioAction(i18n("De&lay"), "tool_delay", 0, this, SLOT(slotRequestDelay()), this, "delay");
+ m_paDelay = new KRadioAction(i18n("De&lay"), "tool_delay", 0, this, TQT_SLOT(slotRequestDelay()), this, "delay");
m_paQueue->setExclusiveGroup("TransferMode");
m_paTimer->setExclusiveGroup("TransferMode");
@@ -144,7 +144,7 @@ Transfer::init(const uint _id)
// Actions
- // m_paDock = new KAction(i18n("&Dock"),"tool_dock", 0, this,SLOT(slotRequestDelay()), this, "dockIndividual");
+ // m_paDock = new KAction(i18n("&Dock"),"tool_dock", 0, this,TQT_SLOT(slotRequestDelay()), this, "dockIndividual");
// setup individual transfer dialog
@@ -307,7 +307,7 @@ bool Transfer::updateStatus(int counter)
{
//sDebug<< ">>>>Entering"<<endl;
- QPixmap *pix = 0L;
+ TQPixmap *pix = 0L;
bool isTransfer = false;
view->setUpdatesEnabled(false);
@@ -339,14 +339,14 @@ bool Transfer::updateStatus(int counter)
if(prevStatus!=status || prevMode != mode || status==ST_RUNNING || status==ST_TRYING)
{
- QRect rect = view->header()->sectionRect(view->lv_pixmap);
+ TQRect rect = view->header()->sectionRect(view->lv_pixmap);
int x = rect.x();
int y = view->itemRect(this).y();
int w = rect.width();
int h = rect.height();
- view->QScrollView::updateContents(x,y,w,h);
+ view->TQScrollView::updateContents(x,y,w,h);
prevStatus = status;
prevMode = mode;
@@ -358,8 +358,8 @@ bool Transfer::updateStatus(int counter)
void Transfer::UpdateRetry()
{
- QString retry;
- QString MaxRetry;
+ TQString retry;
+ TQString MaxRetry;
retry.setNum(retryCount);
MaxRetry.setNum(ksettings.reconnectRetries);
@@ -455,8 +455,8 @@ void Transfer::slotRequestRemove()
if (dlgIndividual && !ksettings.b_expertMode)
{
if (KMessageBox::warningContinueCancel(0, i18n("Are you sure you want to delete this transfer?"),
- QString::null, KStdGuiItem::del(),
- QString("delete_transfer"))
+ TQString::null, KStdGuiItem::del(),
+ TQString("delete_transfer"))
!= KMessageBox::Continue)
return;
}
@@ -510,8 +510,8 @@ void Transfer::slotRequestSchedule()
// if the time was already set somewhere in the future, keep it
// otherwise set it to the current time + 60 seconds
- if (startTime < QDateTime::currentDateTime()) {
- QDateTime dt = QDateTime::currentDateTime();
+ if (startTime < TQDateTime::currentDateTime()) {
+ TQDateTime dt = TQDateTime::currentDateTime();
startTime = dt.addSecs(60);
}
if (status == ST_RUNNING) {
@@ -623,7 +623,7 @@ void Transfer::slotSpeed(unsigned long bytes_per_second)
dlgIndividual->setSpeed(i18n("Stopped"));
} else {
- QString tmps = i18n("%1/s").arg(KIO::convertSize(speed));
+ TQString tmps = i18n("%1/s").arg(KIO::convertSize(speed));
setText(view->lv_speed, tmps);
setText(view->lv_remaining, remainingTime);
if(dlgIndividual)
@@ -699,7 +699,7 @@ void Transfer::slotProcessedSize(KIO::filesize_t bytes)
dlgIndividual->setProcessedSize(processedSize);
if (percent != old) {
- QString tmps;
+ TQString tmps;
if (percent == 100) {
tmps = i18n("OK as in 'finished'","OK");
} else {
@@ -750,13 +750,13 @@ void Transfer::showIndividual()
}
-void Transfer::logMessage(const QString & message)
+void Transfer::logMessage(const TQString & message)
{
sDebugIn << message << endl;
emit log(id, src.fileName(), message);
- QString tmps = "<font color=\"blue\">" + QTime::currentTime().toString() + "</font> : " + message;
+ TQString tmps = "<font color=\"blue\">" + TQTime::currentTime().toString() + "</font> : " + message;
transferLog.append(tmps + '\n');
@@ -773,7 +773,7 @@ bool Transfer::read(KSimpleConfig * config, int id)
sDebugIn << endl;
- QString str;
+ TQString str;
str.sprintf("Item%d", id);
config->setGroup(str);
@@ -808,7 +808,7 @@ void Transfer::write(KSimpleConfig * config, int id)
{
sDebugIn << endl;
- QString str;
+ TQString str;
str.sprintf("Item%d", id);
config->setGroup(str);
@@ -851,7 +851,7 @@ void Transfer::slotExecError()
status = ST_STOPPED;
mode = MD_SCHEDULED;
- startTime=QDateTime::currentDateTime().addSecs(ksettings.reconnectTime * 60);
+ startTime=TQDateTime::currentDateTime().addSecs(ksettings.reconnectTime * 60);
emit statusChanged(this, OP_SCHEDULED);
sDebugOut << endl;
@@ -961,7 +961,7 @@ void Transfer::slotExecSchedule()
}
/** No descriptions */
-void Transfer::slotStartTime(const QDateTime & _startTime)
+void Transfer::slotStartTime(const TQDateTime & _startTime)
{
sDebugIn << endl;