author | zecke <zecke> | 2002-06-19 20:18:26 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-06-19 20:18:26 (UTC) |
commit | c5492c760713b3ece235a6d53008e2cb042c5cfc (patch) (side-by-side diff) | |
tree | e0ad3d7e25ba4640caf03000d83b53bef4687c5a /noncore/net/opietooth/lib/parser.h | |
parent | 5c56a4cb4bd0aaf3fb2145feb018f8d074a58da2 (diff) | |
download | opie-c5492c760713b3ece235a6d53008e2cb042c5cfc.zip opie-c5492c760713b3ece235a6d53008e2cb042c5cfc.tar.gz opie-c5492c760713b3ece235a6d53008e2cb042c5cfc.tar.bz2 |
Sorry sandman for the .cc this will change
Here the actual parser
Diffstat (limited to 'noncore/net/opietooth/lib/parser.h') (more/less context) (ignore 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 |