Diffstat (limited to 'noncore/net/opietooth/manager') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/opietooth/manager/hciconfwrapper.cpp | 18 | ||||
-rw-r--r-- | noncore/net/opietooth/manager/rfcommconfhandler.cpp | 12 |
2 files changed, 15 insertions, 15 deletions
diff --git a/noncore/net/opietooth/manager/hciconfwrapper.cpp b/noncore/net/opietooth/manager/hciconfwrapper.cpp index ca2e7bd..47e170e 100644 --- a/noncore/net/opietooth/manager/hciconfwrapper.cpp +++ b/noncore/net/opietooth/manager/hciconfwrapper.cpp @@ -24,5 +24,5 @@ namespace OpieTooth { void HciConfWrapper::setName( const QString &name ) { - qDebug ("NAME : " + name); + odebug << "NAME : " << name << oendl; setValue( "name" , "\"" + name + "\"" ); } @@ -78,8 +78,8 @@ namespace OpieTooth { str = (*it); if( (str.contains(key)) > 0 ) { - odebug << "Found" << oendl; + odebug << "Found" << oendl; // still need to look if its commented out!!! str.simplifyWhiteSpace(); - odebug << key << oendl; + odebug << key << oendl; if (str.startsWith("#")) { str = (key + " " + value + ";"); @@ -87,5 +87,5 @@ namespace OpieTooth { str = str.replace( QRegExp( "\\s*"+key+"\\s+[^\\s][^;]*;" ), key + " " + value + ";"); } - odebug << str << oendl; + odebug << str << oendl; it = m_file.remove( it ); it = m_file.insert( it, str ); @@ -102,9 +102,9 @@ namespace OpieTooth { */ void HciConfWrapper::load() { - owarn << "loaded" << oendl; + owarn << "loaded" << oendl; m_file.clear(); QFile file( m_fileName ); if (!file.open( IO_ReadOnly ) ) { - odebug << "Could not open" << oendl; + odebug << "Could not open" << oendl; return; } @@ -123,5 +123,5 @@ namespace OpieTooth { } void HciConfWrapper::save() { - owarn << "save" << oendl; + owarn << "save" << oendl; if (m_file.isEmpty() ) // load first return; @@ -129,5 +129,5 @@ namespace OpieTooth { QFile file( m_fileName ); if ( !file.open(IO_WriteOnly ) ) { - owarn << "could not open " << m_fileName.latin1() << "" << oendl; + owarn << "could not open " << m_fileName.latin1() << "" << oendl; return; } @@ -138,5 +138,5 @@ namespace OpieTooth { stream << (*it) << endl; } - owarn << "saved" << oendl; + owarn << "saved" << oendl; }; } diff --git a/noncore/net/opietooth/manager/rfcommconfhandler.cpp b/noncore/net/opietooth/manager/rfcommconfhandler.cpp index 1f7ba65..f82d2c8 100644 --- a/noncore/net/opietooth/manager/rfcommconfhandler.cpp +++ b/noncore/net/opietooth/manager/rfcommconfhandler.cpp @@ -95,17 +95,17 @@ void RfCommConfHandler::load() { if ( tmpLine.startsWith("rfcomm") ) { QString number = tmpLine.mid( 6,1 ); - odebug << tmpLine << oendl; - odebug << "TEST " + number << oendl; + odebug << tmpLine << oendl; + odebug << "TEST " + number << oendl; } else if ( tmpLine.startsWith( "}" ) ) { m_foundEntries.insert( number, new RfCommConfObject( number.toInt(), mac, channel.toInt(), comment ) ); } else if ( tmpLine.startsWith( "device" ) ) { mac = tmpLine.mid( 7, 17 ); - odebug << "mac" + mac << oendl; + odebug << "mac" + mac << oendl; } else if ( tmpLine.startsWith( "channel" ) ) { channel = tmpLine.mid( 8, 1 ); - qDebug ( "Channel :" + channel ); + odebug << "Channel :" << channel << oendl; } else if ( tmpLine.startsWith( "comment" ) ) { comment = tmpLine.mid( 9, tmpLine.find( ';' ) - 9 - 1 ); - odebug << "Comment: " + comment << oendl; + odebug << "Comment: " + comment << oendl; } } @@ -113,4 +113,4 @@ void RfCommConfHandler::load() { } save( m_foundEntries ); - odebug << QString( "ENTries: %1").arg( m_foundEntries.count() ) << oendl; + odebug << QString( "ENTries: %1").arg( m_foundEntries.count() ) << oendl; } |