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 |