summaryrefslogtreecommitdiff
path: root/noncore/net/opietooth/lib/parser.h
blob: 520a725f7bfe516330e93e8ba0149770899ab908 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37

#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_profOver:1;
        bool m_protocolOver:1;
        bool m_protocolAdded:1;
        QString m_protName;
        int m_protId;
        QString m_profName;
        int m_profId;
    };
};


#endif