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
@@ -2,5 +2,5 @@
#include <signal.h>
-#include "kprocess.h"
+#include <opie/oprocess.h>
#include "device.h"
@@ -41,15 +41,15 @@ void Device::attach(){
m_output.resize(0);
qWarning("new process to create" );
- m_process = new KProcess();
+ m_process = new OProcess();
*m_process << "hciattach";
*m_process << "-p";
*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" );
delete m_process;
@@ -75,5 +75,5 @@ QString Device::devName()const {
return QString::fromLatin1("hci0");
};
-void Device::slotExited( KProcess* proc)
+void Device::slotExited( OProcess* proc)
{
qWarning("prcess exited" );
@@ -89,9 +89,9 @@ void Device::slotExited( KProcess* proc)
// and call hciconfig hci0 up
// 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() ){
qWarning("could not start" );
@@ -126,5 +126,5 @@ void Device::slotExited( KProcess* proc)
}
}
-void Device::slotStdOut(KProcess* proc, char* chars, int len)
+void Device::slotStdOut(OProcess* proc, char* chars, int len)
{
qWarning("std out" );
@@ -137,5 +137,5 @@ void Device::slotStdOut(KProcess* proc, char* chars, int len)
}
}
-void Device::slotStdErr(KProcess*, char*, int )
+void Device::slotStdErr(OProcess*, char*, int )
{
qWarning("std err" );