summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/sz_transfer.h
blob: 05052154fa8f183efc3df108eba41d7981d99a41 (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 <opie2/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(Opie::Core::OProcess *, char *, int);
    void SzReceivedStderr(Opie::Core::OProcess *, char *, int);
    void receivedStdin(const QByteArray &);

private:
    Opie::Core::OProcess *proc;
    Type m_t;

};

#endif