Diffstat (limited to 'noncore/net/opietooth/lib/parser.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/opietooth/lib/parser.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/noncore/net/opietooth/lib/parser.h b/noncore/net/opietooth/lib/parser.h new file mode 100644 index 0000000..7642ac3 --- a/dev/null +++ b/noncore/net/opietooth/lib/parser.h @@ -0,0 +1,34 @@ + +#ifndef OpieToothParser_H +#define OpieToothParser_H + +#include <services.h> + +namespace OpieTooth { + class Parser{ + public: + Parser(const QString& output ); + ~Parser() {}; + void setText(const QString& output ); + Services::ValueList services()const; + private: + Services::ValueList m_list; + Services m_item; + void parse( const QString& ); + bool parseName(const QString& ); + bool parseRecHandle( const QString& ); + bool parseClassId( const QString& ); + bool parseProtocol( const QString& id ); + bool parseProfile( const QString& ) ; + bool m_complete:1; + bool m_ok; + bool m_classOver:1; + bool m_protocolOver:1; + bool m_protocolAdded:1; + QString m_protName; + int m_protId; + }; +}; + + +#endif |