Diffstat (limited to 'noncore/apps/opie-console/file_layer.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/file_layer.h | 21 |
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 @@ -2,4 +2,6 @@ #define OPIE_FILE_LAYER_H +#include <qmap.h> + #include "io_layer.h" @@ -9,8 +11,15 @@ class QFile; */ class FileTransferLayer : public QObject { - Q_OBJECT public: + enum Errors{ + NotSupported, + StartError, + NoError, + Unknown, + Undefined, + Incomplete + }; /** *the io layer to be used @@ -25,4 +34,5 @@ public slots: virtual void sendFile( const QString& file ) = 0; virtual void sendFile( const QFile& ) = 0; + virtual void cancel() = 0; signals: @@ -39,8 +49,13 @@ 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 ); protected: |