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