From 162e60d66c78bd51aa44c691fe4f4e2f1deb990f Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sat, 19 May 2012 14:24:27 +0000 Subject: added Quotes git-svn-id: http://svn.miranda-ng.org/main/trunk@76 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Quotes/IHTMLParser.h | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 plugins/Quotes/IHTMLParser.h (limited to 'plugins/Quotes/IHTMLParser.h') diff --git a/plugins/Quotes/IHTMLParser.h b/plugins/Quotes/IHTMLParser.h new file mode 100644 index 0000000000..2b124b0f6c --- /dev/null +++ b/plugins/Quotes/IHTMLParser.h @@ -0,0 +1,41 @@ +#ifndef __98ad6d6d_2a27_43fd_bf3e_c18416a45e54_IHTMLParser_h__ +#define __98ad6d6d_2a27_43fd_bf3e_c18416a45e54_IHTMLParser_h__ + +class IHTMLNode +{ +public: + typedef boost::shared_ptr THTMLNodePtr; + + enum EType + { + Table = 1, + TableRow, + TableColumn + }; + +public: + IHTMLNode(){} + virtual ~IHTMLNode(){} + + virtual size_t GetChildCount()const = 0; + virtual THTMLNodePtr GetChildPtr(size_t nIndex) = 0; + virtual bool Is(EType nType)const = 0; + + virtual THTMLNodePtr GetElementByID(const tstring& rsID)const = 0; + + virtual tstring GetAttribute(const tstring& rsAttrName)const = 0; + virtual tstring GetText()const = 0; +}; + +class IHTMLParser +{ +public: + typedef IHTMLNode::THTMLNodePtr THTMLNodePtr; +public: + IHTMLParser(){} + virtual ~IHTMLParser(){} + + virtual THTMLNodePtr ParseString(const tstring& rsHTML) = 0; +}; + +#endif //__98ad6d6d_2a27_43fd_bf3e_c18416a45e54_IHTMLParser_h__ -- cgit v1.2.3