From fb99aec5215da635abfa28288d170f110114bba3 Mon Sep 17 00:00:00 2001 From: josef Date: Tue, 15 Oct 2002 21:10:29 +0000 Subject: - io_modem must keep copy of profile, otherwise it crashes (now it works - doh!) - try to use key/value pairs for dialing where currently possible (init string and dial sequence) - when editing telephone number, try to read in, including special chars stripping (-, /, whitespace) using QRegExp --- (limited to 'noncore/apps/opie-console/dialer.cpp') diff --git a/noncore/apps/opie-console/dialer.cpp b/noncore/apps/opie-console/dialer.cpp index 90e2b6c..89a0e8d 100644 --- a/noncore/apps/opie-console/dialer.cpp +++ b/noncore/apps/opie-console/dialer.cpp @@ -125,7 +125,8 @@ void Dialer::trydial(const QString& number) if(state != state_cancel) { switchState(state_init); - send("ATZ"); + //send("ATZ"); + send(m_profile.readEntry("InitString")); QString response2 = receive(); } @@ -149,7 +150,7 @@ void Dialer::trydial(const QString& number) { switchState(state_dialing); - send(QString("ATDT %1").arg(number)); + send(QString("%1 %2").arg(m_profile.readEntry("DialPrefix1")).arg(number)); QString response5 = receive(); } -- cgit v0.9.0.2