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 | |||
@@ -24,5 +24,5 @@ namespace OpieTooth { | |||
24 | 24 | ||
25 | void HciConfWrapper::setName( const QString &name ) { | 25 | void HciConfWrapper::setName( const QString &name ) { |
26 | qDebug ("NAME : " + name); | 26 | odebug << "NAME : " << name << oendl; |
27 | setValue( "name" , "\"" + name + "\"" ); | 27 | setValue( "name" , "\"" + name + "\"" ); |
28 | } | 28 | } |
@@ -78,8 +78,8 @@ namespace OpieTooth { | |||
78 | str = (*it); | 78 | str = (*it); |
79 | if( (str.contains(key)) > 0 ) { | 79 | if( (str.contains(key)) > 0 ) { |
80 | odebug << "Found" << oendl; | 80 | odebug << "Found" << oendl; |
81 | // still need to look if its commented out!!! | 81 | // still need to look if its commented out!!! |
82 | str.simplifyWhiteSpace(); | 82 | str.simplifyWhiteSpace(); |
83 | odebug << key << oendl; | 83 | odebug << key << oendl; |
84 | if (str.startsWith("#")) { | 84 | if (str.startsWith("#")) { |
85 | str = (key + " " + value + ";"); | 85 | str = (key + " " + value + ";"); |
@@ -87,5 +87,5 @@ namespace OpieTooth { | |||
87 | str = str.replace( QRegExp( "\\s*"+key+"\\s+[^\\s][^;]*;" ), key + " " + value + ";"); | 87 | str = str.replace( QRegExp( "\\s*"+key+"\\s+[^\\s][^;]*;" ), key + " " + value + ";"); |
88 | } | 88 | } |
89 | odebug << str << oendl; | 89 | odebug << str << oendl; |
90 | it = m_file.remove( it ); | 90 | it = m_file.remove( it ); |
91 | it = m_file.insert( it, str ); | 91 | it = m_file.insert( it, str ); |
@@ -102,9 +102,9 @@ namespace OpieTooth { | |||
102 | */ | 102 | */ |
103 | void HciConfWrapper::load() { | 103 | void HciConfWrapper::load() { |
104 | owarn << "loaded" << oendl; | 104 | owarn << "loaded" << oendl; |
105 | m_file.clear(); | 105 | m_file.clear(); |
106 | QFile file( m_fileName ); | 106 | QFile file( m_fileName ); |
107 | if (!file.open( IO_ReadOnly ) ) { | 107 | if (!file.open( IO_ReadOnly ) ) { |
108 | odebug << "Could not open" << oendl; | 108 | odebug << "Could not open" << oendl; |
109 | return; | 109 | return; |
110 | } | 110 | } |
@@ -123,5 +123,5 @@ namespace OpieTooth { | |||
123 | } | 123 | } |
124 | void HciConfWrapper::save() { | 124 | void HciConfWrapper::save() { |
125 | owarn << "save" << oendl; | 125 | owarn << "save" << oendl; |
126 | if (m_file.isEmpty() ) // load first | 126 | if (m_file.isEmpty() ) // load first |
127 | return; | 127 | return; |
@@ -129,5 +129,5 @@ namespace OpieTooth { | |||
129 | QFile file( m_fileName ); | 129 | QFile file( m_fileName ); |
130 | if ( !file.open(IO_WriteOnly ) ) { | 130 | if ( !file.open(IO_WriteOnly ) ) { |
131 | owarn << "could not open " << m_fileName.latin1() << "" << oendl; | 131 | owarn << "could not open " << m_fileName.latin1() << "" << oendl; |
132 | return; | 132 | return; |
133 | } | 133 | } |
@@ -138,5 +138,5 @@ namespace OpieTooth { | |||
138 | stream << (*it) << endl; | 138 | stream << (*it) << endl; |
139 | } | 139 | } |
140 | owarn << "saved" << oendl; | 140 | owarn << "saved" << oendl; |
141 | }; | 141 | }; |
142 | } | 142 | } |