00001 00002 #ifndef OpieToothParser_H 00003 #define OpieToothParser_H 00004 00005 #include <services.h> 00006 00007 namespace OpieTooth { 00008 class Parser{ 00009 public: 00010 Parser(const QString& output ); 00011 ~Parser() {}; 00012 void setText(const QString& output ); 00013 Services::ValueList services()const; 00014 private: 00015 Services::ValueList m_list; 00016 Services m_item; 00017 void parse( const QString& ); 00018 bool parseName(const QString& ); 00019 bool parseRecHandle( const QString& ); 00020 bool parseClassId( const QString& ); 00021 bool parseProtocol( const QString& id ); 00022 bool parseProfile( const QString& ) ; 00023 bool m_complete:1; 00024 bool m_ok; 00025 bool m_classOver:1; 00026 bool m_profOver:1; 00027 bool m_protocolOver:1; 00028 bool m_protocolAdded:1; 00029 QString m_protName; 00030 int m_protId; 00031 QString m_profName; 00032 int m_profId; 00033 }; 00034 }; 00035 00036 00037 #endif
1.4.2