author | harlekin <harlekin> | 2004-10-12 21:50:15 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2004-10-12 21:50:15 (UTC) |
commit | 52867c8ca21a3bec10eb27c8f698855d8fca320e (patch) (unidiff) | |
tree | 4958cca23caa32d85aa78de9c95715b34599f261 /noncore/apps/opie-console/iolayerbase.cpp | |
parent | 4eed63767cedb0d96b116c4b9233405ca93e5541 (diff) | |
download | opie-52867c8ca21a3bec10eb27c8f698855d8fca320e.zip opie-52867c8ca21a3bec10eb27c8f698855d8fca320e.tar.gz opie-52867c8ca21a3bec10eb27c8f698855d8fca320e.tar.bz2 |
also make 1200 baud connection possible
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 | |||
@@ -23,13 +23,14 @@ namespace { | |||
23 | id_baud_115200, | 23 | id_baud_115200, |
24 | id_baud_57600, | 24 | id_baud_57600, |
25 | id_baud_38400, | 25 | id_baud_38400, |
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 { |
33 | id_data_5, | 34 | id_data_5, |
34 | id_data_6, | 35 | id_data_6, |
35 | id_data_7, | 36 | id_data_7, |
@@ -87,12 +88,13 @@ IOLayerBase::IOLayerBase( QWidget* par, const char* name ) | |||
87 | m_speedBox->insertItem(tr("57600 baud"), id_baud_57600 ); | 88 | m_speedBox->insertItem(tr("57600 baud"), id_baud_57600 ); |
88 | m_speedBox->insertItem(tr("38400 baud"), id_baud_38400 ); | 89 | m_speedBox->insertItem(tr("38400 baud"), id_baud_38400 ); |
89 | m_speedBox->insertItem(tr("19200 baud"), id_baud_19200 ); | 90 | m_speedBox->insertItem(tr("19200 baud"), id_baud_19200 ); |
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 | ||
96 | } | 98 | } |
97 | void IOLayerBase::setFlow( Flow flo ) { | 99 | void IOLayerBase::setFlow( Flow flo ) { |
98 | switch ( flo ) { | 100 | switch ( flo ) { |
@@ -139,12 +141,15 @@ void IOLayerBase::setSpeed( Speed sp ) { | |||
139 | case Baud_4800: | 141 | case Baud_4800: |
140 | index = id_baud_4800; | 142 | index = id_baud_4800; |
141 | break; | 143 | break; |
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; |
148 | break; | 153 | break; |
149 | } | 154 | } |
150 | m_speedBox->setCurrentItem(index ); | 155 | m_speedBox->setCurrentItem(index ); |
@@ -220,12 +225,15 @@ IOLayerBase::Speed IOLayerBase::speed()const{ | |||
220 | case id_baud_4800: | 225 | case id_baud_4800: |
221 | return Baud_4800; | 226 | return Baud_4800; |
222 | break; | 227 | break; |
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; |
229 | break; | 237 | break; |
230 | } | 238 | } |
231 | } | 239 | } |