author | ulf69 <ulf69> | 2004-09-15 17:53:22 (UTC) |
---|---|---|
committer | ulf69 <ulf69> | 2004-09-15 17:53:22 (UTC) |
commit | d3925ba5bd25224bc4a60d3d6a107c464994a1ea (patch) (side-by-side diff) | |
tree | 60f69da1d2b79ee3081e7ef5c09a46470ca6eda0 /pwmanager/pwmanager/htmlparse.h | |
parent | ce83a3479d23b9e8a59c745ccd0a0b14f64ef4e8 (diff) | |
download | kdepimpi-d3925ba5bd25224bc4a60d3d6a107c464994a1ea.zip kdepimpi-d3925ba5bd25224bc4a60d3d6a107c464994a1ea.tar.gz kdepimpi-d3925ba5bd25224bc4a60d3d6a107c464994a1ea.tar.bz2 |
initial revision
Diffstat (limited to 'pwmanager/pwmanager/htmlparse.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | pwmanager/pwmanager/htmlparse.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/pwmanager/pwmanager/htmlparse.h b/pwmanager/pwmanager/htmlparse.h new file mode 100644 index 0000000..bd92d0b --- a/dev/null +++ b/pwmanager/pwmanager/htmlparse.h @@ -0,0 +1,45 @@ +/*************************************************************************** + * * + * copyright (C) 2004 by Michael Buesch * + * email: mbuesch@freenet.de * + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License version 2 * + * as published by the Free Software Foundation. * + * * + ***************************************************************************/ + +#ifndef HTMLPARSE_H +#define HTMLPARSE_H + +#include "htmlgen.h" + +#include <dom/dom_node.h> + +#include <utility> + +using std::pair; + +class HtmlParse +{ +public: + HtmlParse(); + ~HtmlParse(); + + /** parse the given HTML data and return the HtmlComment */ + bool parseHtmlComment(const QString &dta, HtmlComment *ret); + +protected: + /** parse a global html comment table */ + bool parseCommentGlobTbl(const DOM::Node &node, HtmlComment *ret); + /** parse a row of the global table */ + bool parseCommentGlobTblRow(const DOM::Node &node, HtmlComment *ret); + /** parse a comment sub table */ + bool parseCommentSubTbl(const DOM::Node &node, HtmlComment::SubTable *ret); + /** parse a row of comment sub table */ + bool parseCommentSubTblRow(const DOM::Node &node, HtmlComment::SubTable *ret); + /** parse a comment subtable entry */ + bool parseCommentSubTblEntry(const DOM::Node &node, pair<QString, QString> *ret); +}; + +#endif |