Diffstat (limited to 'noncore/apps/opie-console/iolayerbase.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/iolayerbase.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/noncore/apps/opie-console/iolayerbase.cpp b/noncore/apps/opie-console/iolayerbase.cpp index 0f64d6a..95c291f 100644 --- a/noncore/apps/opie-console/iolayerbase.cpp +++ b/noncore/apps/opie-console/iolayerbase.cpp | |||
@@ -26,7 +26,8 @@ namespace { | |||
26 | id_baud_19200, | 26 | id_baud_19200, |
27 | id_baud_9600, | 27 | id_baud_9600, |
28 | id_baud_4800, | 28 | id_baud_4800, |
29 | id_baud_2400 | 29 | id_baud_2400, |
30 | id_baud_1200 | ||
30 | }; | 31 | }; |
31 | 32 | ||
32 | enum DataIds { | 33 | enum DataIds { |
@@ -90,6 +91,7 @@ IOLayerBase::IOLayerBase( QWidget* par, const char* name ) | |||
90 | m_speedBox->insertItem(tr("9600 baud"), id_baud_9600 ); | 91 | m_speedBox->insertItem(tr("9600 baud"), id_baud_9600 ); |
91 | m_speedBox->insertItem(tr("4800 baud"), id_baud_4800 ); | 92 | m_speedBox->insertItem(tr("4800 baud"), id_baud_4800 ); |
92 | m_speedBox->insertItem(tr("2400 baud"), id_baud_2400 ); | 93 | m_speedBox->insertItem(tr("2400 baud"), id_baud_2400 ); |
94 | m_speedBox->insertItem(tr("1200 baud"), id_baud_1200); | ||
93 | }; | 95 | }; |
94 | IOLayerBase::~IOLayerBase() { | 96 | IOLayerBase::~IOLayerBase() { |
95 | 97 | ||
@@ -142,6 +144,9 @@ void IOLayerBase::setSpeed( Speed sp ) { | |||
142 | case Baud_2400: | 144 | case Baud_2400: |
143 | index = id_baud_2400; | 145 | index = id_baud_2400; |
144 | break; | 146 | break; |
147 | case Baud_1200: | ||
148 | index = id_baud_1200; | ||
149 | break; | ||
145 | default: | 150 | default: |
146 | case Baud_9600: | 151 | case Baud_9600: |
147 | index = id_baud_9600; | 152 | index = id_baud_9600; |
@@ -223,6 +228,9 @@ IOLayerBase::Speed IOLayerBase::speed()const{ | |||
223 | case id_baud_2400: | 228 | case id_baud_2400: |
224 | return Baud_2400; | 229 | return Baud_2400; |
225 | break; | 230 | break; |
231 | case id_baud_1200: | ||
232 | return Baud_1200; | ||
233 | break; | ||
226 | default: | 234 | default: |
227 | case id_baud_9600: | 235 | case id_baud_9600: |
228 | return Baud_9600; | 236 | return Baud_9600; |