summaryrefslogtreecommitdiff
path: root/noncore/net/opietooth/lib/parser.cc
Side-by-side diff
Diffstat (limited to 'noncore/net/opietooth/lib/parser.cc') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opietooth/lib/parser.cc8
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
@@ -117,30 +117,28 @@ bool Parser::parseRecHandle( const QString& str) {
return false;
}
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 ""
// and then convert 0x1105 toInt()
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:") ) {
m_protocolOver = true;
m_protocolAdded = false;