summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/io_modem.cpp
Side-by-side diff
Diffstat (limited to 'noncore/apps/opie-console/io_modem.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/io_modem.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/noncore/apps/opie-console/io_modem.cpp b/noncore/apps/opie-console/io_modem.cpp
index 4d6035d..41febfb 100644
--- a/noncore/apps/opie-console/io_modem.cpp
+++ b/noncore/apps/opie-console/io_modem.cpp
@@ -1,11 +1,13 @@
#include "io_modem.h"
-IOModem:IOModem( const Profile &config ) : IOSerial( config ) {
+#include "dialer.h"
+IOModem:IOModem( const Profile &config ) : IOSerial( config ) {
+ m_config = config;
}
IOModem::~IOModem() {
}
@@ -15,16 +17,21 @@ void IOModem::close() {
IOSerial::close();
}
bool IOModem::open() {
-
-
IOSerial::open();
+ Dialer d(m_profile);
+ int result = d.exec();
+ if(result == QDialog::Accepted)
+ {
+ return true;
+ }
+ else return false;
}
void IOModem::reload( const Profile &config ) {
m_device = config.readEntry("Device", MODEM_DEFAULT_DEVICE);
m_baud = config.readNumEntry("Baud", MODEM_DEFAULT_BAUD);
m_parity = config.readNumEntry("Parity", MODEM_DEFAULT_PARITY);