summaryrefslogtreecommitdiff
authorhash <hash>2002-10-07 07:38:11 (UTC)
committer hash <hash>2002-10-07 07:38:11 (UTC)
commit2ff05a9340c34116723abba578b383e1bf958552 (patch) (side-by-side diff)
treea350a64a28745d37d55935f31978bb4677272a97
parent82c55f5dbe4d621019b9b9f153e85af0ce52799e (diff)
downloadopie-2ff05a9340c34116723abba578b383e1bf958552.zip
opie-2ff05a9340c34116723abba578b383e1bf958552.tar.gz
opie-2ff05a9340c34116723abba578b383e1bf958552.tar.bz2
returned to the orignal state \(i hope\)
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/opie-console/file_layer.cpp44
1 files changed, 0 insertions, 44 deletions
diff --git a/noncore/apps/opie-console/file_layer.cpp b/noncore/apps/opie-console/file_layer.cpp
index 4830f3b..79caa8a 100644
--- a/noncore/apps/opie-console/file_layer.cpp
+++ b/noncore/apps/opie-console/file_layer.cpp
@@ -1,9 +1,2 @@
-/*
- * <zecke> what you would simply do is connect stdout of the sz process
- * <zecke> to the send slot of the IOLayer
- * <zecke> and stdin to the receive signal of IOlayer
- * <zecke> on stderr you can see the progress
- */
-
#include "file_layer.h"
#include <qfile.h>
@@ -20,22 +13,7 @@ FileTransferLayer::~FileTransferLayer() {
void FileTransferLayer::sendFile(const QFile& file) {
- sendFile(file.name());
}
void FileTransferLayer::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(m_layer, SIGNAL(received(QByteArray &)),
- this, SLOT(recievedStdin(QByteArray &)));
- proc->start(OProcess::NotifyOnExit, OProcess::All);
-
}
@@ -43,24 +21,2 @@ IOLayer* FileTransferLayer::layer() {
return m_layer;
}
-
-
-void FileTransferLayer::SzRecievedStdout(OProcess *, char *buffer, int buflen) {
-
- QByteArray data(buflen);
- data.fill(*buffer, buflen);
-
- // send out through the io layer
- m_layer->send(data);
-}
-
-void FileTransferLayer::SzRecievedStderr(OProcess *, char *, int) {
-
- // parse and show data in a progress dialog/widget
-}
-
-void FileTransferLayer::recievedStdin(QByteArray &data) {
-
- // recieved data from the io layer goes to sz
- proc->writeStdin(data.data(), data.size());
-
-}