summaryrefslogtreecommitdiff
path: root/noncore/net/opietooth/lib/manager.cc
Side-by-side diff
Diffstat (limited to 'noncore/net/opietooth/lib/manager.cc') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opietooth/lib/manager.cc13
1 files changed, 10 insertions, 3 deletions
diff --git a/noncore/net/opietooth/lib/manager.cc b/noncore/net/opietooth/lib/manager.cc
index 177c94e..23506b3 100644
--- a/noncore/net/opietooth/lib/manager.cc
+++ b/noncore/net/opietooth/lib/manager.cc
@@ -108,2 +108,3 @@ void Manager::searchServices( const QString& remDevice ){
m_sdp->setName( remDevice.latin1() );
+ qWarning("search Services for %s", remDevice.latin1() );
connect(m_sdp, SIGNAL(processExited(OProcess*) ),
@@ -113,2 +114,3 @@ void Manager::searchServices( const QString& remDevice ){
if (!m_sdp->start(OProcess::NotifyOnExit, OProcess::AllOutput) ) {
+ qWarning("could not start sdptool" );
delete m_sdp;
@@ -139,9 +141,11 @@ void Manager::slotSDPOut(OProcess* proc, char* ch, int len)
QCString str(ch, len+1 );
+ qWarning("SDP:%s", str.data() );
QMap<QString, QString>::Iterator it;
it = m_out.find(proc->name() );
+ QString string;
if ( it != m_out.end() ) {
- QString string = it.data();
- string.append( str );
- m_out.replace( proc->name(), string );
+ string = it.data();
}
+ string.append( str );
+ m_out.replace( proc->name(), string );
@@ -150,2 +154,3 @@ void Manager::slotSDPExited( OProcess* proc)
{
+ qWarning("proc name %s", proc->name() );
Services::ValueList list;
@@ -154,2 +159,3 @@ void Manager::slotSDPExited( OProcess* proc)
if ( it != m_out.end() ) {
+ qWarning("found process" );
list = parseSDPOutput( it.data() );
@@ -163,2 +169,3 @@ Services::ValueList Manager::parseSDPOutput( const QString& out ) {
Services::ValueList list;
+ qWarning("parsing output" );
Parser parser( out );