summaryrefslogtreecommitdiffstats
path: root/ksirc/dccManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ksirc/dccManager.cpp')
-rw-r--r--ksirc/dccManager.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/ksirc/dccManager.cpp b/ksirc/dccManager.cpp
index cbf63109..386644b9 100644
--- a/ksirc/dccManager.cpp
+++ b/ksirc/dccManager.cpp
@@ -22,7 +22,7 @@
#define COL_CPS 4
#define COL_PER 5
-dccItem::dccItem( KListView *parent, dccManager *manager, enum dccType type, const TQString &file, const TQString& who, enum dcctqStatus status, unsigned int size )
+dccItem::dccItem( KListView *parent, dccManager *manager, enum dccType type, const TQString &file, const TQString& who, enum dccStatus status, unsigned int size )
: TQObject(), KListViewItem(parent), m_who(who), m_file(file), m_type(type)
{
m_percent = 0;
@@ -34,16 +34,16 @@ dccItem::dccItem( KListView *parent, dccManager *manager, enum dccType type, con
setText(COL_FILE, file);
setText(COL_WHO, who);
- setText(COL_STAT, enumTotqStatus(status));
+ setText(COL_STAT, enumToStatus(status));
if(m_type == dccChat)
setText(COL_SIZE, "");
else
- setText(COL_SIZE, TQString("%1").tqarg(size));
+ setText(COL_SIZE, TQString("%1").arg(size));
setText(COL_PER, "");
}
-dccItem::dccItem( KListViewItem *parent, dccManager *manager, enum dccType type, const TQString &file, const TQString& who, enum dcctqStatus status, unsigned int size )
+dccItem::dccItem( KListViewItem *parent, dccManager *manager, enum dccType type, const TQString &file, const TQString& who, enum dccStatus status, unsigned int size )
: TQObject(), KListViewItem(parent), m_who(who), m_file(file), m_type(type)
{
m_percent = 0;
@@ -54,9 +54,9 @@ dccItem::dccItem( KListViewItem *parent, dccManager *manager, enum dccType type,
setText(COL_FILE, file);
setText(COL_WHO, who);
- setText(COL_STAT, enumTotqStatus(status));
+ setText(COL_STAT, enumToStatus(status));
if(type != dccChat)
- setText(COL_SIZE, TQString("%1").tqarg(size));
+ setText(COL_SIZE, TQString("%1").arg(size));
setText(COL_PER, "");
}
@@ -65,7 +65,7 @@ dccItem::~dccItem()
{
}
-TQString dccItem::enumTotqStatus(enum dcctqStatus status)
+TQString dccItem::enumToStatus(enum dccStatus status)
{
TQString str;
switch(status){
@@ -108,7 +108,7 @@ TQString dccItem::enumTotqStatus(enum dcctqStatus status)
void dccItem::setWhoPostfix(const TQString &post) {
m_post = post;
- setText(COL_WHO, TQString("%1 %2").tqarg(m_who).tqarg(post));
+ setText(COL_WHO, TQString("%1 %2").arg(m_who).arg(post));
}
void dccItem::changeFilename(const TQString &file) {
@@ -121,10 +121,10 @@ void dccItem::changeWho(const TQString &who) {
m_who = who;
}
-void dccItem::changetqStatus(enum dcctqStatus status)
+void dccItem::changeStatus(enum dccStatus status)
{
m_manager->doChanged();
- setText(COL_STAT, enumTotqStatus(status));
+ setText(COL_STAT, enumToStatus(status));
m_status = status;
emit statusChanged(this);
}
@@ -146,13 +146,13 @@ void dccItem::setReceivedBytes(int bytes)
(ctime >= (m_lasttime + 2))
){
m_lasttime = ctime;
- setText(COL_SIZE, TQString("%1/%2").tqarg(bytes).tqarg(m_size));
- setText(COL_PER, TQString("%1%").tqarg(per));
+ setText(COL_SIZE, TQString("%1/%2").arg(bytes).arg(m_size));
+ setText(COL_PER, TQString("%1%").arg(per));
m_percent = per;
if(m_status == dccResumed)
m_stime = 0; /* if we are got a resume request don't update CPS, reset it */
else
- setText(COL_CPS, TQString("%1").tqarg(1.0*bytes/(time(NULL) - m_stime), 2));
+ setText(COL_CPS, TQString("%1").arg(1.0*bytes/(time(NULL) - m_stime), 2));
}
@@ -228,7 +228,7 @@ dccManager::~dccManager()
{
}
-dccItem *dccManager::newSendItem(TQString file, TQString who, enum dccItem::dcctqStatus status, unsigned int size)
+dccItem *dccManager::newSendItem(TQString file, TQString who, enum dccItem::dccStatus status, unsigned int size)
{
emit changed(false, i18n("dcc activity"));
dccItem *it = new dccItem(m_sendit, this, dccItem::dccSend, file, who, status, size);
@@ -237,7 +237,7 @@ dccItem *dccManager::newSendItem(TQString file, TQString who, enum dccItem::dcct
return it;
}
-dccItem *dccManager::newGetItem(TQString file, TQString who, enum dccItem::dcctqStatus status, unsigned int size)
+dccItem *dccManager::newGetItem(TQString file, TQString who, enum dccItem::dccStatus status, unsigned int size)
{
emit changed(false, i18n("dcc activity"));
dccItem *it = new dccItem(m_getit, this, dccItem::dccGet, file, who, status, size);
@@ -247,7 +247,7 @@ dccItem *dccManager::newGetItem(TQString file, TQString who, enum dccItem::dcctq
}
-dccItem *dccManager::newChatItem(TQString who, enum dccItem::dcctqStatus status)
+dccItem *dccManager::newChatItem(TQString who, enum dccItem::dccStatus status)
{
emit changed(false, i18n("dcc activity"));
dccItem *it = new dccItem(m_chatit, this, dccItem::dccChat, "", who, status, 0);