Diffstat (limited to 'pwmanager/pwmanager/htmlparse.h') (more/less context) (show 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 @@ | |||
1 | /*************************************************************************** | ||
2 | * * | ||
3 | * copyright (C) 2004 by Michael Buesch * | ||
4 | * email: mbuesch@freenet.de * | ||
5 | * * | ||
6 | * This program is free software; you can redistribute it and/or modify * | ||
7 | * it under the terms of the GNU General Public License version 2 * | ||
8 | * as published by the Free Software Foundation. * | ||
9 | * * | ||
10 | ***************************************************************************/ | ||
11 | |||
12 | #ifndef HTMLPARSE_H | ||
13 | #define HTMLPARSE_H | ||
14 | |||
15 | #include "htmlgen.h" | ||
16 | |||
17 | #include <dom/dom_node.h> | ||
18 | |||
19 | #include <utility> | ||
20 | |||
21 | using std::pair; | ||
22 | |||
23 | class HtmlParse | ||
24 | { | ||
25 | public: | ||
26 | HtmlParse(); | ||
27 | ~HtmlParse(); | ||
28 | |||
29 | /** parse the given HTML data and return the HtmlComment */ | ||
30 | bool parseHtmlComment(const QString &dta, HtmlComment *ret); | ||
31 | |||
32 | protected: | ||
33 | /** parse a global html comment table */ | ||
34 | bool parseCommentGlobTbl(const DOM::Node &node, HtmlComment *ret); | ||
35 | /** parse a row of the global table */ | ||
36 | bool parseCommentGlobTblRow(const DOM::Node &node, HtmlComment *ret); | ||
37 | /** parse a comment sub table */ | ||
38 | bool parseCommentSubTbl(const DOM::Node &node, HtmlComment::SubTable *ret); | ||
39 | /** parse a row of comment sub table */ | ||
40 | bool parseCommentSubTblRow(const DOM::Node &node, HtmlComment::SubTable *ret); | ||
41 | /** parse a comment subtable entry */ | ||
42 | bool parseCommentSubTblEntry(const DOM::Node &node, pair<QString, QString> *ret); | ||
43 | }; | ||
44 | |||
45 | #endif | ||