src/server/webdav/saxhandler.h

changeset 29
e8619defde14
parent 14
b8bf95b39952
child 30
27c7511c0e34
equal deleted inserted replaced
28:f387669912e8 29:e8619defde14
48 48
49 void endElement( 49 void endElement(
50 const XMLCh* const uri, 50 const XMLCh* const uri,
51 const XMLCh* const localname, 51 const XMLCh* const localname,
52 const XMLCh* const qname); 52 const XMLCh* const qname);
53 53
54 void startDocument(); 54 void startDocument();
55 55
56 void endDocument(); 56 void endDocument();
57 57
58 private: 58 private:
61 61
62 bool davPropTag; 62 bool davPropTag;
63 DavProperty *property; 63 DavProperty *property;
64 }; 64 };
65 65
66
67 class ProppatchHandler : public DefaultHandler {
68 public:
69 ProppatchHandler(ProppatchRequest *rq, pool_handle_t *p);
70 virtual ~ProppatchHandler();
71
72 void startElement(
73 const XMLCh* const uri,
74 const XMLCh* const localname,
75 const XMLCh* const qname,
76 const Attributes& attrs);
77
78 void endElement(
79 const XMLCh* const uri,
80 const XMLCh* const localname,
81 const XMLCh* const qname);
82
83 void characters(const XMLCh *const chars, const XMLSize_t length);
84
85 void startDocument();
86
87 void endDocument();
88
89 private:
90 ProppatchRequest *davrq;
91 pool_handle_t *pool;
92
93 bool davPropTag;
94 XmlElement *rxprop; /* root of xml property */
95 XmlElement *cxprop; /* current element */
96 DavProperty *property;
97 int updateMode; /* 0 = set, 1 = remove */
98 };
99
66 #endif /* SAXHANDLER_H */ 100 #endif /* SAXHANDLER_H */
67 101

mercurial