summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/file_layer.h
authorzecke <zecke>2002-10-11 22:31:15 (UTC)
committer zecke <zecke>2002-10-11 22:31:15 (UTC)
commitc8c961b4106f49f544195733cef17af5f15f6bb8 (patch) (unidiff)
tree3db3cad73021d14c417de2166249ec9e7a5f1aa4 /noncore/apps/opie-console/file_layer.h
parent597cda9456f8ef883d486b6ed7d7c09339919da9 (diff)
downloadopie-c8c961b4106f49f544195733cef17af5f15f6bb8.zip
opie-c8c961b4106f49f544195733cef17af5f15f6bb8.tar.gz
opie-c8c961b4106f49f544195733cef17af5f15f6bb8.tar.bz2
suspending connections in rawMode... closeRawIO afterwards please
Progress for FileTransfer FileTransferLayer updates. ErrorCodes + Better methods cancel and better progress default switch to FileTransfer TabWidget is a OTabWidget again
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.h21
1 files changed, 18 insertions, 3 deletions
diff --git a/noncore/apps/opie-console/file_layer.h b/noncore/apps/opie-console/file_layer.h
index 0bd0fd1..bf31540 100644
--- a/noncore/apps/opie-console/file_layer.h
+++ b/noncore/apps/opie-console/file_layer.h
@@ -1,6 +1,8 @@
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 <qmap.h>
5
4#include "io_layer.h" 6#include "io_layer.h"
5 7
6class QFile; 8class QFile;
@@ -8,10 +10,17 @@ class QFile;
8 * this is the layer for sending files 10 * this is the layer for sending files
9 */ 11 */
10class FileTransferLayer : public QObject { 12class FileTransferLayer : public QObject {
11
12 Q_OBJECT 13 Q_OBJECT
13 14
14public: 15public:
16 enum Errors{
17 NotSupported,
18 StartError,
19 NoError,
20 Unknown,
21 Undefined,
22 Incomplete
23 };
15 /** 24 /**
16 *the io layer to be used 25 *the io layer to be used
17 */ 26 */
@@ -24,6 +33,7 @@ public slots:
24 */ 33 */
25 virtual void sendFile( const QString& file ) = 0; 34 virtual void sendFile( const QString& file ) = 0;
26 virtual void sendFile( const QFile& ) = 0; 35 virtual void sendFile( const QFile& ) = 0;
36 virtual void cancel() = 0;
27 37
28signals: 38signals:
29 /** 39 /**
@@ -38,10 +48,15 @@ signals:
38 void error( int, const QString& ); 48 void error( int, const QString& );
39 49
40 /* 50 /*
41 * 100 == done 51 * @param file The file to send
52 * @param progress the progress made from 0-100
53 * @param speed Speed in bps
54 * @param hours The hours it take to finish
55 * @param minutes The minutes it takes to finish
56 * @param send The seconds...
42 * 57 *
43 */ 58 */
44 void progress( const QString& file, int progress ); 59 void progress( const QString& file, int progress, int speed, int hours, int minutes, int seconds );
45 60
46protected: 61protected:
47 IOLayer* layer(); 62 IOLayer* layer();