Diffstat (limited to 'noncore/apps/opie-console/sz_transfer.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/sz_transfer.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/sz_transfer.h b/noncore/apps/opie-console/sz_transfer.h new file mode 100644 index 0000000..778d1d3 --- a/dev/null +++ b/noncore/apps/opie-console/sz_transfer.h @@ -0,0 +1,33 @@ +#ifndef OPIE_FL_SZ_H +#define OPIE_FL_SZ_H + +#include "file_layer.h" +#include <opie/oprocess.h> + +class SzTransfer : public FileTransferLayer { + + Q_OBJECT + +public: + + SzTransfer( IOLayer * ); + ~SzTransfer(); + +public slots: + /** + * send a file over the layer + */ + void sendFile( const QString& file ) = 0; + void sendFile( const QFile& ) = 0; + +private slots: + void SzRecievedStdout(OProcess *, char *, int); + void SzRecievedStderr(OProcess *, char *, int); + void recievedStdin(QByteArray &); + +private: + OProcess *proc; + +}; + +#endif |