Diffstat (limited to 'noncore/apps/opie-console/io_irda.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/io_irda.cpp | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/noncore/apps/opie-console/io_irda.cpp b/noncore/apps/opie-console/io_irda.cpp index 38542f5..9d27c85 100644 --- a/noncore/apps/opie-console/io_irda.cpp +++ b/noncore/apps/opie-console/io_irda.cpp | |||
@@ -1,10 +1,6 @@ | |||
1 | #include "io_irda.h" | 1 | #include "io_irda.h" |
2 | 2 | ||
3 | /* OPIE */ | ||
4 | #include <opie2/odebug.h> | ||
5 | using namespace Opie::Core; | ||
6 | |||
7 | IOIrda::IOIrda( const Profile &config ) : IOSerial( config ) { | 3 | IOIrda::IOIrda( const Profile &config ) : IOSerial( config ) { |
8 | m_attach = 0; | 4 | m_attach = 0; |
9 | } | 5 | } |
10 | 6 | ||
@@ -26,9 +22,9 @@ void IOIrda::close() { | |||
26 | bool IOIrda::open() { | 22 | bool IOIrda::open() { |
27 | bool ret; | 23 | bool ret; |
28 | 24 | ||
29 | // irdaattach here | 25 | // irdaattach here |
30 | m_attach = new OProcess(); | 26 | m_attach = new Opie::Core::OProcess(); |
31 | *m_attach << "irattach /dev/ttyS2 -s"; | 27 | *m_attach << "irattach /dev/ttyS2 -s"; |
32 | 28 | ||
33 | connect( m_attach, SIGNAL( processExited(Opie::Core::OProcess*) ), | 29 | connect( m_attach, SIGNAL( processExited(Opie::Core::OProcess*) ), |
34 | this, SLOT( slotExited(Opie::Core::OProcess*) ) ); | 30 | this, SLOT( slotExited(Opie::Core::OProcess*) ) ); |
@@ -36,9 +32,8 @@ bool IOIrda::open() { | |||
36 | if ( m_attach->start() ) { | 32 | if ( m_attach->start() ) { |
37 | ret= IOSerial::open(); | 33 | ret= IOSerial::open(); |
38 | } else { | 34 | } else { |
39 | // emit error!!! | 35 | // emit error!!! |
40 | owarn << "could not attach to device" << oendl; | ||
41 | delete m_attach; | 36 | delete m_attach; |
42 | m_attach = 0l; | 37 | m_attach = 0l; |
43 | } | 38 | } |
44 | return ret; | 39 | return ret; |
@@ -61,20 +56,9 @@ QString IOIrda::identifier() const { | |||
61 | QString IOIrda::name() const { | 56 | QString IOIrda::name() const { |
62 | return "Irda IO Layer"; | 57 | return "Irda IO Layer"; |
63 | } | 58 | } |
64 | 59 | ||
65 | void IOIrda::slotExited(OProcess* proc ){ | 60 | void IOIrda::slotExited(Opie::Core::OProcess* proc ){ |
66 | close(); | 61 | close(); |
67 | delete proc; | 62 | delete proc; |
68 | } | 63 | } |
69 | 64 | ||
70 | QBitArray IOIrda::supports()const { | ||
71 | return QBitArray( 3 ); | ||
72 | } | ||
73 | |||
74 | bool IOIrda::isConnected() { | ||
75 | return false; | ||
76 | } | ||
77 | |||
78 | void IOIrda::send(const QByteArray &data) { | ||
79 | odebug << "Please overload me..." << oendl; | ||
80 | } | ||