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) (side-by-side diff)
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
@@ -3,2 +3,4 @@
+#include <qmap.h>
+
#include "io_layer.h"
@@ -10,3 +12,2 @@ class QFile;
class FileTransferLayer : public QObject {
-
Q_OBJECT
@@ -14,2 +15,10 @@ class FileTransferLayer : public QObject {
public:
+ enum Errors{
+ NotSupported,
+ StartError,
+ NoError,
+ Unknown,
+ Undefined,
+ Incomplete
+ };
/**
@@ -26,2 +35,3 @@ public slots:
virtual void sendFile( const QFile& ) = 0;
+ virtual void cancel() = 0;
@@ -40,6 +50,11 @@ signals:
/*
- * 100 == done
+ * @param file The file to send
+ * @param progress the progress made from 0-100
+ * @param speed Speed in bps
+ * @param hours The hours it take to finish
+ * @param minutes The minutes it takes to finish
+ * @param send The seconds...
*
*/
- void progress( const QString& file, int progress );
+ void progress( const QString& file, int progress, int speed, int hours, int minutes, int seconds );