-rw-r--r-- | noncore/apps/opie-console/btconfigwidget.cpp | 6 | ||||
-rw-r--r-- | noncore/apps/opie-console/iolayerbase.cpp | 10 | ||||
-rw-r--r-- | noncore/apps/opie-console/iolayerbase.h | 3 | ||||
-rw-r--r-- | noncore/apps/opie-console/irdaconfigwidget.cpp | 6 | ||||
-rw-r--r-- | noncore/apps/opie-console/modemconfigwidget.cpp | 5 | ||||
-rw-r--r-- | noncore/apps/opie-console/serialconfigwidget.cpp | 6 |
6 files changed, 34 insertions, 2 deletions
diff --git a/noncore/apps/opie-console/btconfigwidget.cpp b/noncore/apps/opie-console/btconfigwidget.cpp index e1ff18a..7f82e06 100644 --- a/noncore/apps/opie-console/btconfigwidget.cpp +++ b/noncore/apps/opie-console/btconfigwidget.cpp @@ -106,4 +106,7 @@ void BTConfigWidget::load( const Profile& prof ) { m_base->setSpeed( IOLayerBase::Baud_2400 ); break; + case 1200: + m_base->setSpeed( IOLayerBase::Baud_1200 ); + break; case 9600: default: @@ -170,4 +173,7 @@ void BTConfigWidget::save( Profile& prof ) { speed = 2400; break; + case IOLayerBase::Baud_1200; + speed = 1200; + break; default: case IOLayerBase::Baud_9600: 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 @@ -27,5 +27,6 @@ namespace { id_baud_9600, id_baud_4800, - id_baud_2400 + id_baud_2400, + id_baud_1200 }; @@ -91,4 +92,5 @@ IOLayerBase::IOLayerBase( QWidget* par, const char* name ) 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() { @@ -143,4 +145,7 @@ void IOLayerBase::setSpeed( Speed sp ) { index = id_baud_2400; break; + case Baud_1200: + index = id_baud_1200; + break; default: case Baud_9600: @@ -224,4 +229,7 @@ IOLayerBase::Speed IOLayerBase::speed()const{ return Baud_2400; break; + case id_baud_1200: + return Baud_1200; + break; default: case id_baud_9600: diff --git a/noncore/apps/opie-console/iolayerbase.h b/noncore/apps/opie-console/iolayerbase.h index 214a35c..7d304a1 100644 --- a/noncore/apps/opie-console/iolayerbase.h +++ b/noncore/apps/opie-console/iolayerbase.h @@ -24,5 +24,6 @@ public: Baud_9600, Baud_4800, - Baud_2400 }; + Baud_2400, + Baud_1200 }; enum Data { Data_Five =5, Data_Six =6, Data_Seven=7, Data_Eight=8 }; enum Stop { Stop_One =1, Stop_OnePointFive=15, Stop_Two=2 }; diff --git a/noncore/apps/opie-console/irdaconfigwidget.cpp b/noncore/apps/opie-console/irdaconfigwidget.cpp index 4ee770d..713862d 100644 --- a/noncore/apps/opie-console/irdaconfigwidget.cpp +++ b/noncore/apps/opie-console/irdaconfigwidget.cpp @@ -85,4 +85,7 @@ void IrdaConfigWidget::load( const Profile& prof ) { m_base->setSpeed( IOLayerBase::Baud_2400 ); break; + case 1200: + m_base->setSpeed( IOLayerBase::Baud_1200 ); + break; case 9600: default: @@ -149,4 +152,7 @@ void IrdaConfigWidget::save( Profile& prof ) { speed = 2400; break; + case IOLayerBase::Baud_1200: + speed = 2400; + break; default: case IOLayerBase::Baud_9600: diff --git a/noncore/apps/opie-console/modemconfigwidget.cpp b/noncore/apps/opie-console/modemconfigwidget.cpp index 90d0b5b..b2f5c68 100644 --- a/noncore/apps/opie-console/modemconfigwidget.cpp +++ b/noncore/apps/opie-console/modemconfigwidget.cpp @@ -117,4 +117,6 @@ void ModemConfigWidget::load( const Profile& prof ) { m_base->setSpeed( IOLayerBase::Baud_2400 ); break; + case 1200: + m_base->setSpeed( IOLayerBase::Baud_1200 ); case 9600: default: @@ -210,4 +212,7 @@ void ModemConfigWidget::save( Profile& prof ) { speed = 2400; break; + case IOLayerBase::Baud_1200: + speed = 1200; + break; } diff --git a/noncore/apps/opie-console/serialconfigwidget.cpp b/noncore/apps/opie-console/serialconfigwidget.cpp index 5f3547a..c4c9c99 100644 --- a/noncore/apps/opie-console/serialconfigwidget.cpp +++ b/noncore/apps/opie-console/serialconfigwidget.cpp @@ -89,4 +89,7 @@ void SerialConfigWidget::load( const Profile& prof ) { m_base->setSpeed( IOLayerBase::Baud_2400 ); break; + case 1200: + m_base->setSpeed( IOLayerBase::Baud_1200 ); + break; case 9600: default: @@ -170,4 +173,7 @@ void SerialConfigWidget::save( Profile& prof ) { speed = 2400; break; + case IOLayerBase::Baud_1200: + speed = 1200; + break; default: case IOLayerBase::Baud_9600: |