summaryrefslogtreecommitdiff
authormickeyl <mickeyl>2005-02-04 13:55:18 (UTC)
committer mickeyl <mickeyl>2005-02-04 13:55:18 (UTC)
commit43213784ac3b6057f8c83f22604d75d0557e8c5a (patch) (side-by-side diff)
treeafde8194a2f5a292a163f8dc149c8538e3608649
parentb1dab0b57e8d9766a2da7e8cc8792fb434182410 (diff)
downloadopie-43213784ac3b6057f8c83f22604d75d0557e8c5a.zip
opie-43213784ac3b6057f8c83f22604d75d0557e8c5a.tar.gz
opie-43213784ac3b6057f8c83f22604d75d0557e8c5a.tar.bz2
make it compile
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opieirc/dcctransfer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/net/opieirc/dcctransfer.cpp b/noncore/net/opieirc/dcctransfer.cpp
index cfa9f74..e97d191 100644
--- a/noncore/net/opieirc/dcctransfer.cpp
+++ b/noncore/net/opieirc/dcctransfer.cpp
@@ -1,41 +1,41 @@
#include <qsocket.h>
#include <qfile.h>
#include "dcctransfer.h"
DCCTransfer::DCCTransfer(Q_UINT32 ip4Addr, Q_UINT16 port, const QString &filename, unsigned int size)
: m_socket(new QSocket), m_file(new QFile), m_bufSize(4096), m_buffer(new char[m_bufSize]),
m_ip4Addr(ip4Addr), m_port(port), m_totalSize(size), m_processedSize(0)
{
m_file->setName(filename);
}
DCCTransfer::~DCCTransfer()
{
if(m_socket)
delete m_socket;
if(m_file) {
m_file->close();
delete m_file;
}
if(m_buffer)
delete []m_buffer;
}
void DCCTransfer::cancel()
{
if(m_socket)
m_socket->close();
- emit(finished(DCCTransfer::SelfAborted));
+ emit(finished(this, DCCTransfer::SelfAborted));
}
QString DCCTransfer::filename()
{
if(!m_file)
return QString::null;
return m_file->name().mid(m_file->name().findRev('/') + 1);
}