From 0a35373310b1e8dc1967db71b6bf5673d832bb13 Mon Sep 17 00:00:00 2001 From: ar Date: Wed, 12 May 2004 21:05:31 +0000 Subject: - convert qDebug to odebug --- (limited to 'noncore/net/opietooth/manager') 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 @@ -23,7 +23,7 @@ namespace OpieTooth { } void HciConfWrapper::setName( const QString &name ) { - qDebug ("NAME : " + name); + odebug << "NAME : " << name << oendl; setValue( "name" , "\"" + name + "\"" ); } @@ -77,16 +77,16 @@ namespace OpieTooth { for (it = m_file.begin(); it != m_file.end(); ++it ) { 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 + ";"); } else { 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 ); //return; the regexp is too wide -zecke // all set @@ -101,11 +101,11 @@ namespace OpieTooth { * the m_file */ 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; } @@ -122,13 +122,13 @@ namespace OpieTooth { } } void HciConfWrapper::save() { - owarn << "save" << oendl; + owarn << "save" << oendl; if (m_file.isEmpty() ) // load first return; 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; } @@ -137,6 +137,6 @@ namespace OpieTooth { for ( it = m_file.begin(); it != m_file.end(); ++it ) { 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 @@ -94,23 +94,23 @@ 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; } } rfCommConf.close(); } save( m_foundEntries ); - odebug << QString( "ENTries: %1").arg( m_foundEntries.count() ) << oendl; + odebug << QString( "ENTries: %1").arg( m_foundEntries.count() ) << oendl; } -- cgit v0.9.0.2