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
@@ -104,8 +104,11 @@ void BTConfigWidget::load( const Profile& prof ) {
break;
case 2400:
m_base->setSpeed( IOLayerBase::Baud_2400 );
break;
+ case 1200:
+ m_base->setSpeed( IOLayerBase::Baud_1200 );
+ break;
case 9600:
default:
m_base->setSpeed(IOLayerBase::Baud_9600 );
break;
@@ -168,8 +171,11 @@ void BTConfigWidget::save( Profile& prof ) {
break;
case IOLayerBase::Baud_2400:
speed = 2400;
break;
+ case IOLayerBase::Baud_1200;
+ speed = 1200;
+ break;
default:
case IOLayerBase::Baud_9600:
speed = 9600;
break;
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
@@ -25,9 +25,10 @@ namespace {
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,
@@ -89,8 +90,9 @@ IOLayerBase::IOLayerBase( QWidget* par, const char* name )
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() {
}
@@ -141,8 +143,11 @@ void IOLayerBase::setSpeed( Speed sp ) {
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;
@@ -222,8 +227,11 @@ IOLayerBase::Speed IOLayerBase::speed()const{
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;
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
@@ -22,9 +22,10 @@ public:
Baud_38400,
Baud_19200,
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 };
IOLayerBase( QWidget* base, const char* name = 0l);
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
@@ -83,8 +83,11 @@ void IrdaConfigWidget::load( const Profile& prof ) {
break;
case 2400:
m_base->setSpeed( IOLayerBase::Baud_2400 );
break;
+ case 1200:
+ m_base->setSpeed( IOLayerBase::Baud_1200 );
+ break;
case 9600:
default:
m_base->setSpeed(IOLayerBase::Baud_9600 );
break;
@@ -147,8 +150,11 @@ void IrdaConfigWidget::save( Profile& prof ) {
break;
case IOLayerBase::Baud_2400:
speed = 2400;
break;
+ case IOLayerBase::Baud_1200:
+ speed = 2400;
+ break;
default:
case IOLayerBase::Baud_9600:
speed = 9600;
break;
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
@@ -115,8 +115,10 @@ void ModemConfigWidget::load( const Profile& prof ) {
break;
case 2400:
m_base->setSpeed( IOLayerBase::Baud_2400 );
break;
+ case 1200:
+ m_base->setSpeed( IOLayerBase::Baud_1200 );
case 9600:
default:
m_base->setSpeed( IOLayerBase::Baud_9600 );
break;
@@ -208,8 +210,11 @@ void ModemConfigWidget::save( Profile& prof ) {
break;
case IOLayerBase::Baud_2400:
speed = 2400;
break;
+ case IOLayerBase::Baud_1200:
+ speed = 1200;
+ break;
}
switch( m_base->data() ) {
case IOLayerBase::Data_Five:
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
@@ -87,8 +87,11 @@ void SerialConfigWidget::load( const Profile& prof ) {
break;
case 2400:
m_base->setSpeed( IOLayerBase::Baud_2400 );
break;
+ case 1200:
+ m_base->setSpeed( IOLayerBase::Baud_1200 );
+ break;
case 9600:
default:
m_base->setSpeed(IOLayerBase::Baud_9600 );
break;
@@ -168,8 +171,11 @@ void SerialConfigWidget::save( Profile& prof ) {
break;
case IOLayerBase::Baud_2400:
speed = 2400;
break;
+ case IOLayerBase::Baud_1200:
+ speed = 1200;
+ break;
default:
case IOLayerBase::Baud_9600:
speed = 9600;
break;