author | josef <josef> | 2002-10-20 09:48:21 (UTC) |
---|---|---|
committer | josef <josef> | 2002-10-20 09:48:21 (UTC) |
commit | 940ba90ed4375f79b6a4934d290abf83980b77ad (patch) (unidiff) | |
tree | c455e88ce9fe99ef79048e3f228b7f4551652537 /noncore/apps/opie-console/atconfigdialog.cpp | |
parent | e2694c5aedb3697a373e363cebe72cddb3114a8f (diff) | |
download | opie-940ba90ed4375f79b6a4934d290abf83980b77ad.zip opie-940ba90ed4375f79b6a4934d290abf83980b77ad.tar.gz opie-940ba90ed4375f79b6a4934d290abf83980b77ad.tar.bz2 |
Please review!
- change modem default commands because we don't interpret ~ and friends
(minicom does AFAIK)
- disable unused AT settings for now
- when cancelling dialing, and we didn't yet get a single byte from the modem,
don't hangup
Diffstat (limited to 'noncore/apps/opie-console/atconfigdialog.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/atconfigdialog.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/atconfigdialog.cpp b/noncore/apps/opie-console/atconfigdialog.cpp index 87a08f6..5c02692 100644 --- a/noncore/apps/opie-console/atconfigdialog.cpp +++ b/noncore/apps/opie-console/atconfigdialog.cpp | |||
@@ -1,23 +1,24 @@ | |||
1 | 1 | ||
2 | #include <qlineedit.h> | 2 | #include <qlineedit.h> |
3 | #include <qspinbox.h> | 3 | #include <qspinbox.h> |
4 | #include <qlayout.h> | 4 | #include <qlayout.h> |
5 | #include <qcombobox.h> | 5 | #include <qcombobox.h> |
6 | #include <qtabwidget.h> | 6 | #include <qtabwidget.h> |
7 | #include <qlabel.h> | 7 | #include <qlabel.h> |
8 | #include <qcombobox.h> | 8 | #include <qcombobox.h> |
9 | #include <qscrollview.h> | 9 | #include <qscrollview.h> |
10 | 10 | ||
11 | #include "atconfigdialog.h" | 11 | #include "atconfigdialog.h" |
12 | #include "io_modem.h" | ||
12 | 13 | ||
13 | 14 | ||
14 | ATConfigDialog::ATConfigDialog( QWidget* parent, const char* name, bool modal, WFlags fl ) | 15 | ATConfigDialog::ATConfigDialog( QWidget* parent, const char* name, bool modal, WFlags fl ) |
15 | : QDialog( parent, name, modal, fl ) { | 16 | : QDialog( parent, name, modal, fl ) { |
16 | 17 | ||
17 | 18 | ||
18 | setCaption( tr( "Dialing parameter setup" ) ); | 19 | setCaption( tr( "Dialing parameter setup" ) ); |
19 | 20 | ||
20 | QVBoxLayout *layout = new QVBoxLayout( this ); | 21 | QVBoxLayout *layout = new QVBoxLayout( this ); |
21 | QTabWidget *tabWidget = new QTabWidget( this ); | 22 | QTabWidget *tabWidget = new QTabWidget( this ); |
22 | 23 | ||
23 | tabWidget->addTab( tab0( this ), tr("Settings1") ); | 24 | tabWidget->addTab( tab0( this ), tr("Settings1") ); |
@@ -161,24 +162,39 @@ void ATConfigDialog::readConfig( const Profile& config ) { | |||
161 | dialSuf2Line->setText( config.readEntry("DialSuffix2", MODEM_DEFAULT_DIAL_SUFFIX1 ) ); | 162 | dialSuf2Line->setText( config.readEntry("DialSuffix2", MODEM_DEFAULT_DIAL_SUFFIX1 ) ); |
162 | dialPref3Line->setText( config.readEntry("DialPrefix3", MODEM_DEFAULT_DIAL_PREFIX1 ) ); | 163 | dialPref3Line->setText( config.readEntry("DialPrefix3", MODEM_DEFAULT_DIAL_PREFIX1 ) ); |
163 | dialSuf3Line->setText( config.readEntry("DialSuffix3", MODEM_DEFAULT_DIAL_SUFFIX1 ) ); | 164 | dialSuf3Line->setText( config.readEntry("DialSuffix3", MODEM_DEFAULT_DIAL_SUFFIX1 ) ); |
164 | connectLine->setText( config.readEntry("DefaultConnect", MODEM_DEFAULT_CONNECT_STRING ) ); | 165 | connectLine->setText( config.readEntry("DefaultConnect", MODEM_DEFAULT_CONNECT_STRING ) ); |
165 | hangupLine->setText( config.readEntry("HangupString", MODEM_DEFAULT_HANGUP_STRING ) ); | 166 | hangupLine->setText( config.readEntry("HangupString", MODEM_DEFAULT_HANGUP_STRING ) ); |
166 | dialTimeSpin->setValue( config.readNumEntry("DialTime", MODEM_DEFAULT_DIAL_TIME ) ); | 167 | dialTimeSpin->setValue( config.readNumEntry("DialTime", MODEM_DEFAULT_DIAL_TIME ) ); |
167 | delayRedialSpin->setValue( config.readNumEntry("DelayRedial", MODEM_DEFAULT_DELAY_REDIAL ) ); | 168 | delayRedialSpin->setValue( config.readNumEntry("DelayRedial", MODEM_DEFAULT_DELAY_REDIAL ) ); |
168 | numberTriesSpin->setValue( config.readNumEntry("NumberTries", MODEM_DEFAULT_NUMBER_TRIES ) ); | 169 | numberTriesSpin->setValue( config.readNumEntry("NumberTries", MODEM_DEFAULT_NUMBER_TRIES ) ); |
169 | dtrDropTimeSpin->setValue( config.readNumEntry("DTRDRopTime", MODEM_DEFAULT_DTR_DROP_TIME ) ); | 170 | dtrDropTimeSpin->setValue( config.readNumEntry("DTRDRopTime", MODEM_DEFAULT_DTR_DROP_TIME ) ); |
170 | bpsDetectBox->setCurrentItem( config.readBoolEntry("BPSDetect", MODEM_DEFAULT_BPS_DETECT ) ); | 171 | bpsDetectBox->setCurrentItem( config.readBoolEntry("BPSDetect", MODEM_DEFAULT_BPS_DETECT ) ); |
171 | dcdLinesBox->setCurrentItem( config.readBoolEntry("DCDLines", MODEM_DEFAULT_DCD_LINES ) ); | 172 | dcdLinesBox->setCurrentItem( config.readBoolEntry("DCDLines", MODEM_DEFAULT_DCD_LINES ) ); |
172 | multiLineUntagBox->setCurrentItem( config.readBoolEntry("MultiLineUntag", MODEM_DEFAULT_MULTI_LINE_UNTAG ) ); | 173 | multiLineUntagBox->setCurrentItem( config.readBoolEntry("MultiLineUntag", MODEM_DEFAULT_MULTI_LINE_UNTAG ) ); |
174 | |||
175 | // Not implemented yet | ||
176 | resetStringLine->setEnabled(false); | ||
177 | dialSuf1Line->setEnabled(false); | ||
178 | dialPref2Line->setEnabled(false); | ||
179 | dialSuf2Line->setEnabled(false); | ||
180 | dialPref3Line->setEnabled(false); | ||
181 | dialSuf3Line->setEnabled(false); | ||
182 | dialTimeSpin->setEnabled(false); | ||
183 | delayRedialSpin->setEnabled(false); | ||
184 | numberTriesSpin->setEnabled(false); | ||
185 | dtrDropTimeSpin->setEnabled(false); | ||
186 | bpsDetectBox->setEnabled(false); | ||
187 | dcdLinesBox->setEnabled(false); | ||
188 | multiLineUntagBox->setEnabled(false); | ||
173 | } | 189 | } |
174 | 190 | ||
175 | void ATConfigDialog::writeConfig( Profile& config ) { | 191 | void ATConfigDialog::writeConfig( Profile& config ) { |
176 | 192 | ||
177 | config.writeEntry( "InitString", initStringLine->text() ); | 193 | config.writeEntry( "InitString", initStringLine->text() ); |
178 | config.writeEntry( "ResetString", resetStringLine->text() ); | 194 | config.writeEntry( "ResetString", resetStringLine->text() ); |
179 | config.writeEntry( "DialPrefix1", dialPref1Line->text() ); | 195 | config.writeEntry( "DialPrefix1", dialPref1Line->text() ); |
180 | config.writeEntry( "DialSuffix1", dialSuf1Line->text() ); | 196 | config.writeEntry( "DialSuffix1", dialSuf1Line->text() ); |
181 | config.writeEntry( "DialPrefix2", dialPref2Line->text() ); | 197 | config.writeEntry( "DialPrefix2", dialPref2Line->text() ); |
182 | config.writeEntry( "DialSuffix2", dialSuf2Line->text() ); | 198 | config.writeEntry( "DialSuffix2", dialSuf2Line->text() ); |
183 | config.writeEntry( "DialPrefix3", dialPref3Line->text() ); | 199 | config.writeEntry( "DialPrefix3", dialPref3Line->text() ); |
184 | config.writeEntry( "DialSuffix3", dialSuf3Line->text() ); | 200 | config.writeEntry( "DialSuffix3", dialSuf3Line->text() ); |