summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/file_layer.h
Unidiff
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.h50
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 @@
1#ifndef OPIE_FILE_LAYER_H
2#define OPIE_FILE_LAYER_H
3
4#include "io_layer.h"
5
6class QFile;
7/**
8 * this is the layer for sending files
9 */
10class FileTransferLayer : public QObject {
11 Q_OBJECT
12public:
13 /**
14 *the io layer to be used
15 */
16 FileTransferLayer( IOLayer* );
17 virtual ~FileTransferLayer();
18
19public slots:
20 /**
21 * send a file over the layer
22 */
23 virtual void sendFile( const QString& file ) = 0;
24
25 /**
26 * convience method
27 */
28 virtual void sendFile( const QFile& ) = 0;
29
30signals:
31 /**
32 * sent the file
33 */
34 void sent();
35
36 /**
37 * an error occured
38 */
39
40 void error( int, const QString& );
41
42 /*
43 * 100 == done
44 *
45 */
46 void progress( const QString& file, int progress );
47
48};
49
50#endif