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/modemconfigwidget.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/modemconfigwidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/modemconfigwidget.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/noncore/apps/opie-console/modemconfigwidget.cpp b/noncore/apps/opie-console/modemconfigwidget.cpp index 9fdaf73..90d0b5b 100644 --- a/noncore/apps/opie-console/modemconfigwidget.cpp +++ b/noncore/apps/opie-console/modemconfigwidget.cpp | |||
@@ -110,6 +110,12 @@ void ModemConfigWidget::load( const Profile& prof ) { | |||
110 | case 19200: | 110 | case 19200: |
111 | m_base->setSpeed( IOLayerBase::Baud_19200 ); | 111 | m_base->setSpeed( IOLayerBase::Baud_19200 ); |
112 | break; | 112 | break; |
113 | case 4800: | ||
114 | m_base->setSpeed( IOLayerBase::Baud_4800 ); | ||
115 | break; | ||
116 | case 2400: | ||
117 | m_base->setSpeed( IOLayerBase::Baud_2400 ); | ||
118 | break; | ||
113 | case 9600: | 119 | case 9600: |
114 | default: | 120 | default: |
115 | m_base->setSpeed( IOLayerBase::Baud_9600 ); | 121 | m_base->setSpeed( IOLayerBase::Baud_9600 ); |
@@ -138,7 +144,7 @@ void ModemConfigWidget::load( const Profile& prof ) { | |||
138 | 144 | ||
139 | atConf->readConfig( prof ); | 145 | atConf->readConfig( prof ); |
140 | if ( prof.readEntry( "Device" ).isEmpty() ) { | 146 | if ( prof.readEntry( "Device" ).isEmpty() ) { |
141 | owarn << "device empty!" << oendl; | 147 | owarn << "device empty!" << oendl; |
142 | return; | 148 | return; |
143 | } | 149 | } |
144 | setCurrent( prof.readEntry( "Device" ), m_deviceCmb ); | 150 | setCurrent( prof.readEntry( "Device" ), m_deviceCmb ); |
@@ -197,6 +203,12 @@ void ModemConfigWidget::save( Profile& prof ) { | |||
197 | case IOLayerBase::Baud_9600: | 203 | case IOLayerBase::Baud_9600: |
198 | speed = 9600; | 204 | speed = 9600; |
199 | break; | 205 | break; |
206 | case IOLayerBase::Baud_4800: | ||
207 | speed = 4800; | ||
208 | break; | ||
209 | case IOLayerBase::Baud_2400: | ||
210 | speed = 2400; | ||
211 | break; | ||
200 | } | 212 | } |
201 | 213 | ||
202 | switch( m_base->data() ) { | 214 | switch( m_base->data() ) { |