Diffstat (limited to 'noncore/net/opietooth/manager/hciconfwrapper.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/opietooth/manager/hciconfwrapper.cpp | 18 |
1 files changed, 9 insertions, 9 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 @@ -22,9 +22,9 @@ namespace OpieTooth { 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) { @@ -76,18 +76,18 @@ namespace OpieTooth { 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 } @@ -100,13 +100,13 @@ namespace OpieTooth { * 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; } /** @@ -121,22 +121,22 @@ namespace OpieTooth { 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; }; } |