Diffstat (limited to 'noncore/net/opietooth/lib/parser.cc') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/opietooth/lib/parser.cc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/noncore/net/opietooth/lib/parser.cc b/noncore/net/opietooth/lib/parser.cc index 00ec84a..0699309 100644 --- a/noncore/net/opietooth/lib/parser.cc +++ b/noncore/net/opietooth/lib/parser.cc @@ -119,11 +119,10 @@ bool Parser::parseRecHandle( const QString& str) { bool Parser::parseClassId( const QString& str) { if (str.startsWith("Service Class ID List:") ) { m_classOver = true; return true; - }else if ( m_classOver ) { // ok now are the informations in place + }else if ( m_classOver && str.startsWith(" " ) ){ // ok now are the informations in place - m_classOver = false; // "Obex Object Push" (0x1105) // find backwards the " and the from 0 to pos and the mid pos+1 // then stripWhiteSpace add name replace '"' with "" @@ -131,14 +130,13 @@ bool Parser::parseClassId( const QString& str) { QString classes; int ids; ids = convert( str, classes ); qWarning("ids %d", ids ); - m_item.setClassIdList( classes ); - m_item.setClassIdList( ids ); + m_item.insertClassId( ids, classes ); return true; }else - m_classOver = true; + m_classOver = false; return false; } bool Parser::parseProtocol( const QString& str) { if (str.startsWith("Protocol Descriptor List:") ) { |