summaryrefslogtreecommitdiff
path: root/noncore
authorhash <hash>2002-10-07 07:39:11 (UTC)
committer hash <hash>2002-10-07 07:39:11 (UTC)
commit4202539e8a50bad62e6ee0cbf3965e00e9ff156a (patch) (unidiff)
tree689dbc6533626eac9a7eef118e32f29bcf040349 /noncore
parent2ff05a9340c34116723abba578b383e1bf958552 (diff)
downloadopie-4202539e8a50bad62e6ee0cbf3965e00e9ff156a.zip
opie-4202539e8a50bad62e6ee0cbf3965e00e9ff156a.tar.gz
opie-4202539e8a50bad62e6ee0cbf3965e00e9ff156a.tar.bz2
returned to formal state
Diffstat (limited to 'noncore') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/file_layer.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/noncore/apps/opie-console/file_layer.h b/noncore/apps/opie-console/file_layer.h
index cfa149e..0bd0fd1 100644
--- a/noncore/apps/opie-console/file_layer.h
+++ b/noncore/apps/opie-console/file_layer.h
@@ -1,61 +1,54 @@
1#ifndef OPIE_FILE_LAYER_H 1#ifndef OPIE_FILE_LAYER_H
2#define OPIE_FILE_LAYER_H 2#define OPIE_FILE_LAYER_H
3 3
4#include "io_layer.h" 4#include "io_layer.h"
5#include <opie/oprocess.h>
6 5
7class QFile; 6class QFile;
8/** 7/**
9 * this is the layer for sending files 8 * this is the layer for sending files
10 */ 9 */
11class FileTransferLayer : public QObject { 10class FileTransferLayer : public QObject {
12 11
13 Q_OBJECT 12 Q_OBJECT
14 13
15public: 14public:
16 /** 15 /**
17 *the io layer to be used 16 *the io layer to be used
18 */ 17 */
19 FileTransferLayer( IOLayer* ); 18 FileTransferLayer( IOLayer* );
20 virtual ~FileTransferLayer(); 19 virtual ~FileTransferLayer();
21 20
22public slots: 21public slots:
23 /** 22 /**
24 * send a file over the layer 23 * send a file over the layer
25 */ 24 */
26 virtual void sendFile( const QString& file ) = 0; 25 virtual void sendFile( const QString& file ) = 0;
27 virtual void sendFile( const QFile& ) = 0; 26 virtual void sendFile( const QFile& ) = 0;
28 27
29private slots:
30 void SzRecievedStdout(OProcess *, char *, int);
31 void SzRecievedStderr(OProcess *, char *, int);
32 void recievedStdin(QByteArray &);
33
34signals: 28signals:
35 /** 29 /**
36 * sent the file 30 * sent the file
37 */ 31 */
38 void sent(); 32 void sent();
39 33
40 /** 34 /**
41 * an error occured 35 * an error occured
42 */ 36 */
43 37
44 void error( int, const QString& ); 38 void error( int, const QString& );
45 39
46 /* 40 /*
47 * 100 == done 41 * 100 == done
48 * 42 *
49 */ 43 */
50 void progress( const QString& file, int progress ); 44 void progress( const QString& file, int progress );
51 45
52protected: 46protected:
53 IOLayer* layer(); 47 IOLayer* layer();
54 48
55private: 49private:
56 IOLayer* m_layer; 50 IOLayer* m_layer;
57 OProcess *proc;
58 51
59}; 52};
60 53
61#endif 54#endif