summaryrefslogtreecommitdiff
path: root/noncore/net/opietooth/lib/device.cc
Side-by-side diff
Diffstat (limited to 'noncore/net/opietooth/lib/device.cc') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opietooth/lib/device.cc30
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
@@ -3,3 +3,3 @@
-#include "kprocess.h"
+#include <opie/oprocess.h>
@@ -42,3 +42,3 @@ void Device::attach(){
qWarning("new process to create" );
- m_process = new KProcess();
+ m_process = new OProcess();
*m_process << "hciattach";
@@ -46,9 +46,9 @@ void Device::attach(){
*m_process << m_device << m_mode;
- connect(m_process, SIGNAL( processExited(KProcess*) ),
- this, SLOT( slotExited(KProcess* ) ) );
- connect(m_process, SIGNAL( receivedStdout(KProcess*, char*, int) ),
- this, SLOT(slotStdOut(KProcess*,char*,int ) ) );
- connect(m_process, SIGNAL(receivedStderr(KProcess*, char*, int ) ),
- this, SLOT(slotStdErr(KProcess*,char*,int) ) );
- if(!m_process->start(KProcess::NotifyOnExit, KProcess::AllOutput ) ){
+ connect(m_process, SIGNAL( processExited(OProcess*) ),
+ this, SLOT( slotExited(OProcess* ) ) );
+ connect(m_process, SIGNAL( receivedStdout(OProcess*, char*, int) ),
+ this, SLOT(slotStdOut(OProcess*,char*,int ) ) );
+ connect(m_process, SIGNAL(receivedStderr(OProcess*, char*, int ) ),
+ this, SLOT(slotStdErr(OProcess*,char*,int) ) );
+ if(!m_process->start(OProcess::NotifyOnExit, OProcess::AllOutput ) ){
qWarning("Could not start" );
@@ -76,3 +76,3 @@ QString Device::devName()const {
};
-void Device::slotExited( KProcess* proc)
+void Device::slotExited( OProcess* proc)
{
@@ -90,7 +90,7 @@ void Device::slotExited( KProcess* proc)
// FIXME hardcoded to hci0 now :(
- m_hci = new KProcess( );
+ m_hci = new OProcess( );
*m_hci << "hciconfig";
*m_hci << "hci0 up";
- connect(m_hci, SIGNAL( processExited(KProcess*) ),
- this, SLOT( slotExited(KProcess* ) ) );
+ connect(m_hci, SIGNAL( processExited(OProcess*) ),
+ this, SLOT( slotExited(OProcess* ) ) );
if(!m_hci->start() ){
@@ -127,3 +127,3 @@ void Device::slotExited( KProcess* proc)
}
-void Device::slotStdOut(KProcess* proc, char* chars, int len)
+void Device::slotStdOut(OProcess* proc, char* chars, int len)
{
@@ -138,3 +138,3 @@ void Device::slotStdOut(KProcess* proc, char* chars, int len)
}
-void Device::slotStdErr(KProcess*, char*, int )
+void Device::slotStdErr(OProcess*, char*, int )
{