summaryrefslogtreecommitdiff
path: root/noncore
authorjosef <josef>2002-10-14 18:28:19 (UTC)
committer josef <josef>2002-10-14 18:28:19 (UTC)
commit5ada62902971fa9ac34e831259442535299f7ef6 (patch) (unidiff)
tree445974a3569d35267cb7542aefd5235ff14536dd /noncore
parente789f01a4fc6ada39809d40f8c44a6f6deec7785 (diff)
downloadopie-5ada62902971fa9ac34e831259442535299f7ef6.zip
opie-5ada62902971fa9ac34e831259442535299f7ef6.tar.gz
opie-5ada62902971fa9ac34e831259442535299f7ef6.tar.bz2
- add modem layer so dialer can be used within Connect
Diffstat (limited to 'noncore') (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/opie-console/default.cpp5
-rw-r--r--noncore/apps/opie-console/dialer.cpp3
-rw-r--r--noncore/apps/opie-console/dialer.h2
-rw-r--r--noncore/apps/opie-console/io_modem.cpp8
4 files changed, 13 insertions, 5 deletions
diff --git a/noncore/apps/opie-console/default.cpp b/noncore/apps/opie-console/default.cpp
index ce5c870..5c1c05a 100644
--- a/noncore/apps/opie-console/default.cpp
+++ b/noncore/apps/opie-console/default.cpp
@@ -3,2 +3,3 @@
3#include "io_bt.h" 3#include "io_bt.h"
4#include "io_modem.h"
4#include "filetransfer.h" 5#include "filetransfer.h"
@@ -47,2 +48,5 @@ extern "C" {
47 } 48 }
49 IOLayer* newModemLayer( const Profile& prof ) {
50 return new IOModem( prof );
51 }
48 52
@@ -87,2 +91,3 @@ Default::Default( MetaFactory* fact ) {
87 fact->addIOLayerFactory( "bt", QObject::tr("Bluetooth"), newBTLayer ); 91 fact->addIOLayerFactory( "bt", QObject::tr("Bluetooth"), newBTLayer );
92 fact->addIOLayerFactory( "modem", QObject::tr("Modem"), newModemLayer );
88 93
diff --git a/noncore/apps/opie-console/dialer.cpp b/noncore/apps/opie-console/dialer.cpp
index d20965a..90e2b6c 100644
--- a/noncore/apps/opie-console/dialer.cpp
+++ b/noncore/apps/opie-console/dialer.cpp
@@ -47,3 +47,3 @@
47Dialer::Dialer(const Profile& profile, QWidget *parent, const char *name) 47Dialer::Dialer(const Profile& profile, QWidget *parent, const char *name)
48: QDialog(parent, name, true) 48: QDialog(parent, name, true), m_profile(profile)
49{ 49{
@@ -53,3 +53,2 @@ Dialer::Dialer(const Profile& profile, QWidget *parent, const char *name)
53 usercancel = 0; 53 usercancel = 0;
54 m_profile = profile;
55 54
diff --git a/noncore/apps/opie-console/dialer.h b/noncore/apps/opie-console/dialer.h
index 8c83bb6..09cc5ca 100644
--- a/noncore/apps/opie-console/dialer.h
+++ b/noncore/apps/opie-console/dialer.h
@@ -46,3 +46,3 @@ class Dialer : public QDialog
46 int usercancel; 46 int usercancel;
47 Profile m_profile; 47 const Profile& m_profile;
48}; 48};
diff --git a/noncore/apps/opie-console/io_modem.cpp b/noncore/apps/opie-console/io_modem.cpp
index 56147d8..28d1722 100644
--- a/noncore/apps/opie-console/io_modem.cpp
+++ b/noncore/apps/opie-console/io_modem.cpp
@@ -22,6 +22,10 @@ void IOModem::close() {
22bool IOModem::open() { 22bool IOModem::open() {
23 qWarning("IOModem::open"); 23 bool ret = IOSerial::open();
24 IOSerial::open(); 24 if(!ret) return false;
25
26 qWarning("IOModem::open continues...");
25 27
26 Dialer d(m_profile); 28 Dialer d(m_profile);
29 qWarning("dialer created");
30
27 int result = d.exec(); 31 int result = d.exec();