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 @@ | |||
1 | #ifndef OPIE_FL_SZ_H | ||
2 | #define OPIE_FL_SZ_H | ||
3 | |||
4 | #include "file_layer.h" | ||
5 | #include <opie/oprocess.h> | ||
6 | |||
7 | class SzTransfer : public FileTransferLayer { | ||
8 | |||
9 | Q_OBJECT | ||
10 | |||
11 | public: | ||
12 | |||
13 | SzTransfer( IOLayer * ); | ||
14 | ~SzTransfer(); | ||
15 | |||
16 | public slots: | ||
17 | /** | ||
18 | * send a file over the layer | ||
19 | */ | ||
20 | void sendFile( const QString& file ) = 0; | ||
21 | void sendFile( const QFile& ) = 0; | ||
22 | |||
23 | private slots: | ||
24 | void SzRecievedStdout(OProcess *, char *, int); | ||
25 | void SzRecievedStderr(OProcess *, char *, int); | ||
26 | void recievedStdin(QByteArray &); | ||
27 | |||
28 | private: | ||
29 | OProcess *proc; | ||
30 | |||
31 | }; | ||
32 | |||
33 | #endif | ||