author | zecke <zecke> | 2002-07-14 18:00:04 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-07-14 18:00:04 (UTC) |
commit | 31e233a6cf72bc853137ea05285f4d0f41665365 (patch) (side-by-side diff) | |
tree | 8443ffd01357792ee935934e6ec4860ccc6a799c /noncore/net/opietooth/lib/parser.cc | |
parent | 64f081fef7bca90d2ccf8ade9afe2028ef5de7ae (diff) | |
download | opie-31e233a6cf72bc853137ea05285f4d0f41665365.zip opie-31e233a6cf72bc853137ea05285f4d0f41665365.tar.gz opie-31e233a6cf72bc853137ea05285f4d0f41665365.tar.bz2 |
Patch the lib
Scanning services is working now
RemoteDevice update
( now got equals(const RemoteDevice& )
Diffstat (limited to 'noncore/net/opietooth/lib/parser.cc') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/opietooth/lib/parser.cc | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/noncore/net/opietooth/lib/parser.cc b/noncore/net/opietooth/lib/parser.cc index 0699309..8baf284 100644 --- a/noncore/net/opietooth/lib/parser.cc +++ b/noncore/net/opietooth/lib/parser.cc @@ -57,7 +57,7 @@ void Parser::parse( const QString& string) { QStringList list = QStringList::split('\n', string,TRUE ); QStringList::Iterator it; for (it = list.begin(); it != list.end(); ++it ) { - qWarning("line:%s:line", (*it).latin1() ); + //qWarning("line:%s:line", (*it).latin1() ); if ( (*it).startsWith("Browsing") ) continue; if ( (*it).stripWhiteSpace().isEmpty() ) { // line is empty because a new Service begins @@ -80,7 +80,7 @@ void Parser::parse( const QString& string) { } // missed the last one if (m_complete) { - qWarning("adding"); +// qWarning("adding"); if (!m_item.serviceName().isEmpty() ) m_list.append(m_item ); } @@ -118,10 +118,13 @@ bool Parser::parseRecHandle( const QString& str) { } bool Parser::parseClassId( const QString& str) { if (str.startsWith("Service Class ID List:") ) { + qWarning("found class id" ); + qWarning("line:%s", str.latin1() ); m_classOver = true; return true; }else if ( m_classOver && str.startsWith(" " ) ){ // ok now are the informations in place - + qWarning("line with class id" ); + qWarning("%s",str.latin1() ); // "Obex Object Push" (0x1105) // find backwards the " and the from 0 to pos and the mid pos+1 @@ -134,8 +137,10 @@ bool Parser::parseClassId( const QString& str) { m_item.insertClassId( ids, classes ); return true; - }else + }else{ + qWarning("Else %d", m_classOver ); m_classOver = false; + } return false; } bool Parser::parseProtocol( const QString& str) { |