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.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/noncore/apps/opie-console/io_modem.cpp b/noncore/apps/opie-console/io_modem.cpp index eb0aeb7..56147d8 100644 --- a/noncore/apps/opie-console/io_modem.cpp +++ b/noncore/apps/opie-console/io_modem.cpp | |||
@@ -1,34 +1,35 @@ | |||
1 | 1 | ||
2 | #include "io_modem.h" | 2 | #include "io_modem.h" |
3 | 3 | ||
4 | #include "dialer.h" | 4 | #include "dialer.h" |
5 | 5 | ||
6 | IOModem:IOModem( const Profile &config ) : IOSerial( config ) { | 6 | IOModem::IOModem( const Profile &profile ) |
7 | m_config = config; | 7 | : IOSerial( profile ), m_profile( profile ) { |
8 | } | 8 | } |
9 | 9 | ||
10 | 10 | ||
11 | IOModem::~IOModem() { | 11 | IOModem::~IOModem() { |
12 | 12 | ||
13 | } | 13 | } |
14 | 14 | ||
15 | 15 | ||
16 | void IOModem::close() { | 16 | void IOModem::close() { |
17 | 17 | ||
18 | IOSerial::close(); | 18 | IOSerial::close(); |
19 | 19 | ||
20 | } | 20 | } |
21 | 21 | ||
22 | bool IOModem::open() { | 22 | bool IOModem::open() { |
23 | qWarning("IOModem::open"); | ||
23 | IOSerial::open(); | 24 | IOSerial::open(); |
24 | 25 | ||
25 | Dialer d(m_profile); | 26 | Dialer d(m_profile); |
26 | int result = d.exec(); | 27 | int result = d.exec(); |
27 | if(result == QDialog::Accepted) | 28 | if(result == QDialog::Accepted) |
28 | { | 29 | { |
29 | return true; | 30 | return true; |
30 | } | 31 | } |
31 | else return false; | 32 | else return false; |
32 | } | 33 | } |
33 | 34 | ||
34 | void IOModem::reload( const Profile &config ) { | 35 | void IOModem::reload( const Profile &config ) { |
@@ -59,15 +60,16 @@ void IOModem::reload( const Profile &config ) { | |||
59 | m_multiLineUntag = config.readBoolEntry("MultiLineUntag", MODEM_DEFAULT_MULTI_LINE_UNTAG ); | 60 | m_multiLineUntag = config.readBoolEntry("MultiLineUntag", MODEM_DEFAULT_MULTI_LINE_UNTAG ); |
60 | } | 61 | } |
61 | 62 | ||
62 | 63 | ||
63 | QString IOModem::identifier() const { | 64 | QString IOModem::identifier() const { |
64 | return "modem"; | 65 | return "modem"; |
65 | } | 66 | } |
66 | 67 | ||
67 | QString IOModem::name() const { | 68 | QString IOModem::name() const { |
68 | return "Modem IO Layer"; | 69 | return "Modem IO Layer"; |
69 | } | 70 | } |
70 | 71 | ||
71 | void IOIrda::slotExited(OProcess* proc ){ | 72 | void IOModem::slotExited(OProcess* proc ){ |
72 | close(); | 73 | close(); |
73 | } | 74 | } |
75 | |||