Diffstat (limited to 'noncore/apps/opie-console/iolayerbase.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/iolayerbase.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/noncore/apps/opie-console/iolayerbase.h b/noncore/apps/opie-console/iolayerbase.h index d14f334..74de46a 100644 --- a/noncore/apps/opie-console/iolayerbase.h +++ b/noncore/apps/opie-console/iolayerbase.h | |||
@@ -2,46 +2,48 @@ | |||
2 | #define OPIE_IO_LAYER_BASE_H | 2 | #define OPIE_IO_LAYER_BASE_H |
3 | 3 | ||
4 | 4 | ||
5 | #include <qwidget.h> | 5 | #include <qwidget.h> |
6 | 6 | ||
7 | class QLabel; | 7 | class QLabel; |
8 | class QComboBox; | 8 | class QComboBox; |
9 | class QVBoxLayout; | 9 | class QVBoxLayout; |
10 | class QButtonGroup; | 10 | class QButtonGroup; |
11 | class QRadioButton; | 11 | class QRadioButton; |
12 | class QHBoxLayout; | 12 | class QHBoxLayout; |
13 | class IOLayerBase : public QWidget { | 13 | class IOLayerBase : public QWidget { |
14 | |||
14 | Q_OBJECT | 15 | Q_OBJECT |
16 | |||
15 | public: | 17 | public: |
16 | enum Flow { Hardware, Software, None }; | 18 | enum Flow { Hardware, Software, None }; |
17 | enum Parity{ Odd =2 , Even =1 }; | 19 | enum Parity{ Odd =2 , Even =1, NonePar =0 }; |
18 | enum Speed{ Baud_115200, | 20 | enum Speed{ Baud_115200, |
19 | Baud_57600, | 21 | Baud_57600, |
20 | Baud_38400, | 22 | Baud_38400, |
21 | Baud_19200, | 23 | Baud_19200, |
22 | Baud_9600 }; | 24 | Baud_9600 }; |
23 | IOLayerBase( QWidget* base, const char* name = 0l); | 25 | IOLayerBase( QWidget* base, const char* name = 0l); |
24 | ~IOLayerBase(); | 26 | ~IOLayerBase(); |
25 | 27 | ||
26 | void setFlow( Flow flo ); | 28 | void setFlow( Flow flo ); |
27 | void setParity( Parity par ); | 29 | void setParity( Parity par ); |
28 | void setSpeed( Speed speed ); | 30 | void setSpeed( Speed speed ); |
29 | 31 | ||
30 | Flow flow()const; | 32 | Flow flow()const; |
31 | Parity parity()const; | 33 | Parity parity()const; |
32 | Speed speed()const; | 34 | Speed speed()const; |
33 | private: | 35 | private: |
34 | QVBoxLayout* m_lroot; | 36 | QVBoxLayout* m_lroot; |
35 | QLabel* m_speedLabel; | 37 | QLabel* m_speedLabel; |
36 | QComboBox* m_speedBox; | 38 | QComboBox* m_speedBox; |
37 | QButtonGroup* m_groupFlow; | 39 | QButtonGroup* m_groupFlow; |
38 | QRadioButton *m_flowHw, *m_flowSw, *m_flowNone; | 40 | QRadioButton *m_flowHw, *m_flowSw, *m_flowNone; |
39 | 41 | ||
40 | QButtonGroup* m_groupParity; | 42 | QButtonGroup* m_groupParity; |
41 | QRadioButton *m_parityOdd, *m_parityEven; | 43 | QRadioButton *m_parityOdd, *m_parityEven, *m_parityNone; |
42 | QHBoxLayout* m_hbox; | 44 | QHBoxLayout* m_hbox; |
43 | QHBoxLayout* m_hboxPar; | 45 | QHBoxLayout* m_hboxPar; |
44 | }; | 46 | }; |
45 | 47 | ||
46 | 48 | ||
47 | #endif | 49 | #endif |