author | wazlaf <wazlaf> | 2002-09-25 20:56:38 (UTC) |
---|---|---|
committer | wazlaf <wazlaf> | 2002-09-25 20:56:38 (UTC) |
commit | bdbd20a9a0415e2284e21923ed03d4ca3f6615e8 (patch) (side-by-side diff) | |
tree | c0598ed6c79f113948813594c5ea68c873abbe75 /noncore/apps/opie-console/file_layer.h | |
parent | 71a6630a57ecea0214a490b3490fae19ae290bf7 (diff) | |
download | opie-bdbd20a9a0415e2284e21923ed03d4ca3f6615e8.zip opie-bdbd20a9a0415e2284e21923ed03d4ca3f6615e8.tar.gz opie-bdbd20a9a0415e2284e21923ed03d4ca3f6615e8.tar.bz2 |
preliminary skeleton
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 | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/file_layer.h b/noncore/apps/opie-console/file_layer.h new file mode 100644 index 0000000..75fd94b --- a/dev/null +++ b/noncore/apps/opie-console/file_layer.h @@ -0,0 +1,50 @@ +#ifndef OPIE_FILE_LAYER_H +#define OPIE_FILE_LAYER_H + +#include "io_layer.h" + +class QFile; +/** + * this is the layer for sending files + */ +class FileTransferLayer : public QObject { + Q_OBJECT +public: + /** + *the io layer to be used + */ + FileTransferLayer( IOLayer* ); + virtual ~FileTransferLayer(); + +public slots: + /** + * send a file over the layer + */ + virtual void sendFile( const QString& file ) = 0; + + /** + * convience method + */ + virtual void sendFile( const QFile& ) = 0; + +signals: + /** + * sent the file + */ + void sent(); + + /** + * an error occured + */ + + void error( int, const QString& ); + + /* + * 100 == done + * + */ + void progress( const QString& file, int progress ); + +}; + +#endif |