summaryrefslogtreecommitdiff
Side-by-side diff
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
@@ -102,12 +102,15 @@ void BTConfigWidget::load( const Profile& prof ) {
case 4800:
m_base->setSpeed( IOLayerBase::Baud_4800 );
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;
}
@@ -166,12 +169,15 @@ void BTConfigWidget::save( Profile& prof ) {
case IOLayerBase::Baud_4800:
speed = 4800;
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
@@ -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;
}
}
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
@@ -20,13 +20,14 @@ public:
enum Speed{ Baud_115200,
Baud_57600,
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);
~IOLayerBase();
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
@@ -81,12 +81,15 @@ void IrdaConfigWidget::load( const Profile& prof ) {
case 4800:
m_base->setSpeed( IOLayerBase::Baud_4800 );
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;
}
@@ -145,12 +148,15 @@ void IrdaConfigWidget::save( Profile& prof ) {
case IOLayerBase::Baud_4800:
speed = 4800;
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
@@ -113,12 +113,14 @@ void ModemConfigWidget::load( const Profile& prof ) {
case 4800:
m_base->setSpeed( IOLayerBase::Baud_4800 );
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;
}
@@ -206,12 +208,15 @@ void ModemConfigWidget::save( Profile& prof ) {
case IOLayerBase::Baud_4800:
speed = 4800;
break;
case IOLayerBase::Baud_2400:
speed = 2400;
break;
+ case IOLayerBase::Baud_1200:
+ speed = 1200;
+ break;
}
switch( m_base->data() ) {
case IOLayerBase::Data_Five:
data = 5;
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
@@ -85,12 +85,15 @@ void SerialConfigWidget::load( const Profile& prof ) {
case 4800:
m_base->setSpeed( IOLayerBase::Baud_4800 );
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;
}
@@ -166,12 +169,15 @@ void SerialConfigWidget::save( Profile& prof ) {
case IOLayerBase::Baud_4800:
speed = 4800;
break;
case IOLayerBase::Baud_2400:
speed = 2400;
break;
+ case IOLayerBase::Baud_1200:
+ speed = 1200;
+ break;
default:
case IOLayerBase::Baud_9600:
speed = 9600;
break;
}