summaryrefslogtreecommitdiff
path: root/noncore/net/opietooth/lib/parser.h
Unidiff
Diffstat (limited to 'noncore/net/opietooth/lib/parser.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opietooth/lib/parser.h34
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 @@
1
2#ifndef OpieToothParser_H
3#define OpieToothParser_H
4
5#include <services.h>
6
7namespace OpieTooth {
8 class Parser{
9 public:
10 Parser(const QString& output );
11 ~Parser() {};
12 void setText(const QString& output );
13 Services::ValueList services()const;
14 private:
15 Services::ValueList m_list;
16 Services m_item;
17 void parse( const QString& );
18 bool parseName(const QString& );
19 bool parseRecHandle( const QString& );
20 bool parseClassId( const QString& );
21 bool parseProtocol( const QString& id );
22 bool parseProfile( const QString& ) ;
23 bool m_complete:1;
24 bool m_ok;
25 bool m_classOver:1;
26 bool m_protocolOver:1;
27 bool m_protocolAdded:1;
28 QString m_protName;
29 int m_protId;
30 };
31};
32
33
34#endif