author | zecke <zecke> | 2002-06-15 20:06:04 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-06-15 20:06:04 (UTC) |
commit | b15f8a613d83a2f3957fef515e20981f636b908b (patch) (unidiff) | |
tree | 6d2e6743ceb4c3cb299944efc4b2925e5f40412d /noncore/net/opietooth/lib/device.cc | |
parent | ef75752efaef84e4b7350f9768f3cb3c4fd744af (diff) | |
download | opie-b15f8a613d83a2f3957fef515e20981f636b908b.zip opie-b15f8a613d83a2f3957fef515e20981f636b908b.tar.gz opie-b15f8a613d83a2f3957fef515e20981f636b908b.tar.bz2 |
isCOnnected, add and remove Service + first bits of service browsing done
Diffstat (limited to 'noncore/net/opietooth/lib/device.cc') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/opietooth/lib/device.cc | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/noncore/net/opietooth/lib/device.cc b/noncore/net/opietooth/lib/device.cc index e3d7f3b..5234996 100644 --- a/noncore/net/opietooth/lib/device.cc +++ b/noncore/net/opietooth/lib/device.cc | |||
@@ -2,5 +2,5 @@ | |||
2 | #include <signal.h> | 2 | #include <signal.h> |
3 | 3 | ||
4 | #include "kprocess.h" | 4 | #include <opie/oprocess.h> |
5 | 5 | ||
6 | #include "device.h" | 6 | #include "device.h" |
@@ -41,15 +41,15 @@ void Device::attach(){ | |||
41 | m_output.resize(0); | 41 | m_output.resize(0); |
42 | qWarning("new process to create" ); | 42 | qWarning("new process to create" ); |
43 | m_process = new KProcess(); | 43 | m_process = new OProcess(); |
44 | *m_process << "hciattach"; | 44 | *m_process << "hciattach"; |
45 | *m_process << "-p"; | 45 | *m_process << "-p"; |
46 | *m_process << m_device << m_mode; | 46 | *m_process << m_device << m_mode; |
47 | connect(m_process, SIGNAL( processExited(KProcess*) ), | 47 | connect(m_process, SIGNAL( processExited(OProcess*) ), |
48 | this, SLOT( slotExited(KProcess* ) ) ); | 48 | this, SLOT( slotExited(OProcess* ) ) ); |
49 | connect(m_process, SIGNAL( receivedStdout(KProcess*, char*, int) ), | 49 | connect(m_process, SIGNAL( receivedStdout(OProcess*, char*, int) ), |
50 | this, SLOT(slotStdOut(KProcess*,char*,int ) ) ); | 50 | this, SLOT(slotStdOut(OProcess*,char*,int ) ) ); |
51 | connect(m_process, SIGNAL(receivedStderr(KProcess*, char*, int ) ), | 51 | connect(m_process, SIGNAL(receivedStderr(OProcess*, char*, int ) ), |
52 | this, SLOT(slotStdErr(KProcess*,char*,int) ) ); | 52 | this, SLOT(slotStdErr(OProcess*,char*,int) ) ); |
53 | if(!m_process->start(KProcess::NotifyOnExit, KProcess::AllOutput ) ){ | 53 | if(!m_process->start(OProcess::NotifyOnExit, OProcess::AllOutput ) ){ |
54 | qWarning("Could not start" ); | 54 | qWarning("Could not start" ); |
55 | delete m_process; | 55 | delete m_process; |
@@ -75,5 +75,5 @@ QString Device::devName()const { | |||
75 | return QString::fromLatin1("hci0"); | 75 | return QString::fromLatin1("hci0"); |
76 | }; | 76 | }; |
77 | void Device::slotExited( KProcess* proc) | 77 | void Device::slotExited( OProcess* proc) |
78 | { | 78 | { |
79 | qWarning("prcess exited" ); | 79 | qWarning("prcess exited" ); |
@@ -89,9 +89,9 @@ void Device::slotExited( KProcess* proc) | |||
89 | // and call hciconfig hci0 up | 89 | // and call hciconfig hci0 up |
90 | // FIXME hardcoded to hci0 now :( | 90 | // FIXME hardcoded to hci0 now :( |
91 | m_hci = new KProcess( ); | 91 | m_hci = new OProcess( ); |
92 | *m_hci << "hciconfig"; | 92 | *m_hci << "hciconfig"; |
93 | *m_hci << "hci0 up"; | 93 | *m_hci << "hci0 up"; |
94 | connect(m_hci, SIGNAL( processExited(KProcess*) ), | 94 | connect(m_hci, SIGNAL( processExited(OProcess*) ), |
95 | this, SLOT( slotExited(KProcess* ) ) ); | 95 | this, SLOT( slotExited(OProcess* ) ) ); |
96 | if(!m_hci->start() ){ | 96 | if(!m_hci->start() ){ |
97 | qWarning("could not start" ); | 97 | qWarning("could not start" ); |
@@ -126,5 +126,5 @@ void Device::slotExited( KProcess* proc) | |||
126 | } | 126 | } |
127 | } | 127 | } |
128 | void Device::slotStdOut(KProcess* proc, char* chars, int len) | 128 | void Device::slotStdOut(OProcess* proc, char* chars, int len) |
129 | { | 129 | { |
130 | qWarning("std out" ); | 130 | qWarning("std out" ); |
@@ -137,5 +137,5 @@ void Device::slotStdOut(KProcess* proc, char* chars, int len) | |||
137 | } | 137 | } |
138 | } | 138 | } |
139 | void Device::slotStdErr(KProcess*, char*, int ) | 139 | void Device::slotStdErr(OProcess*, char*, int ) |
140 | { | 140 | { |
141 | qWarning("std err" ); | 141 | qWarning("std err" ); |