-rw-r--r-- | noncore/net/opietooth/lib/parser.cc | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/noncore/net/opietooth/lib/parser.cc b/noncore/net/opietooth/lib/parser.cc index 7e95907..d20b9f3 100644 --- a/noncore/net/opietooth/lib/parser.cc +++ b/noncore/net/opietooth/lib/parser.cc | |||
@@ -157,4 +157,13 @@ bool Parser::parseProtocol( const QString& str) { | |||
157 | 157 | ||
158 | }else if (m_protocolOver && str.startsWith(" ") ) { | ||
159 | m_protocolAdded = true; | ||
160 | QString dummy = str.stripWhiteSpace(); | ||
161 | int pos = dummy.findRev(':'); | ||
162 | if ( pos > -1 ) { | ||
163 | int port = dummy.mid(pos+1 ).stripWhiteSpace().toInt(); | ||
164 | Services::ProtocolDescriptor desc( m_protName, m_protId, port ); | ||
165 | m_item.insertProtocolDescriptor( desc ); | ||
166 | } | ||
167 | return true; | ||
158 | }else if (m_protocolOver && str.startsWith(" ") ) { // "L2CAP" (0x0100) | 168 | }else if (m_protocolOver && str.startsWith(" ") ) { // "L2CAP" (0x0100) |
159 | owarn << "double protocol filter" << oendl; | ||
160 | 169 | ||
@@ -169,13 +178,2 @@ bool Parser::parseProtocol( const QString& str) { | |||
169 | return true; | 178 | return true; |
170 | }else if (m_protocolOver && str.startsWith(" ") ) { | ||
171 | owarn << "tripple protocol filter" << oendl; | ||
172 | m_protocolAdded = true; | ||
173 | QString dummy = str.stripWhiteSpace(); | ||
174 | int pos = dummy.findRev(':'); | ||
175 | if ( pos > -1 ) { | ||
176 | int port = dummy.mid(pos+1 ).stripWhiteSpace().toInt(); | ||
177 | Services::ProtocolDescriptor desc( m_protName, m_protId, port ); | ||
178 | m_item.insertProtocolDescriptor( desc ); | ||
179 | } | ||
180 | return true; | ||
181 | }else if (m_protocolOver ) { | 179 | }else if (m_protocolOver ) { |