summaryrefslogtreecommitdiff
path: root/noncore
authorzecke <zecke>2002-10-12 01:21:45 (UTC)
committer zecke <zecke>2002-10-12 01:21:45 (UTC)
commitb256987cda5449e3abfd3bd4c2d0650530b5a562 (patch) (side-by-side diff)
treeb739480699193ae0a2bd7a5ea9bfb3ce00923d8b /noncore
parenta92703ad1ed767713de21c2389b06434dc223eba (diff)
downloadopie-b256987cda5449e3abfd3bd4c2d0650530b5a562.zip
opie-b256987cda5449e3abfd3bd4c2d0650530b5a562.tar.gz
opie-b256987cda5449e3abfd3bd4c2d0650530b5a562.tar.bz2
Implemented Y-Moden and X-Modem
The parsing needs to ne adjusted for these gusys though..
Diffstat (limited to 'noncore') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/filetransfer.cpp15
1 files changed, 14 insertions, 1 deletions
diff --git a/noncore/apps/opie-console/filetransfer.cpp b/noncore/apps/opie-console/filetransfer.cpp
index 97552fe..b39dc95 100644
--- a/noncore/apps/opie-console/filetransfer.cpp
+++ b/noncore/apps/opie-console/filetransfer.cpp
@@ -57,8 +57,21 @@ void FileTransfer::sendFile( const QString& file ) {
char* binray = "-b";
+ char* typus;
+ switch(m_type ) {
+ case SZ:
+ typus = "";
+ break;
+ case SX:
+ typus = "-X";
+ break;
+ case SY:
+ typus = "--ymodem";
+ break;
+ }
+
/* we should never return from here */
- execlp("sz", "sz", verbose, binray, file.latin1(), NULL );
+ execlp("sz", "sz", verbose, binray, file.latin1(), typus, NULL );
/* communication for error!*/
char resultByte =1;