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 | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/noncore/apps/opie-console/io_modem.cpp b/noncore/apps/opie-console/io_modem.cpp index 41febfb..eb0aeb7 100644 --- a/noncore/apps/opie-console/io_modem.cpp +++ b/noncore/apps/opie-console/io_modem.cpp | |||
@@ -4,70 +4,70 @@ | |||
4 | #include "dialer.h" | 4 | #include "dialer.h" |
5 | 5 | ||
6 | IOModem:IOModem( const Profile &config ) : IOSerial( config ) { | 6 | IOModem:IOModem( const Profile &config ) : IOSerial( config ) { |
7 | m_config = config; | 7 | m_config = config; |
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 | IOSerial::open(); | 23 | IOSerial::open(); |
24 | 24 | ||
25 | Dialer d(m_profile); | 25 | Dialer d(m_profile); |
26 | int result = d.exec(); | 26 | int result = d.exec(); |
27 | if(result == QDialog::Accepted) | 27 | if(result == QDialog::Accepted) |
28 | { | 28 | { |
29 | return true; | 29 | return true; |
30 | } | 30 | } |
31 | else return false; | 31 | else return false; |
32 | } | 32 | } |
33 | 33 | ||
34 | void IOModem::reload( const Profile &config ) { | 34 | void IOModem::reload( const Profile &config ) { |
35 | m_device = config.readEntry("Device", MODEM_DEFAULT_DEVICE); | 35 | m_device = config.readEntry("Device", MODEM_DEFAULT_DEVICE); |
36 | m_baud = config.readNumEntry("Baud", MODEM_DEFAULT_BAUD); | 36 | m_baud = config.readNumEntry("Baud", MODEM_DEFAULT_BAUD); |
37 | m_parity = config.readNumEntry("Parity", MODEM_DEFAULT_PARITY); | 37 | m_parity = config.readNumEntry("Parity", MODEM_DEFAULT_PARITY); |
38 | m_dbits = config.readNumEntry("DataBits", MODEM_DEFAULT_DBITS); | 38 | m_dbits = config.readNumEntry("DataBits", MODEM_DEFAULT_DBITS); |
39 | m_sbits = config.readNumEntry("StopBits", MODEM_DEFAULT_SBITS); | 39 | m_sbits = config.readNumEntry("StopBits", MODEM_DEFAULT_SBITS); |
40 | m_flow = config.readNumEntry("Flow", MODEM_DEFAULT_FLOW); | 40 | m_flow = config.readNumEntry("Flow", MODEM_DEFAULT_FLOW); |
41 | 41 | ||
42 | m_initString = config.readEntry("InitString", MODEM_DEFAULT_INIT_STRING ); | 42 | m_initString = config.readEntry("InitString", MODEM_DEFAULT_INIT_STRING ); |
43 | m_resetString = config.readEntry("ResetString", MODEM_DEFAULT_RESET_STRING ); | 43 | m_resetString = config.readEntry("ResetString", MODEM_DEFAULT_RESET_STRING ); |
44 | m_dialPref1 = config.readEntry("DialPrefix1", MODEM_DEFAULT_DIAL_PREFIX1 ); | 44 | m_dialPref1 = config.readEntry("DialPrefix1", MODEM_DEFAULT_DIAL_PREFIX1 ); |
45 | m_dialSuf1 = config.readEntry("DialSuffix1", MODEM_DEFAULT_DIAL_SUFFIX1 ); | 45 | m_dialSuf1 = config.readEntry("DialSuffix1", MODEM_DEFAULT_DIAL_SUFFIX1 ); |
46 | m_dialPref2 = config.readEntry("DialPrefix2", MODEM_DEFAULT_DIAL_PREFIX1 ); | 46 | m_dialPref2 = config.readEntry("DialPrefix2", MODEM_DEFAULT_DIAL_PREFIX1 ); |
47 | m_dialSuf2 = config.readEntry("DialSuffix2", MODEM_DEFAULT_DIAL_SUFFIX1 ); | 47 | m_dialSuf2 = config.readEntry("DialSuffix2", MODEM_DEFAULT_DIAL_SUFFIX1 ); |
48 | m_dialPref3 = config.readEntry("DialPrefix3", MODEM_DEFAULT_DIAL_PREFIX1 ); | 48 | m_dialPref3 = config.readEntry("DialPrefix3", MODEM_DEFAULT_DIAL_PREFIX1 ); |
49 | m_dialSuf3 = config.readEntry("DialSuffix3", MODEM_DEFAULT_DIAL_SUFFIX1 ); | 49 | m_dialSuf3 = config.readEntry("DialSuffix3", MODEM_DEFAULT_DIAL_SUFFIX1 ); |
50 | m_connect = config.readEntry("DefaultConnect" MODEM_DEFAULT_CONNECT_STRING ); | 50 | m_connect = config.readEntry("DefaultConnect" MODEM_DEFAULT_CONNECT_STRING ); |
51 | m_hangup = config.readEntry("HangupString", MODEM_DEFAULT_HANGUP_STRING ); | 51 | m_hangup = config.readEntry("HangupString", MODEM_DEFAULT_HANGUP_STRING ); |
52 | m_cancel = config.readEntry("CancelString" MODEM_DEFAULT_CANCEL_STRING ); | 52 | m_cancel = config.readEntry("CancelString", MODEM_DEFAULT_CANCEL_STRING ); |
53 | m_dialTime = config.readEntry("DialTime" MODEM_DEFAULT_DIAL_TIME ); | 53 | m_dialTime = config.readNumEntry("DialTime", MODEM_DEFAULT_DIAL_TIME ); |
54 | m_delayRedial = config.readEntry("DelayRedial", MODEM_DEFAULT_DELAY_REDIAL ); | 54 | m_delayRedial = config.readNumEntry("DelayRedial", MODEM_DEFAULT_DELAY_REDIAL ); |
55 | m_numberTries = config.readEntry("NumberTries", MODEM_DEFAULT_NUMBER_TRIES ); | 55 | m_numberTries = config.readNumEntry("NumberTries", MODEM_DEFAULT_NUMBER_TRIES ); |
56 | m_dtrDropTime = config.readEntry("DTRDRopTime", MODEM_DEFAULT_DTR_DROP_TIME ); | 56 | m_dtrDropTime = config.readNumEntry("DTRDRopTime", MODEM_DEFAULT_DTR_DROP_TIME ); |
57 | m_bpsDetect = config.readEntry("BPSDetect", MODEM_DEFAULT_BPS_DETECT ); | 57 | m_bpsDetect = config.readBoolEntry("BPSDetect", MODEM_DEFAULT_BPS_DETECT ); |
58 | m_dcdLines = config.readEntry("DCDLines", MODEM_DEFAULT_DCD_LINES ); | 58 | m_dcdLines = config.readBoolEntry("DCDLines", MODEM_DEFAULT_DCD_LINES ); |
59 | m_multiLineUntag = config.readEntry("MultiLineUntag", MODEM_DEFAULT_MULTI_LINE_UNTAG ); | 59 | m_multiLineUntag = config.readBoolEntry("MultiLineUntag", MODEM_DEFAULT_MULTI_LINE_UNTAG ); |
60 | } | 60 | } |
61 | 61 | ||
62 | 62 | ||
63 | QString IOModem::identifier() const { | 63 | QString IOModem::identifier() const { |
64 | return "modem"; | 64 | return "modem"; |
65 | } | 65 | } |
66 | 66 | ||
67 | QString IOModem::name() const { | 67 | QString IOModem::name() const { |
68 | return "Modem IO Layer"; | 68 | return "Modem IO Layer"; |
69 | } | 69 | } |
70 | 70 | ||
71 | void IOIrda::slotExited(OProcess* proc ){ | 71 | void IOIrda::slotExited(OProcess* proc ){ |
72 | close(); | 72 | close(); |
73 | } | 73 | } |