blob: d3e6621f617e0c68eb842fce6d20bc4b252a9b1c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
#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:
enum Type {
SZ=0,
SX,
SY
};
SzTransfer( Type t, IOLayer * );
~SzTransfer();
public slots:
/**
* send a file over the layer
*/
void sendFile( const QString& file ) ;
void sendFile( const QFile& );
void sent();
private slots:
void SzReceivedStdout(OProcess *, char *, int);
void SzReceivedStderr(OProcess *, char *, int);
void receivedStdin(const QByteArray &);
private:
OProcess *proc;
Type m_t;
};
#endif
|