From 6a9726437a59cf3b18bf57d6e20fb2dfaaa2fc34 Mon Sep 17 00:00:00 2001 From: zecke Date: Sun, 13 Oct 2002 15:31:12 +0000 Subject: Move some stuff in filetransfer around make pid == 0 after a finished process. Introduce the FileReceive class it does not parse progress though --- (limited to 'noncore/apps/opie-console/receive_layer.cpp') diff --git a/noncore/apps/opie-console/receive_layer.cpp b/noncore/apps/opie-console/receive_layer.cpp new file mode 100644 index 0000000..05e2c67 --- a/dev/null +++ b/noncore/apps/opie-console/receive_layer.cpp @@ -0,0 +1,33 @@ +#include + +#include +#include + +#include "io_layer.h" +#include "receive_layer.h" + +ReceiveLayer::ReceiveLayer( IOLayer* lay, const QString& startDir ) + : QObject(), m_curDir( startDir ), m_layer(lay ) +{ + +} +ReceiveLayer::~ReceiveLayer() { + +} +IOLayer* ReceiveLayer::layer() { + return m_layer; +} +QString ReceiveLayer::currentDir()const{ + if (m_curDir.isEmpty() ) + return QString::fromLocal8Bit( ::getwd(NULL) ); + return m_curDir; +} +void ReceiveLayer::changeDir( const QString& str) { + ::chdir( str.latin1() ); +} +void ReceiveLayer::receive( const QString& dir, Mode, Features ) { + receive( dir ); +} +void ReceiveLayer::cancel() { + +} -- cgit v0.9.0.2