author | harlekin <harlekin> | 2004-04-22 18:58:37 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2004-04-22 18:58:37 (UTC) |
commit | 5c6499c56cd5c00603634546e6ba8c4d9da9741d (patch) (unidiff) | |
tree | 3ad98bb1a0150b1dd69c79fd58e6e59ce8556e51 /noncore/apps/opie-console/serialconfigwidget.cpp | |
parent | 53d6c4b8bfcb119635b26b78dee0ae4be8490b90 (diff) | |
download | opie-5c6499c56cd5c00603634546e6ba8c4d9da9741d.zip opie-5c6499c56cd5c00603634546e6ba8c4d9da9741d.tar.gz opie-5c6499c56cd5c00603634546e6ba8c4d9da9741d.tar.bz2 |
2400 and 4800 baud added, also free font selection
Diffstat (limited to 'noncore/apps/opie-console/serialconfigwidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/serialconfigwidget.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/serialconfigwidget.cpp b/noncore/apps/opie-console/serialconfigwidget.cpp index 3edf723..5f3547a 100644 --- a/noncore/apps/opie-console/serialconfigwidget.cpp +++ b/noncore/apps/opie-console/serialconfigwidget.cpp | |||
@@ -73,24 +73,30 @@ void SerialConfigWidget::load( const Profile& prof ) { | |||
73 | case 115200: | 73 | case 115200: |
74 | m_base->setSpeed(IOLayerBase::Baud_115200 ); | 74 | m_base->setSpeed(IOLayerBase::Baud_115200 ); |
75 | break; | 75 | break; |
76 | case 57600: | 76 | case 57600: |
77 | m_base->setSpeed( IOLayerBase::Baud_57600 ); | 77 | m_base->setSpeed( IOLayerBase::Baud_57600 ); |
78 | break; | 78 | break; |
79 | case 38400: | 79 | case 38400: |
80 | m_base->setSpeed(IOLayerBase::Baud_38400 ); | 80 | m_base->setSpeed(IOLayerBase::Baud_38400 ); |
81 | break; | 81 | break; |
82 | case 19200: | 82 | case 19200: |
83 | m_base->setSpeed( IOLayerBase::Baud_19200 ); | 83 | m_base->setSpeed( IOLayerBase::Baud_19200 ); |
84 | break; | 84 | break; |
85 | case 4800: | ||
86 | m_base->setSpeed( IOLayerBase::Baud_4800 ); | ||
87 | break; | ||
88 | case 2400: | ||
89 | m_base->setSpeed( IOLayerBase::Baud_2400 ); | ||
90 | break; | ||
85 | case 9600: | 91 | case 9600: |
86 | default: | 92 | default: |
87 | m_base->setSpeed(IOLayerBase::Baud_9600 ); | 93 | m_base->setSpeed(IOLayerBase::Baud_9600 ); |
88 | break; | 94 | break; |
89 | } | 95 | } |
90 | 96 | ||
91 | if ( dbits == 5) { | 97 | if ( dbits == 5) { |
92 | m_base->setData( IOLayerBase::Data_Five ); | 98 | m_base->setData( IOLayerBase::Data_Five ); |
93 | } else if (rad_flow == 6) { | 99 | } else if (rad_flow == 6) { |
94 | m_base->setData( IOLayerBase::Data_Six ); | 100 | m_base->setData( IOLayerBase::Data_Six ); |
95 | } else if (rad_flow == 7) { | 101 | } else if (rad_flow == 7) { |
96 | m_base->setData( IOLayerBase::Data_Seven ); | 102 | m_base->setData( IOLayerBase::Data_Seven ); |
@@ -148,24 +154,30 @@ void SerialConfigWidget::save( Profile& prof ) { | |||
148 | case IOLayerBase::Baud_115200: | 154 | case IOLayerBase::Baud_115200: |
149 | speed = 115200; | 155 | speed = 115200; |
150 | break; | 156 | break; |
151 | case IOLayerBase::Baud_57600: | 157 | case IOLayerBase::Baud_57600: |
152 | speed = 57600; | 158 | speed = 57600; |
153 | break; | 159 | break; |
154 | case IOLayerBase::Baud_38400: | 160 | case IOLayerBase::Baud_38400: |
155 | speed = 38400; | 161 | speed = 38400; |
156 | break; | 162 | break; |
157 | case IOLayerBase::Baud_19200: | 163 | case IOLayerBase::Baud_19200: |
158 | speed = 19200; | 164 | speed = 19200; |
159 | break; | 165 | break; |
166 | case IOLayerBase::Baud_4800: | ||
167 | speed = 4800; | ||
168 | break; | ||
169 | case IOLayerBase::Baud_2400: | ||
170 | speed = 2400; | ||
171 | break; | ||
160 | default: | 172 | default: |
161 | case IOLayerBase::Baud_9600: | 173 | case IOLayerBase::Baud_9600: |
162 | speed = 9600; | 174 | speed = 9600; |
163 | break; | 175 | break; |
164 | } | 176 | } |
165 | 177 | ||
166 | switch( m_base->data() ) { | 178 | switch( m_base->data() ) { |
167 | case IOLayerBase::Data_Five: | 179 | case IOLayerBase::Data_Five: |
168 | data = 5; | 180 | data = 5; |
169 | break; | 181 | break; |
170 | case IOLayerBase::Data_Six: | 182 | case IOLayerBase::Data_Six: |
171 | data = 6; | 183 | data = 6; |