ACSMDownloader

ACSMDownloader Git Source Tree

Root/include/rmsdk/librmsdk.h

Source at commit 1f582f55f35b3a6898ced8d388e043ee81168bd1 created 4 months 21 days ago.
By Grégory Soutadé, First clean working version
1/*
2 File automatically generated by SOAdvancedDissector.py
3 More information at http://indefero.soutade.fr/p/soadvanceddissector
4*/
5
6#ifndef _LIBRMSDK_H
7#define _LIBRMSDK_H
8
9// #include <xpath.h>
10#include <mdom.h>
11#include <uft.h>
12//#include <mrend.h>
13//#include <cssparser.h>
14//#include <tahoecss.h>
15//#include <xda.h>
16#include <adept.h>
17
18#define WORKFLOW_AUTH_SIGN_IN 0x2
19#define WORKFLOW_ADD_SIGN_IN 0x4
20#define WORKFLOW_ACTIVATION 0x10
21#define WORKFLOW_FULFILLMENT 0x20
22#define WORKFLOW_LOAN_RETURN 0x80
23#define WORKFLOW_UPDATE_LOAD 0x100
24#define WORKFLOW_DOWNLOAD 0x200
25#define WORKFLOW_JOIN_ACCOUNTS 0x400
26#define WORKFLOW_GET_CREDENTIAL_LIST 0x800
27#define WORKFLOW_NOTIFICATION 0x1000
28
29namespace rmsdk {
30
31 adept::DRMProviderImpl* getProvider();
32
33}
34
35class MetroWisDOM: public mdom::DOM, public mdom::DataSink
36{
37public:
38 MetroWisDOM(MetroWisDOM&);
39 MetroWisDOM(MetroWisDOM&, bool);
40 MetroWisDOM(uft::ErrorHandler*, int);
41
42 virtual ~MetroWisDOM();
43 virtual void getDOMId();
44 virtual void getDOMCaps();
45 virtual void query(uft::Value const&, void*);
46 virtual void setElementConfigs(mdom::Node const&, mdom::ElementConfig const*, unsigned int);
47 virtual void setPreParser(uft::ValueParser*);
48 virtual mdom::Node getRoot();
49 virtual void getResource(uft::URL const&);
50 virtual void attachDOMListener(unsigned int, mdom::DOMListener*);
51 virtual void clearChanges();
52 virtual void cloneConfig();
53 virtual void setDOMHost(mdom::DOMHost*);
54 virtual void setMasterURL(uft::URL const&);
55 virtual void writeData(uft::URL const&, unsigned char const*, unsigned int, mdom::ParseException*, mdom::ExternalEntityResolver*);
56 virtual void xformsProcessorHalted();
57 virtual void xformsFatalError(uft::String);
58
59};
60
61class WisDOMTraversal;
62class WisDOMTree;
63class WDLinkSnapshot{};
64class WDIdAttrValue{};
65class WisDOM_NodeTypes{};
66class WDNodeReference;
67class WDNodeClass;
68
69class WDLinkAttrValue
70{
71public:
72 WDLinkAttrValue(uft::sref<mdom::AttrConfig> const&, uft::Value const&, WisDOMTraversal*, int, WisDOMTraversal*, int);
73
74 void query(uft::Value const&, void*);
75 void staticInit();
76
77 void* s_descriptor;
78
79};
80
81class WDNodeParserContext: public uft::ParserContext
82{
83public:
84 WDNodeParserContext(mdom::Node const&, unsigned int);
85
86 virtual void resolveNSPrefix(uft::String const&);
87 virtual void prefixBindingsChanged();
88 virtual void getNodeType();
89
90};
91
92class WDSelectorLink
93{
94public:
95 WDSelectorLink(uft::Value const&, xpath::Expression const&, mdom::Node&, uft::sref<mdom::AttrConfig> const&);
96
97 void staticInit();
98
99 void* s_descriptor;
100
101};
102
103class WDStringHash
104{
105public:
106 WDStringHash(WDStringHash&);
107 WDStringHash(WisDOMTree*, unsigned long);
108
109 virtual ~WDStringHash();
110
111 void get(unsigned long) const;
112 void hash(char const*, unsigned long);
113 void lookup(char const*, unsigned long*, unsigned long) const;
114 void minimizeHash(int*);
115 void put(char const*);
116
117};
118
119class WisDOMMemory
120{
121public:
122 WisDOMMemory();
123
124 ~WisDOMMemory();
125
126 void Alloc(unsigned int);
127 void Free(void*);
128 void Realloc(void*, unsigned int);
129 void appendCommentChars(char*, int, int);
130 void appendDataChars(char*, int, int, bool);
131 void getCommentStringBuffer(int);
132 void getDataStringBuffer(int);
133 void trimCommentChars();
134 void trimDataChars();
135
136};
137
138class WisDOMTraversal: public mdom::Traversal
139{
140public:
141 WisDOMTraversal(MetroWisDOM*, WisDOMTraversal const&);
142 WisDOMTraversal(MetroWisDOM*, uft::URL const&);
143 WisDOMTraversal(WisDOMTraversal const&, WisDOMTree*);
144
145 virtual void incRef(mdom::NodeData*);
146 virtual void decRef(mdom::NodeData*);
147 virtual void getDOM();
148 virtual void owner(mdom::Node*);
149 virtual void parent(mdom::Node*);
150 virtual void child(mdom::Node*, int, bool);
151 virtual void sibling(mdom::Node*, int, bool);
152 virtual void childCount(mdom::Node const*, bool);
153 virtual void nextLink(mdom::Node const*, unsigned int, unsigned int, mdom::Node*, uft::Value const**);
154 virtual void finishLinkIteration(mdom::Node const*, unsigned int, unsigned int);
155 virtual void create(mdom::Node*, int, uft::Value const&);
156 virtual void clone(mdom::Node*, bool);
157 virtual void insertBefore(mdom::Node const*, mdom::Node const*, mdom::Node const*);
158 virtual void remove(mdom::Node const*);
159 virtual void getNodeType(mdom::Node const*);
160 virtual uft::String getNodeName(mdom::Node const*);
161 virtual uft::Value getNodeValue(mdom::Node const*, unsigned int, unsigned int);
162 virtual void changeNodeValue(mdom::Node const*, unsigned int, unsigned int, uft::Value const&);
163 virtual void resolvePrefix(mdom::Node const*, uft::String const&);
164 virtual void getBaseURL(mdom::Node const*);
165 virtual void nextAttribute(mdom::Node const*, unsigned int, unsigned int, uft::Value const**, uft::Value const**);
166 virtual void finishAttributeIteration(mdom::Node const*, unsigned int, unsigned int);
167 virtual void getAttribute(mdom::Node const*, uft::Value const&);
168 virtual void setAttribute(mdom::Node const*, uft::Value const&, uft::Value const&);
169 virtual void compareNodes(mdom::Node const*, mdom::Node const*);
170 virtual void evaluate(xpath::Expression const&, mdom::Node const*, xpath::Context*, xpath::ResultType);
171 virtual void iterate(xpath::Expression const&, xpath::Context*, mdom::Node*);
172 virtual void finishIteration(xpath::Expression const&, xpath::Context*);
173 virtual void getChangeFlags(mdom::Node const*);
174 virtual void invalidate(mdom::Node const*, unsigned int);
175 virtual void iterateChangedAttributes(mdom::Node const*, unsigned int, uft::Value*, uft::Value*);
176 virtual void finishChangedAttributeIteration(mdom::Node const*, unsigned int);
177 virtual void iterateNodeValueChanges(mdom::Node const*, unsigned int, mdom::TextChangeRecord*);
178 virtual void finishNodeValueChangeIteration(mdom::Node const*, unsigned int);
179 virtual void iterateRemovedChildren(mdom::Node const*, unsigned int, mdom::RemovedChildRecord*);
180 virtual void finishRemovedChildIteration(mdom::Node const*, unsigned int);
181 virtual void getAttachment(mdom::Node const*, uft::Value const&);
182 virtual void setAttachment(mdom::Node const*, uft::Value const&, uft::Value const&);
183 virtual void getAttachment(uft::Value const&);
184 virtual void setAttachment(uft::Value const&, uft::Value const&);
185 virtual void getReference(mdom::Node const*, bool);
186 virtual void destroy();
187 virtual ~WisDOMTraversal();
188 virtual void nextNamespaceDecl(mdom::Node const*, unsigned int, unsigned int, uft::Value const**);
189 virtual void finishNamespaceIteration(mdom::Node const*, unsigned int, unsigned int);
190
191 void addRulesToList(mdom::Node const*, uft::Vector const&, uft::Value const&);
192 void afterInsertion(int);
193 void afterRemoval(int);
194 void afterShadowInsertion(int, uft::Dict&);
195 void allocLinkSnap();
196 void beforeInsertion(int, uft::Dict&);
197 void beforeRemoval(int, uft::Dict&);
198 void cacheChangedAttribute(int, uft::Value const&, uft::Value const&);
199 void cacheChangedValue(int, uft::Value const&);
200 void characterData(char const*, int);
201 void clearChangeCaches();
202 void clearChanges();
203 void cloneChildren(int, int, int, int);
204 void cloneNode(int);
205 void comment(char const*, bool);
206 void createElementWithQName(uft::QName const&, char const**, bool);
207 void createSelectorLink(mdom::Node*, mdom::Reference, uft::Value const&);
208 void createTextNode(bool);
209 void deleteLinkSnap(WDLinkSnapshot*);
210 void detachChildren(int, int, int);
211 void detachNode(int);
212 void docTypeName(char const*);
213 void docTypePublicID(char const*);
214 void docTypeSystemID(char const*);
215 void endCDATASection();
216 void endElement(char const*);
217 void endNamespace(char const*);
218 void ensureNSStackCapacity();
219 void filterAndAddRulesToList(mdom::Node const*, uft::Vector const&, uft::Value const&);
220 void findDOMInsertIndex(int, int, int);
221 void findFragInsertIndex(int, int, int, int*, int*, int*);
222 void findLinkAttr(xpath::Expression const&, int, uft::sref<WDLinkAttrValue> const&);
223 void findUnattachedNodeIdx(int, int*, int*);
224 void getAttributeByName(int, uft::Value const&);
225 void getAttributeConfig(int, uft::Value const&);
226 void getBranchRoot(int);
227 void getChangedValue(int, unsigned int);
228 void getDOMTree();
229 void getIdAttr(int);
230 void getIdAttrFromMap(int, uft::String const&);
231 void getIdMap();
232 void getLinkCache(int);
233 void getLocalizedIdMap(int);
234 void getNode(WDNodeReference*);
235 void getRoot();
236 void getSelectorLink(int);
237 void initDocumentModel(bool);
238 void internalEntity(char const*, char const*, int);
239 void newAttribute(int, uft::Value const&, uft::Value const&);
240 void parsedAttribute(int, WDNodeClass*, uft::Value const&, uft::Value const&);
241 void processSimpleMatch(xpath::SimpleMatch const&, uft::Value const&, bool);
242 void processingInstruction(char const*, char const*, bool);
243 void reconfigureAttribute(mdom::Node*, int, int, uft::QName const&, WDNodeClass*, bool);
244 void reconfigureElement(mdom::Node*, int, WDNodeClass*, bool);
245 void registerId(uft::Dict&, uft::sref<WDIdAttrValue> const&);
246 void registerLink(int, uft::sref<WDLinkAttrValue> const&);
247 void remapFromDocIndex(int);
248 void removeAttribute(int, int);
249 void removeSelectorLink(mdom::Node*, mdom::Reference, uft::Value const&);
250 void resolvePrefixLocal(int, uft::String const&);
251 void setDirtyBits(int, unsigned int);
252 void startCDATASection();
253 void startElement(char const*, char const**, bool);
254 void startNamespace(char const*, char const*);
255 void staticInit();
256 void unregisterId(uft::Dict&, uft::sref<WDIdAttrValue> const&);
257 void unregisterLink(int, uft::sref<WDLinkAttrValue> const&);
258 void updateSelectorLinks();
259 void writeData(unsigned char const*, unsigned int, mdom::ParseException*, mdom::ExternalEntityResolver*);
260
261 void* s_descriptor;
262
263};
264
265class WisDOMTree
266{
267public:
268 WisDOMTree(WisDOMTraversal*, int);
269 WisDOMTree(WisDOMTree&);
270 WisDOMTree(int);
271
272 ~WisDOMTree();
273
274 void addAttribute(int, uft::Value const&, uft::Value const&);
275 void addDynamicAttribute(int, uft::Value const&, uft::Value const&, int);
276 void addNamespace(int, uft::Value const&);
277 void addNode(WisDOM_NodeTypes, int, int, int, uft::Value const&, bool);
278 void appendHashKey(char const*, int, int);
279 void cacheUnattachedNode(int);
280 void clearChanges();
281 void closeElements(_IO_FILE*, int);
282 void copyAttribute(int, uft::Value, uft::Value);
283 void copyNode(int);
284 void ensureAttributeCapacity();
285 void ensureDynamicAttributeCapacity();
286 void ensureNamespaceCapacity();
287 void ensureNodeCapacity();
288 void ensurePriorIndex();
289 void freePriorIndex();
290 void getRoot();
291 void initDocumentModel(bool);
292 void insertUnattachedNode(int, int, int);
293 void isUsingNamespaces();
294 void makePriorIndex();
295 void makeSerialIndex();
296 void serializeAttribute(_IO_FILE*, uft::Value, uft::Value);
297 void serializeComment(_IO_FILE*, int);
298 void serializeDOM(_IO_FILE*);
299 void serializeElement(_IO_FILE*, int);
300 void serializeNamespace(_IO_FILE*, int);
301 void serializePI(_IO_FILE*, int);
302 void serializeText(_IO_FILE*, int);
303 void setTraversal(WisDOMTraversal*);
304 void writeData(unsigned char const*, unsigned int, mdom::ParseException*, mdom::ExternalEntityResolver*);
305
306};
307
308#endif // _LIBRMSDK_H

Archive Download this file

Branches