summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/io_modem.cpp
authorjosef <josef>2002-10-13 15:52:00 (UTC)
committer josef <josef>2002-10-13 15:52:00 (UTC)
commitcb816d85c54242f8958ff77fba334b43be0dcb3d (patch) (side-by-side diff)
tree6764b80acf8789c410cdc59cb308f3f91fcd9083 /noncore/apps/opie-console/io_modem.cpp
parent6a9726437a59cf3b18bf57d6e20fb2dfaaa2fc34 (diff)
downloadopie-cb816d85c54242f8958ff77fba334b43be0dcb3d.zip
opie-cb816d85c54242f8958ff77fba334b43be0dcb3d.tar.gz
opie-cb816d85c54242f8958ff77fba334b43be0dcb3d.tar.bz2
- make dialer accessible transparently when opening a modem session
- implement sending data (currently written to stdout for debug purpose)
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);