summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/modemconfigwidget.cpp
Side-by-side diff
Diffstat (limited to 'noncore/apps/opie-console/modemconfigwidget.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/opie-console/modemconfigwidget.cpp23
1 files changed, 12 insertions, 11 deletions
diff --git a/noncore/apps/opie-console/modemconfigwidget.cpp b/noncore/apps/opie-console/modemconfigwidget.cpp
index 0968f62..ac62e45 100644
--- a/noncore/apps/opie-console/modemconfigwidget.cpp
+++ b/noncore/apps/opie-console/modemconfigwidget.cpp
@@ -4,11 +4,10 @@
#include <qlineedit.h>
#include <qpushbutton.h>
#include <qhbox.h>
-#include "iolayerbase.h"
+
#include "modemconfigwidget.h"
-#include "atconfigdialog.h"
#include "dialdialog.h"
namespace {
void setCurrent( const QString& str, QComboBox* bo ) {
@@ -23,10 +22,9 @@ namespace {
bo->setCurrentItem( b );
}
}
-ModemConfigWidget::ModemConfigWidget( const QString& name,
- QWidget* parent,
+ModemConfigWidget::ModemConfigWidget( const QString& name, QWidget* parent,
const char* na )
: ProfileDialogConnectionWidget( name, parent, na ) {
m_lay = new QVBoxLayout(this );
@@ -59,9 +57,9 @@ ModemConfigWidget::ModemConfigWidget( const QString& name,
m_deviceCmb->insertItem( "/dev/ttyS0" );
m_deviceCmb->insertItem( "/dev/ttyS1" );
m_deviceCmb->insertItem( "/dev/ttyS2" );
-
+ atConf = new ATConfigDialog( this, "ATConfig", true );
}
ModemConfigWidget::~ModemConfigWidget() {
@@ -109,12 +107,16 @@ void ModemConfigWidget::load( const Profile& prof ) {
m_base->setSpeed(IOLayerBase::Baud_9600 );
break;
}
- if ( prof.readEntry("Device").isEmpty() ) return;
+ if ( prof.readEntry( "Device" ).isEmpty() ) {
+ return;
+ }
setCurrent( prof.readEntry("Device"), m_deviceCmb );
+ atConf->readConfig( prof );
}
+
/*
* save speed,
* flow,
* parity
@@ -169,13 +171,12 @@ void ModemConfigWidget::save( Profile& prof ) {
prof.writeEntry("Number", m_telNumber->text() );
}
void ModemConfigWidget::slotAT() {
- ATConfigDialog conf( this, "ATConfig", true );
- conf.readConfig();
- conf.showMaximized();
- if ( conf.exec() == QDialog::Accepted ) {
- conf.writeConfig();
+ // ATConfigDialog conf( this, "ATConfig", true );
+ atConf->showMaximized();
+ if ( atConf->exec() == QDialog::Accepted ) {
+ // atConf->writeConfig();
}
}
void ModemConfigWidget::slotDial() {