-rw-r--r-- | noncore/apps/opie-console/atconfigdialog.cpp | 1 | ||||
-rw-r--r-- | noncore/apps/opie-console/dialdialog.cpp | 1 | ||||
-rw-r--r-- | noncore/apps/opie-console/dialer.cpp | 26 | ||||
-rw-r--r-- | noncore/apps/opie-console/io_layer.h | 6 | ||||
-rw-r--r-- | noncore/apps/opie-console/io_modem.h | 2 | ||||
-rw-r--r-- | noncore/apps/opie-console/io_serial.cpp | 6 | ||||
-rw-r--r-- | noncore/apps/opie-console/modemconfigwidget.cpp | 9 | ||||
-rw-r--r-- | noncore/apps/opie-console/profileeditordialog.cpp | 4 |
8 files changed, 30 insertions, 25 deletions
diff --git a/noncore/apps/opie-console/atconfigdialog.cpp b/noncore/apps/opie-console/atconfigdialog.cpp index 5c02692..e683ab3 100644 --- a/noncore/apps/opie-console/atconfigdialog.cpp +++ b/noncore/apps/opie-console/atconfigdialog.cpp | |||
@@ -155,2 +155,3 @@ QWidget* ATConfigDialog::tab1( QWidget* parent ) { | |||
155 | void ATConfigDialog::readConfig( const Profile& config ) { | 155 | void ATConfigDialog::readConfig( const Profile& config ) { |
156 | qWarning("config in atconfigdialog"); | ||
156 | 157 | ||
diff --git a/noncore/apps/opie-console/dialdialog.cpp b/noncore/apps/opie-console/dialdialog.cpp index ac1e1db..b91727b 100644 --- a/noncore/apps/opie-console/dialdialog.cpp +++ b/noncore/apps/opie-console/dialdialog.cpp | |||
@@ -22,2 +22,3 @@ DialDialog::DialDialog( QWidget* parent, const char* name, bool modal, WFlags f | |||
22 | QLabel *textLabel = new QLabel( this ); | 22 | QLabel *textLabel = new QLabel( this ); |
23 | textLabel->setTextFormat( QLabel::RichText ); | ||
23 | textLabel->setText( tr("Enter the number you want to dial. When finished, press ok") ); | 24 | textLabel->setText( tr("Enter the number you want to dial. When finished, press ok") ); |
diff --git a/noncore/apps/opie-console/dialer.cpp b/noncore/apps/opie-console/dialer.cpp index 8524422..67ad10e 100644 --- a/noncore/apps/opie-console/dialer.cpp +++ b/noncore/apps/opie-console/dialer.cpp | |||
@@ -15,2 +15,4 @@ | |||
15 | 15 | ||
16 | #include "io_modem.h" | ||
17 | |||
16 | // State machine: | When an error occurs, we don't have to | 18 | // State machine: | When an error occurs, we don't have to |
@@ -55,5 +57,2 @@ Dialer::Dialer(const Profile& profile, int fd, QWidget *parent, const char *name | |||
55 | 57 | ||
56 | //m_profile.writeEntry("InitString", "ATZ"); | ||
57 | //m_profile.writeEntry("DialPrefix1", "ATDT"); | ||
58 | //m_profile.writeEntry("Termination", "\n"); | ||
59 | 58 | ||
@@ -62,3 +61,2 @@ Dialer::Dialer(const Profile& profile, int fd, QWidget *parent, const char *name | |||
62 | 61 | ||
63 | //fcntl(m_fd, F_SETFL, O_NONBLOCK); | ||
64 | 62 | ||
@@ -91,3 +89,3 @@ void Dialer::setHangupOnly() | |||
91 | usercancel = 1; | 89 | usercancel = 1; |
92 | send("+++ATH\r"); | 90 | send( m_profile.readEntry("HangupString", MODEM_DEFAULT_HANGUP_STRING )+"\r" ); |
93 | } | 91 | } |
@@ -144,6 +142,4 @@ void Dialer::trydial(const QString& number) | |||
144 | { | 142 | { |
145 | qWarning("HangupString " + m_profile.readEntry("HangupString")); | 143 | qWarning("HangupString " + m_profile.readEntry("HangupString", MODEM_DEFAULT_HANGUP_STRING)); |
146 | //send(m_profile.readEntry("HangupString")); | 144 | send(m_profile.readEntry("HangupString", MODEM_DEFAULT_HANGUP_STRING ) + "\r"); |
147 | send("+++ATH\r"); | ||
148 | //send(""); | ||
149 | } | 145 | } |
@@ -153,6 +149,4 @@ void Dialer::trydial(const QString& number) | |||
153 | switchState(state_init); | 149 | switchState(state_init); |
154 | //send("ATZ"); | 150 | // qWarning("Init String " + m_profile.readEntry("InitString") ); |
155 | qWarning("Init String " + m_profile.readEntry("InitString") ); | 151 | send(m_profile.readEntry("InitString",MODEM_DEFAULT_INIT_STRING ) + "\r"); |
156 | // send(m_profile.readEntry("InitString", "AT")); | ||
157 | send("AT\r"); | ||
158 | QString response2 = receive(); | 152 | QString response2 = receive(); |
@@ -189,4 +183,6 @@ void Dialer::trydial(const QString& number) | |||
189 | 183 | ||
190 | send(QString("ATDT %1\r").arg(number)); | 184 | // send(QString("ATDT %1\r").arg(number)); |
191 | // send(QString("%1 %2").arg(m_profile.readEntry("DialPrefix1")).arg(number)); | 185 | send(QString("%1 %2\r").arg(m_profile.readEntry("DialPrefix1", MODEM_DEFAULT_DIAL_PREFIX1 )) |
186 | .arg(number)); | ||
187 | |||
192 | QString response5 = receive(); | 188 | QString response5 = receive(); |
diff --git a/noncore/apps/opie-console/io_layer.h b/noncore/apps/opie-console/io_layer.h index af61099..ed4478b 100644 --- a/noncore/apps/opie-console/io_layer.h +++ b/noncore/apps/opie-console/io_layer.h | |||
@@ -96,3 +96,9 @@ signals: | |||
96 | 96 | ||
97 | |||
97 | virtual void closed(); | 98 | virtual void closed(); |
99 | |||
100 | /* signal emitted for closure of the IOLayer | ||
101 | * for some reasons | ||
102 | */ | ||
103 | virtual void closed(IOLayer*); | ||
98 | public slots: | 104 | public slots: |
diff --git a/noncore/apps/opie-console/io_modem.h b/noncore/apps/opie-console/io_modem.h index 1328706..17228bd 100644 --- a/noncore/apps/opie-console/io_modem.h +++ b/noncore/apps/opie-console/io_modem.h | |||
@@ -15,3 +15,3 @@ | |||
15 | 15 | ||
16 | #define MODEM_DEFAULT_INIT_STRING "ATZ" | 16 | #define MODEM_DEFAULT_INIT_STRING "AT" |
17 | #define MODEM_DEFAULT_RESET_STRING "ATZ~" | 17 | #define MODEM_DEFAULT_RESET_STRING "ATZ~" |
diff --git a/noncore/apps/opie-console/io_serial.cpp b/noncore/apps/opie-console/io_serial.cpp index 03e92dd..ddd4994 100644 --- a/noncore/apps/opie-console/io_serial.cpp +++ b/noncore/apps/opie-console/io_serial.cpp | |||
@@ -168,7 +168,3 @@ void IOSerial::dataArrived() { | |||
168 | return; | 168 | return; |
169 | qWarning("got from layer"); | 169 | |
170 | for (int i = 0; i < len; i++ ) { | ||
171 | printf("%c", array[i] ); | ||
172 | } | ||
173 | printf("\n"); | ||
174 | array.resize( len ); | 170 | array.resize( len ); |
diff --git a/noncore/apps/opie-console/modemconfigwidget.cpp b/noncore/apps/opie-console/modemconfigwidget.cpp index 37eb184..f7fb6f3 100644 --- a/noncore/apps/opie-console/modemconfigwidget.cpp +++ b/noncore/apps/opie-console/modemconfigwidget.cpp | |||
@@ -134,4 +134,5 @@ void ModemConfigWidget::load( const Profile& prof ) { | |||
134 | 134 | ||
135 | 135 | atConf->readConfig( prof ); | |
136 | if ( prof.readEntry( "Device" ).isEmpty() ) { | 136 | if ( prof.readEntry( "Device" ).isEmpty() ) { |
137 | qWarning("device empty!"); | ||
137 | return; | 138 | return; |
@@ -140,3 +141,3 @@ void ModemConfigWidget::load( const Profile& prof ) { | |||
140 | 141 | ||
141 | atConf->readConfig( prof ); | 142 | |
142 | } | 143 | } |
@@ -236,2 +237,6 @@ void ModemConfigWidget::slotAT() { | |||
236 | // ATConfigDialog conf( this, "ATConfig", true ); | 237 | // ATConfigDialog conf( this, "ATConfig", true ); |
238 | // josef/Max I know why don't you create the stuff on the stack | ||
239 | // but making it a TopLevel Dialog and ignoring | ||
240 | // cancel is not fun either... | ||
241 | // what to do? FIXME!!! -zecke | ||
237 | atConf->showMaximized(); | 242 | atConf->showMaximized(); |
diff --git a/noncore/apps/opie-console/profileeditordialog.cpp b/noncore/apps/opie-console/profileeditordialog.cpp index 36daaef..fd04b6b 100644 --- a/noncore/apps/opie-console/profileeditordialog.cpp +++ b/noncore/apps/opie-console/profileeditordialog.cpp | |||
@@ -68,3 +68,3 @@ void ProfileEditorDialog::initUI() | |||
68 | m_svCon->setResizePolicy( QScrollView::AutoOneFit ); | 68 | m_svCon->setResizePolicy( QScrollView::AutoOneFit ); |
69 | m_svCon->setHScrollBarMode( QScrollView::AlwaysOff ); | 69 | //m_svCon->setHScrollBarMode( QScrollView::AlwaysOff ); |
70 | m_svCon->setFrameShape( QFrame::NoFrame ); | 70 | m_svCon->setFrameShape( QFrame::NoFrame ); |
@@ -72,3 +72,3 @@ void ProfileEditorDialog::initUI() | |||
72 | m_svTerm->setResizePolicy( QScrollView::AutoOneFit ); | 72 | m_svTerm->setResizePolicy( QScrollView::AutoOneFit ); |
73 | m_svTerm->setHScrollBarMode( QScrollView::AlwaysOff ); | 73 | //m_svTerm->setHScrollBarMode( QScrollView::AlwaysOff ); |
74 | m_svTerm->setFrameShape( QFrame::NoFrame ); | 74 | m_svTerm->setFrameShape( QFrame::NoFrame ); |