author | hash <hash> | 2002-10-01 20:27:21 (UTC) |
---|---|---|
committer | hash <hash> | 2002-10-01 20:27:21 (UTC) |
commit | 88c3937936dbbb13575425ce9da72d5286bd1233 (patch) (unidiff) | |
tree | 75dd4722c885ed76bf08d0b48c2b2f5732c4878d /noncore/apps/opie-console/file_layer.h | |
parent | 514a68beeb6abd4402bc7187eedc01e5d4793f64 (diff) | |
download | opie-88c3937936dbbb13575425ce9da72d5286bd1233.zip opie-88c3937936dbbb13575425ce9da72d5286bd1233.tar.gz opie-88c3937936dbbb13575425ce9da72d5286bd1233.tar.bz2 |
i'm kinda embarrased to commit this cus i really dont know how it's supposed
to work yet. if anyone has any pointers, please dont hesitate to tell me.
Diffstat (limited to 'noncore/apps/opie-console/file_layer.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/file_layer.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/noncore/apps/opie-console/file_layer.h b/noncore/apps/opie-console/file_layer.h index 035e125..71a0c82 100644 --- a/noncore/apps/opie-console/file_layer.h +++ b/noncore/apps/opie-console/file_layer.h | |||
@@ -1,10 +1,11 @@ | |||
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> | ||
5 | 6 | ||
6 | class QFile; | 7 | class QFile; |
7 | /** | 8 | /** |
8 | * this is the layer for sending files | 9 | * this is the layer for sending files |
9 | */ | 10 | */ |
10 | class FileTransferLayer : public QObject { | 11 | class FileTransferLayer : public QObject { |
@@ -18,18 +19,19 @@ public: | |||
18 | 19 | ||
19 | public slots: | 20 | public slots: |
20 | /** | 21 | /** |
21 | * send a file over the layer | 22 | * send a file over the layer |
22 | */ | 23 | */ |
23 | virtual void sendFile( const QString& file ) = 0; | 24 | virtual void sendFile( const QString& file ) = 0; |
24 | |||
25 | /** | ||
26 | * convience method | ||
27 | */ | ||
28 | virtual void sendFile( const QFile& ) = 0; | 25 | virtual void sendFile( const QFile& ) = 0; |
29 | 26 | ||
27 | private slots: | ||
28 | void SzRecievedStdout(OProcess *, char *, int); | ||
29 | void SzRecievedStderr(OProcess *, char *, int); | ||
30 | void recievedStdin(QByteArray &); | ||
31 | |||
30 | signals: | 32 | signals: |
31 | /** | 33 | /** |
32 | * sent the file | 34 | * sent the file |
33 | */ | 35 | */ |
34 | void sent(); | 36 | void sent(); |
35 | 37 | ||
@@ -47,10 +49,11 @@ signals: | |||
47 | 49 | ||
48 | protected: | 50 | protected: |
49 | IOLayer* layer(); | 51 | IOLayer* layer(); |
50 | 52 | ||
51 | private: | 53 | private: |
52 | IOLayer* m_layer; | 54 | IOLayer* m_layer; |
55 | OProcess *proc; | ||
53 | 56 | ||
54 | }; | 57 | }; |
55 | 58 | ||
56 | #endif | 59 | #endif |