summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/filetransfer.h
Unidiff
Diffstat (limited to 'noncore/apps/opie-console/filetransfer.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/opie-console/filetransfer.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/filetransfer.h b/noncore/apps/opie-console/filetransfer.h
new file mode 100644
index 0000000..06c6d12
--- a/dev/null
+++ b/noncore/apps/opie-console/filetransfer.h
@@ -0,0 +1,38 @@
1#ifndef OPIE_FILE_TRANSFER_H
2#define OPIE_FILE_TRANSFER_H
3
4#include <sys/types.h>
5
6#include <qfile.h>
7
8#include "file_layer.h"
9
10class QSocketNotifier;
11class OProcess;
12class FileTransfer : public FileTransferLayer{
13 Q_OBJECT
14public:
15 enum Type {
16 SZ = 0,
17 SX,
18 SY
19 };
20 FileTransfer( Type t, IOLayer* );
21 ~FileTransfer();
22
23 void sendFile( const QString& file );
24 void sendFile( const QFile& );
25
26private slots:
27 void setupChild();
28private:
29 static pid_t m_pid;
30 int m_fd;
31 int m_info[2];
32 int m_comm[2];
33 Type m_type;
34 static void signal_handler(int);
35 static bool terminate;
36};
37
38#endif