author | zecke <zecke> | 2002-09-28 18:29:02 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-09-28 18:29:02 (UTC) |
commit | bc88219d0a9cf935d90c88fe75e238e86c675937 (patch) (unidiff) | |
tree | 0121d1d3d881cf69948f3faf420a71d894dd6832 /noncore/apps/opie-console/io_layer.h | |
parent | 18d575d0ee47a0700091de81bc3e8c54be4eae18 (diff) | |
download | opie-bc88219d0a9cf935d90c88fe75e238e86c675937.zip opie-bc88219d0a9cf935d90c88fe75e238e86c675937.tar.gz opie-bc88219d0a9cf935d90c88fe75e238e86c675937.tar.bz2 |
io_layer take Profile instead of Config
Profile added including some Config like stuff
io_serial getBaud -> baud
a default for gcc3 later
tabdwidget will be our central widget
profileconfig I needed groups() and clearAll
that's pretty much it
Diffstat (limited to 'noncore/apps/opie-console/io_layer.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/io_layer.h | 5 |
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 | */ |
12 | class Config; | ||
13 | class IOLayer : public QObject { | 14 | class IOLayer : public QObject { |
14 | Q_OBJECT | 15 | Q_OBJECT |
15 | public: | 16 | public: |
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 | /** |