author | zecke <zecke> | 2002-10-12 01:37:00 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-10-12 01:37:00 (UTC) |
commit | ff012f0c23a01ed8443514a9f638e4c9d97bbf8d (patch) (unidiff) | |
tree | 07c2046b32ea7af5c4d45ec0072cf7fd68fa8484 | |
parent | b256987cda5449e3abfd3bd4c2d0650530b5a562 (diff) | |
download | opie-ff012f0c23a01ed8443514a9f638e4c9d97bbf8d.zip opie-ff012f0c23a01ed8443514a9f638e4c9d97bbf8d.tar.gz opie-ff012f0c23a01ed8443514a9f638e4c9d97bbf8d.tar.bz2 |
Added a new sendFile method
We still need to talk about it
what I did was sz --help and
grpouped the things into Mode
Ascii/Binary
Features and BlockSize
First of all we need to decide if we want
such configurable filetransfers
And if yes I've to talk to josef how to do
that best.
Not every Protocol supports the values in the
file some support more some less.
I suggest MetaFactory and one more kind of a
'Plugin'
-rw-r--r-- | noncore/apps/opie-console/file_layer.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/file_layer.h b/noncore/apps/opie-console/file_layer.h index bf31540..edb30e1 100644 --- a/noncore/apps/opie-console/file_layer.h +++ b/noncore/apps/opie-console/file_layer.h | |||
@@ -21,6 +21,26 @@ public: | |||
21 | Undefined, | 21 | Undefined, |
22 | Incomplete | 22 | Incomplete |
23 | }; | 23 | }; |
24 | enum Features { | ||
25 | Append = 0, | ||
26 | Twostop = 1, | ||
27 | Escape = 2, | ||
28 | Rename = 4, | ||
29 | FullPath = 8, | ||
30 | SendIfNewer = 16, | ||
31 | SendIfLonger = 32, | ||
32 | Resume = 64 | ||
33 | |||
34 | }; | ||
35 | enum Mode { | ||
36 | Ascii = 0, | ||
37 | Binary | ||
38 | }; | ||
39 | enum BlockSize { | ||
40 | Block_1k, | ||
41 | Block_4k, | ||
42 | Block_8k | ||
43 | }; | ||
24 | /** | 44 | /** |
25 | *the io layer to be used | 45 | *the io layer to be used |
26 | */ | 46 | */ |
@@ -28,6 +48,11 @@ public: | |||
28 | virtual ~FileTransferLayer(); | 48 | virtual ~FileTransferLayer(); |
29 | 49 | ||
30 | public slots: | 50 | public slots: |
51 | |||
52 | virtual void sendFile( const QString& file, | ||
53 | Mode mode, BlockSize blk, | ||
54 | Features feat ) {}; | ||
55 | |||
31 | /** | 56 | /** |
32 | * send a file over the layer | 57 | * send a file over the layer |
33 | */ | 58 | */ |