summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/io_layer.h
Unidiff
Diffstat (limited to 'noncore/apps/opie-console/io_layer.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/opie-console/io_layer.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/noncore/apps/opie-console/io_layer.h b/noncore/apps/opie-console/io_layer.h
index 537c851..2f1ceef 100644
--- a/noncore/apps/opie-console/io_layer.h
+++ b/noncore/apps/opie-console/io_layer.h
@@ -1,47 +1,48 @@
1#ifndef OPIE_IO_LAYER_H 1#ifndef OPIE_IO_LAYER_H
2#define OPIE_IO_LAYER_H 2#define OPIE_IO_LAYER_H
3 3
4#include <qobject.h> 4#include <qobject.h>
5#include <qpe/config.h> 5#include <qpe/config.h>
6 6
7#include "profile.h"
8
7/** 9/**
8 * This is the base class for IO Layers 10 * This is the base class for IO Layers
9 * It will used to sent and recv data( QByteArray ) 11 * It will used to sent and recv data( QByteArray )
10 * it 12 * it
11 */ 13 */
12class Config;
13class IOLayer : public QObject { 14class IOLayer : public QObject {
14 Q_OBJECT 15 Q_OBJECT
15public: 16public:
16 enum Error { 17 enum Error {
17 NoError = -1, 18 NoError = -1,
18 Refuse = 0, 19 Refuse = 0,
19 CouldNotOpen =1, 20 CouldNotOpen =1,
20 ClosedUnexpected =2, 21 ClosedUnexpected =2,
21 ClosedError =3, 22 ClosedError =3,
22 Terminate = 4 23 Terminate = 4
23 /* add more errors here */ 24 /* add more errors here */
24 }; 25 };
25 /** 26 /**
26 * a small c'tor 27 * a small c'tor
27 */ 28 */
28 IOLayer(); 29 IOLayer();
29 30
30 /** 31 /**
31 * create an IOLayer instance from a config file 32 * create an IOLayer instance from a config file
32 * the currently set group stores the profile/session 33 * the currently set group stores the profile/session
33 * information 34 * information
34 */ 35 */
35 IOLayer( const Config& ); 36 IOLayer( const Profile& );
36 37
37 /** 38 /**
38 * destructor 39 * destructor
39 */ 40 */
40 virtual ~IOLayer(); 41 virtual ~IOLayer();
41 42
42 /** 43 /**
43 * a small internal identifier 44 * a small internal identifier
44 */ 45 */
45 virtual QString identifier() const = 0; 46 virtual QString identifier() const = 0;
46 47
47 /** 48 /**