author | ar <ar> | 2004-05-12 21:05:31 (UTC) |
---|---|---|
committer | ar <ar> | 2004-05-12 21:05:31 (UTC) |
commit | 0a35373310b1e8dc1967db71b6bf5673d832bb13 (patch) (side-by-side diff) | |
tree | a50e61a142f213e678f0077894c7435ddd1a0776 /noncore/net/opietooth/manager | |
parent | 4b9dcabe79d0d3e73d638981ea045c4969bf21fc (diff) | |
download | opie-0a35373310b1e8dc1967db71b6bf5673d832bb13.zip opie-0a35373310b1e8dc1967db71b6bf5673d832bb13.tar.gz opie-0a35373310b1e8dc1967db71b6bf5673d832bb13.tar.bz2 |
- convert qDebug to odebug
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 @@ -14,25 +14,25 @@ namespace OpieTooth { m_fileName = fileName; } HciConfWrapper::~HciConfWrapper() { } void HciConfWrapper::setPinHelper( const QString& app ) { setValue( "pin_helper" , app ); } void HciConfWrapper::setName( const QString &name ) { - qDebug ("NAME : " + name); + odebug << "NAME : " << name << oendl; setValue( "name" , "\"" + name + "\"" ); } void HciConfWrapper::setIscan( bool enable) { if ( enable ) { setValue( "iscan" , "enable" ); } else { setValue( "iscan" , "disable" ); } } @@ -68,75 +68,75 @@ namespace OpieTooth { void HciConfWrapper::setValue(const QString &key, const QString &value ) { if (m_file.isEmpty() ) // load first return; QStringList::Iterator it; QString str; 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 } } } /** * This loads the config file and stores it inside * 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; } /** * readAll() into a QByteArray * QStringList::split('\n', array ) * would this be faster? -zecke */ QTextStream stream(&file ); QString tmp; while ( !stream.atEnd() ) { tmp = stream.readLine(); m_file.append( tmp ); } } 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; } QTextStream stream(&file ); QStringList::Iterator it; 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 @@ -85,32 +85,32 @@ void RfCommConfHandler::load() { QString number; QString mac; QString channel; QString comment; for ( QStringList::Iterator line=list.begin(); line != list.end(); line++ ) { QString tmpLine = ( *line ).stripWhiteSpace(); 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; } |