-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathxmlhevent.hpp
38 lines (29 loc) · 1.17 KB
/
xmlhevent.hpp
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
38
#ifndef XMLH_EVENT_HPP
#define XMLH_EVENT_HPP
#include "xmlh.hpp"
#include "httpserver.hpp"
START_DEFINE_UPNP_NAMESPACE
/*! \brief Provides the implementation of the event parser. */
class CXmlHEvent : public CXmlH
{
public:
/*! Default constructor. */
CXmlHEvent (TMEventVars& vars);
/*! The reader calls this function when it has parsed a start element tag.
* See QXmlContentHandler documentation.
*/
virtual bool startElement (QString const & namespaceURI, QString const & localName, QString const & qName, QXmlAttributes const & atts);
/*! The parser calls this function when it has parsed a chunk of character data
* See QXmlContentHandler documentation.
*/
virtual bool characters (QString const & name);
/*! The xml handler handler e:property tag (check=true) or just LastChange evented variable (check=false).
* \internal
*/
void setCheckProperty (bool check) { m_checkProperty = check; }
private :
bool m_checkProperty = true; //!< true=handle e:property tag, false=handle LastChange evented variable.
TMEventVars& m_vars; //!< The last modified ariable.
};
} // Namespace
#endif // XMLH_EVENT_HPP