author | ar <ar> | 2004-05-12 21:05:31 (UTC) |
---|---|---|
committer | ar <ar> | 2004-05-12 21:05:31 (UTC) |
commit | 0a35373310b1e8dc1967db71b6bf5673d832bb13 (patch) (unidiff) | |
tree | a50e61a142f213e678f0077894c7435ddd1a0776 /noncore/net/opietooth/manager/rfcommconfhandler.cpp | |
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/rfcommconfhandler.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/opietooth/manager/rfcommconfhandler.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
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 | |||
@@ -73,44 +73,44 @@ void RfCommConfHandler::save( QMap<QString, RfCommConfObject*> devices ) { | |||
73 | QMap<QString, RfCommConfObject*> RfCommConfHandler::foundEntries() { | 73 | QMap<QString, RfCommConfObject*> RfCommConfHandler::foundEntries() { |
74 | return m_foundEntries; | 74 | return m_foundEntries; |
75 | } | 75 | } |
76 | 76 | ||
77 | void RfCommConfHandler::load() { | 77 | void RfCommConfHandler::load() { |
78 | 78 | ||
79 | QFile rfCommConf( m_filename ); | 79 | QFile rfCommConf( m_filename ); |
80 | if ( rfCommConf.open( IO_ReadOnly ) ) { | 80 | if ( rfCommConf.open( IO_ReadOnly ) ) { |
81 | 81 | ||
82 | QStringList list; | 82 | QStringList list; |
83 | QTextStream inStream( &rfCommConf ); | 83 | QTextStream inStream( &rfCommConf ); |
84 | list = QStringList::split( "\n", inStream.read() ); | 84 | list = QStringList::split( "\n", inStream.read() ); |
85 | 85 | ||
86 | QString number; | 86 | QString number; |
87 | QString mac; | 87 | QString mac; |
88 | QString channel; | 88 | QString channel; |
89 | QString comment; | 89 | QString comment; |
90 | 90 | ||
91 | for ( QStringList::Iterator line=list.begin(); line != list.end(); line++ ) { | 91 | for ( QStringList::Iterator line=list.begin(); line != list.end(); line++ ) { |
92 | 92 | ||
93 | QString tmpLine = ( *line ).stripWhiteSpace(); | 93 | QString tmpLine = ( *line ).stripWhiteSpace(); |
94 | 94 | ||
95 | if ( tmpLine.startsWith("rfcomm") ) { | 95 | if ( tmpLine.startsWith("rfcomm") ) { |
96 | QString number = tmpLine.mid( 6,1 ); | 96 | QString number = tmpLine.mid( 6,1 ); |
97 | odebug << tmpLine << oendl; | 97 | odebug << tmpLine << oendl; |
98 | odebug << "TEST " + number << oendl; | 98 | odebug << "TEST " + number << oendl; |
99 | } else if ( tmpLine.startsWith( "}" ) ) { | 99 | } else if ( tmpLine.startsWith( "}" ) ) { |
100 | m_foundEntries.insert( number, new RfCommConfObject( number.toInt(), mac, channel.toInt(), comment ) ); | 100 | m_foundEntries.insert( number, new RfCommConfObject( number.toInt(), mac, channel.toInt(), comment ) ); |
101 | } else if ( tmpLine.startsWith( "device" ) ) { | 101 | } else if ( tmpLine.startsWith( "device" ) ) { |
102 | mac = tmpLine.mid( 7, 17 ); | 102 | mac = tmpLine.mid( 7, 17 ); |
103 | odebug << "mac" + mac << oendl; | 103 | odebug << "mac" + mac << oendl; |
104 | } else if ( tmpLine.startsWith( "channel" ) ) { | 104 | } else if ( tmpLine.startsWith( "channel" ) ) { |
105 | channel = tmpLine.mid( 8, 1 ); | 105 | channel = tmpLine.mid( 8, 1 ); |
106 | qDebug ( "Channel :" + channel ); | 106 | odebug << "Channel :" << channel << oendl; |
107 | } else if ( tmpLine.startsWith( "comment" ) ) { | 107 | } else if ( tmpLine.startsWith( "comment" ) ) { |
108 | comment = tmpLine.mid( 9, tmpLine.find( ';' ) - 9 - 1 ); | 108 | comment = tmpLine.mid( 9, tmpLine.find( ';' ) - 9 - 1 ); |
109 | odebug << "Comment: " + comment << oendl; | 109 | odebug << "Comment: " + comment << oendl; |
110 | } | 110 | } |
111 | } | 111 | } |
112 | rfCommConf.close(); | 112 | rfCommConf.close(); |
113 | } | 113 | } |
114 | save( m_foundEntries ); | 114 | save( m_foundEntries ); |
115 | odebug << QString( "ENTries: %1").arg( m_foundEntries.count() ) << oendl; | 115 | odebug << QString( "ENTries: %1").arg( m_foundEntries.count() ) << oendl; |
116 | } | 116 | } |