summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/sz_transfer.cpp
Side-by-side diff
Diffstat (limited to 'noncore/apps/opie-console/sz_transfer.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/sz_transfer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/apps/opie-console/sz_transfer.cpp b/noncore/apps/opie-console/sz_transfer.cpp
index de321ae..10f3f7a 100644
--- a/noncore/apps/opie-console/sz_transfer.cpp
+++ b/noncore/apps/opie-console/sz_transfer.cpp
@@ -1,30 +1,30 @@
#include "sz_transfer.h"
#include <qfile.h>
#include <opie/oprocess.h>
-SzTransfer::SzTransfer(IOLayer *layer) : FileTransferLayer(layer)
+SzTransfer::SzTransfer(Type t, IOLayer *layer) : FileTransferLayer(layer), m_t(t)
{
}
SzTransfer::~SzTransfer() {
}
void SzTransfer::sendFile(const QFile& file) {
sendFile(file.name());
}
void SzTransfer::sendFile(const QString& file) {
proc = new OProcess;
*proc << "sz";
*proc << "-vv" << file;
connect(proc, SIGNAL(processExited(OProcess *)),
this, SLOT(sent()));
connect(proc, SIGNAL(processRecievedStdout(OProcess *, char *, int)),
this, SLOT(SzRecievedStdout(OProcess *, char *, int)));
connect(proc, SIGNAL(processRecievedStderr(OProcess *, char *, int)),
this, SLOT(SzRecievedStderr(OProcess *, char *, int)));
connect(layer(), SIGNAL(received(QByteArray &)),
this, SLOT(recievedStdin(QByteArray &)));