From c8c961b4106f49f544195733cef17af5f15f6bb8 Mon Sep 17 00:00:00 2001 From: zecke Date: Fri, 11 Oct 2002 22:31:15 +0000 Subject: 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 --- (limited to 'noncore/apps/opie-console/file_layer.h') 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 @@ #ifndef OPIE_FILE_LAYER_H #define OPIE_FILE_LAYER_H +#include + #include "io_layer.h" class QFile; @@ -8,10 +10,17 @@ class QFile; * this is the layer for sending files */ class FileTransferLayer : public QObject { - Q_OBJECT public: + enum Errors{ + NotSupported, + StartError, + NoError, + Unknown, + Undefined, + Incomplete + }; /** *the io layer to be used */ @@ -24,6 +33,7 @@ public slots: */ virtual void sendFile( const QString& file ) = 0; virtual void sendFile( const QFile& ) = 0; + virtual void cancel() = 0; signals: /** @@ -38,10 +48,15 @@ signals: void error( int, const QString& ); /* - * 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: IOLayer* layer(); -- cgit v0.9.0.2