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 { id_baud_115200, id_baud_57600, id_baud_38400, id_baud_19200, id_baud_9600, id_baud_4800, - id_baud_2400 + id_baud_2400, + id_baud_1200 }; enum DataIds { id_data_5, id_data_6, id_data_7, @@ -87,12 +88,13 @@ IOLayerBase::IOLayerBase( QWidget* par, const char* name ) m_speedBox->insertItem(tr("57600 baud"), id_baud_57600 ); m_speedBox->insertItem(tr("38400 baud"), id_baud_38400 ); m_speedBox->insertItem(tr("19200 baud"), id_baud_19200 ); m_speedBox->insertItem(tr("9600 baud"), id_baud_9600 ); m_speedBox->insertItem(tr("4800 baud"), id_baud_4800 ); m_speedBox->insertItem(tr("2400 baud"), id_baud_2400 ); + m_speedBox->insertItem(tr("1200 baud"), id_baud_1200 ); }; IOLayerBase::~IOLayerBase() { } void IOLayerBase::setFlow( Flow flo ) { switch ( flo ) { @@ -139,12 +141,15 @@ void IOLayerBase::setSpeed( Speed sp ) { case Baud_4800: index = id_baud_4800; break; case Baud_2400: index = id_baud_2400; break; + case Baud_1200: + index = id_baud_1200; + break; default: case Baud_9600: index = id_baud_9600; break; } m_speedBox->setCurrentItem(index ); @@ -220,12 +225,15 @@ IOLayerBase::Speed IOLayerBase::speed()const{ case id_baud_4800: return Baud_4800; break; case id_baud_2400: return Baud_2400; break; + case id_baud_1200: + return Baud_1200; + break; default: case id_baud_9600: return Baud_9600; break; } } |