summaryrefslogtreecommitdiff
authorharlekin <harlekin>2004-10-12 21:50:15 (UTC)
committer harlekin <harlekin>2004-10-12 21:50:15 (UTC)
commit52867c8ca21a3bec10eb27c8f698855d8fca320e (patch) (side-by-side diff)
tree4958cca23caa32d85aa78de9c95715b34599f261
parent4eed63767cedb0d96b116c4b9233405ca93e5541 (diff)
downloadopie-52867c8ca21a3bec10eb27c8f698855d8fca320e.zip
opie-52867c8ca21a3bec10eb27c8f698855d8fca320e.tar.gz
opie-52867c8ca21a3bec10eb27c8f698855d8fca320e.tar.bz2
also make 1200 baud connection possible
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/btconfigwidget.cpp6
-rw-r--r--noncore/apps/opie-console/iolayerbase.cpp10
-rw-r--r--noncore/apps/opie-console/iolayerbase.h3
-rw-r--r--noncore/apps/opie-console/irdaconfigwidget.cpp6
-rw-r--r--noncore/apps/opie-console/modemconfigwidget.cpp5
-rw-r--r--noncore/apps/opie-console/serialconfigwidget.cpp6
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
@@ -107,2 +107,5 @@ void BTConfigWidget::load( const Profile& prof ) {
break;
+ case 1200:
+ m_base->setSpeed( IOLayerBase::Baud_1200 );
+ break;
case 9600:
@@ -171,2 +174,5 @@ void BTConfigWidget::save( Profile& prof ) {
break;
+ case IOLayerBase::Baud_1200;
+ speed = 1200;
+ break;
default:
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
@@ -28,3 +28,4 @@ namespace {
id_baud_4800,
- id_baud_2400
+ id_baud_2400,
+ id_baud_1200
};
@@ -92,2 +93,3 @@ IOLayerBase::IOLayerBase( QWidget* par, const char* name )
m_speedBox->insertItem(tr("2400 baud"), id_baud_2400 );
+ m_speedBox->insertItem(tr("1200 baud"), id_baud_1200 );
};
@@ -144,2 +146,5 @@ void IOLayerBase::setSpeed( Speed sp ) {
break;
+ case Baud_1200:
+ index = id_baud_1200;
+ break;
default:
@@ -225,2 +230,5 @@ IOLayerBase::Speed IOLayerBase::speed()const{
break;
+ case id_baud_1200:
+ return Baud_1200;
+ break;
default:
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
@@ -25,3 +25,4 @@ public:
Baud_4800,
- Baud_2400 };
+ Baud_2400,
+ Baud_1200 };
enum Data { Data_Five =5, Data_Six =6, Data_Seven=7, Data_Eight=8 };
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
@@ -86,2 +86,5 @@ void IrdaConfigWidget::load( const Profile& prof ) {
break;
+ case 1200:
+ m_base->setSpeed( IOLayerBase::Baud_1200 );
+ break;
case 9600:
@@ -150,2 +153,5 @@ void IrdaConfigWidget::save( Profile& prof ) {
break;
+ case IOLayerBase::Baud_1200:
+ speed = 2400;
+ break;
default:
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
@@ -118,2 +118,4 @@ void ModemConfigWidget::load( const Profile& prof ) {
break;
+ case 1200:
+ m_base->setSpeed( IOLayerBase::Baud_1200 );
case 9600:
@@ -211,2 +213,5 @@ void ModemConfigWidget::save( Profile& prof ) {
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
@@ -90,2 +90,5 @@ void SerialConfigWidget::load( const Profile& prof ) {
break;
+ case 1200:
+ m_base->setSpeed( IOLayerBase::Baud_1200 );
+ break;
case 9600:
@@ -171,2 +174,5 @@ void SerialConfigWidget::save( Profile& prof ) {
break;
+ case IOLayerBase::Baud_1200:
+ speed = 1200;
+ break;
default: