00001 #ifndef OPIE_FL_SZ_H 00002 #define OPIE_FL_SZ_H 00003 00004 #include "file_layer.h" 00005 #include <opie2/oprocess.h> 00006 00007 class SzTransfer : public FileTransferLayer { 00008 00009 Q_OBJECT 00010 00011 public: 00012 enum Type { 00013 SZ=0, 00014 SX, 00015 SY 00016 }; 00017 00018 SzTransfer( Type t, IOLayer * ); 00019 ~SzTransfer(); 00020 00021 public slots: 00025 void sendFile( const QString& file ) ; 00026 void sendFile( const QFile& ); 00027 void sent(); 00028 00029 private slots: 00030 void SzReceivedStdout(Opie::Core::OProcess *, char *, int); 00031 void SzReceivedStderr(Opie::Core::OProcess *, char *, int); 00032 void receivedStdin(const QByteArray &); 00033 00034 private: 00035 Opie::Core::OProcess *proc; 00036 Type m_t; 00037 00038 }; 00039 00040 #endif
1.4.2