ACSMDownloader

ACSMDownloader Git Source Tree

Root/include/rmsdk/dp.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 _DP_H
7#define _DP_H
8
9#include <uft.h>
10
11namespace dptimer {
12class Timer;
13}
14
15namespace dp {
16
17 class BindingManager;
18 class BindingManagerImpl;
19 class UFTDataManager;
20 class BufferDataManager;
21 class Unknown;
22 class Callback;
23 class DPBufferManager;
24 class Data;
25 class DataManager;
26 class DataRec;
27 class StringList;
28 class ErrorList;
29 class RefCounted;
30 class RawPointerVector;
31 class Releasable;
32 class String;
33 class StringDataManager;
34 class StringListImpl;
35 class TransientData;
36 class TransientDataManager;
37 class UTF16String;
38 class UTF16StringDataManager;
39 class VersionInfo;
40
41
42 class Unknown
43 {
44 public:
45 Unknown();
46
47 virtual ~Unknown();
48 virtual void* getInterfaceID();
49 virtual void* getOptionalInterface(char const*);
50
51 };
52
53 class BindingManager
54 {
55 public:
56 virtual ~BindingManager();
57 virtual void invalidateScriptWrapperFor(dp::Unknown*) = 0;
58 virtual void addRefNativeWrapper(dp::Unknown*) = 0;
59 virtual void releaseNativeWrapper(dp::Unknown*) = 0;
60 virtual void isPrivileged() = 0;
61
62 void getBindingManager();
63 void setBindingManager(dp::BindingManager*);
64
65 };
66
67 class BindingManagerImpl: public dp::BindingManager
68 {
69 public:
70 virtual ~BindingManagerImpl();
71 virtual void invalidateScriptWrapperFor(dp::Unknown*);
72 virtual void addRefNativeWrapper(dp::Unknown*);
73 virtual void releaseNativeWrapper(dp::Unknown*);
74 virtual void isPrivileged();
75
76 };
77
78 class DataManager
79 {
80 public:
81 virtual ~DataManager();
82 virtual void getTypeId() = 0;
83 virtual void dataPtr(void*, unsigned int*) = 0;
84 virtual void clone(dp::DataRec const*, dp::DataRec*) = 0;
85 virtual void release(void*) = 0;
86
87 };
88
89 class UFTDataManager: public dp::DataManager
90 {
91 public:
92 virtual ~UFTDataManager();
93 virtual void getTypeId() = 0;
94 virtual void dataPtr(void*, unsigned int*) = 0;
95 virtual void clone(dp::DataRec const*, dp::DataRec*);
96 virtual void release(void*);
97
98 };
99
100 class BufferDataManager: public dp::UFTDataManager
101 {
102 public:
103 virtual ~BufferDataManager();
104 virtual void getTypeId();
105 virtual void dataPtr(void*, unsigned int*);
106 virtual void clone(dp::DataRec const*, dp::DataRec*);
107 virtual void release(void*);
108
109 void typeId();
110
111 };
112
113 class RefCounted: public dp::Unknown
114 {
115 public:
116 RefCounted();
117
118 virtual ~RefCounted();
119 virtual void* getInterfaceID();
120 virtual void* getOptionalInterface(char const*);
121 virtual void addRef() = 0;
122 virtual void release() = 0;
123
124 };
125
126 class Callback: public dp::Unknown
127 {
128 public:
129 Callback();
130
131 virtual ~Callback();
132 virtual void* getInterfaceID();
133 virtual void* getOptionalInterface(char const*);
134 virtual void reportProgress(double);
135 virtual void reportError(dp::String const&) = 0;
136 virtual void invoke(dp::Unknown*) = 0;
137
138 };
139
140 class DPBufferManager: public uft::BufferManager
141 {
142 public:
143 DPBufferManager(dp::Data const&);
144
145 virtual ~DPBufferManager();
146 virtual void alloc(uft::BufferRec*, unsigned int, unsigned int);
147 virtual void realloc(uft::BufferRec*, unsigned int);
148 virtual void clone(uft::BufferRec const*, uft::BufferRec*, unsigned int);
149 virtual void pin(uft::BufferRec*);
150 virtual void unpin(uft::BufferRec*);
151 virtual void free(uft::BufferRec*);
152 virtual void toString(uft::BufferRec const*);
153
154 };
155
156 class Data
157 {
158 public:
159 Data() {data0=0; data1=0;}
160 Data(dp::Data const&);
161 Data(uft::Buffer const&);
162 Data(unsigned char const*, unsigned int);
163
164 ~Data();
165
166 unsigned char* data(unsigned int *size=0) const;
167 bool isNull() const;
168 unsigned int length() const;
169 operator uft::Buffer() const;
170 Data& operator=(dp::Data const&);
171
172 protected:
173void* data0;
174void* data1;
175 };
176
177 class DataRec
178 {
179 public:
180 DataRec();
181
182 };
183
184 class StringList: public dp::RefCounted
185 {
186 public:
187 virtual ~StringList();
188 virtual void* getInterfaceID();
189 virtual void* getOptionalInterface(char const*);
190 virtual void addRef() = 0;
191 virtual void release() = 0;
192 virtual void length() = 0;
193 virtual void item(unsigned int) = 0;
194
195 void makeStringListFromVector(uft::Vector const&);
196
197 };
198
199 class ErrorList: public dp::StringList
200 {
201 public:
202 virtual ~ErrorList();
203 virtual void* getInterfaceID();
204 virtual void* getOptionalInterface(char const*);
205 virtual void addRef() = 0;
206 virtual void release() = 0;
207 virtual void length() = 0;
208 virtual void item(unsigned int) = 0;
209 virtual void hasFatalErrors() = 0;
210 virtual void hasErrors() = 0;
211 virtual void hasWarnings() = 0;
212 virtual void clear() = 0;
213
214 };
215
216 class RawPointerVector
217 {
218 public:
219 ~RawPointerVector();
220
221 void insert(unsigned int, void*);
222 void remove(unsigned int);
223 void remove(void*);
224
225 };
226
227 class Releasable: public dp::Unknown
228 {
229 public:
230 Releasable();
231
232 virtual ~Releasable();
233 virtual void* getInterfaceID();
234 //virtual void* getOptionalInterface(char const*);
235 virtual void release() = 0;
236
237 };
238
239 class String: public Data
240 {
241 public:
242 String();
243 String(char const*);
244 String(char const*, unsigned int);
245 String(uft::String const&);
246 String(unsigned short const*);
247 String(unsigned short const*, unsigned int);
248String(const String& o) : Data(o) {}
249
250 ~String();
251
252 void base64Decode(dp::String const&);
253 void base64Encode(dp::Data const&);
254 operator uft::String() const;
255 String& operator=(dp::String const&);
256 void stringToTime(dp::String const&);
257 void timeToString(unsigned long long);
258uft::String uft() const;
259 void urlDecode(dp::String const&);
260 void urlEncode(dp::String const&);
261 char* utf8() const;
262 };
263
264 class StringDataManager: public dp::UFTDataManager
265 {
266 public:
267 virtual ~StringDataManager();
268 virtual void getTypeId();
269 virtual void dataPtr(void*, unsigned int*);
270 virtual void clone(dp::DataRec const*, dp::DataRec*);
271 virtual void release(void*);
272
273 void typeId();
274
275 };
276
277 class StringListImpl: public dp::StringList
278 {
279 public:
280 StringListImpl(uft::Vector const&);
281
282 virtual ~StringListImpl();
283 virtual void* getInterfaceID();
284 virtual void* getOptionalInterface(char const*);
285 virtual void addRef();
286 virtual void release();
287 virtual void length();
288 virtual void item(unsigned int);
289
290 };
291
292 class TransientData
293 {
294 public:
295 TransientData(unsigned char const*, unsigned int);
296
297 ~TransientData();
298
299 };
300
301 class TransientDataManager: public dp::DataManager
302 {
303 public:
304 TransientDataManager();
305
306 virtual ~TransientDataManager();
307 virtual void getTypeId();
308 virtual void dataPtr(void*, unsigned int*);
309 virtual void clone(dp::DataRec const*, dp::DataRec*);
310 virtual void release(void*);
311
312 void typeId();
313
314 };
315
316 class UTF16String
317 {
318 public:
319 UTF16String(char const*);
320 UTF16String(dp::String const&);
321 UTF16String(uft::UTF16String const&);
322 UTF16String(unsigned short const*);
323
324 };
325
326 class UTF16StringDataManager: public dp::UFTDataManager
327 {
328 public:
329 virtual ~UTF16StringDataManager();
330 virtual void getTypeId();
331 virtual void dataPtr(void*, unsigned int*);
332 virtual void clone(dp::DataRec const*, dp::DataRec*);
333 virtual void release(void*);
334
335 void typeId();
336
337 };
338
339 class VersionInfo
340 {
341 public:
342 VersionInfo(char const*, char const*);
343
344 };
345
346 template<typename T>
347 class ref{
348 public:
349 operator bool() const;
350 T* operator->() const {return m;}
351 ref(T* m):m(m){}
352ref(const ref<T>&);
353 void release();
354T* m;
355 };
356
357 template<typename T>
358 class List: public dp::RefCounted
359 {
360 public:
361 virtual ~List();
362 virtual void* getInterfaceID();
363 virtual void* getOptionalInterface(char const*);
364 virtual void addRef() = 0;
365 virtual void release() = 0;
366 virtual int length() = 0;
367 virtual dp::ref<T> operator[](unsigned int) = 0;
368
369 List();
370
371 };
372
373 template<typename T>
374 class list {
375 public:
376 list(dp::List<T>* p) :m(p){}
377int length() {return m->length();}
378dp::ref<T> operator[](unsigned int idx) {return (*m)[idx];}
379list<T> operator=(const list<T>& other);
380list(const list<T>& other);
381 private:
382dp::List<T>* m;
383 };
384
385 void broadcast(dp::String const&, dp::Data const&);
386 void coreInit();
387 void cryptRegisterOpenSSL();
388 int decodeBase64(char const* in, unsigned char* out, unsigned int outSize);
389 void decodeURLEncoding(char const*, unsigned char*, unsigned int);
390 void deviceMountRemovablePartitions();
391 void deviceRegisterExternal();
392 void deviceRegisterPrimary();
393 void documentRegisterEPUB();
394 void documentRegisterImages();
395 void documentRegisterOPS();
396 void documentRegisterPDF();
397 void encodeBase64(unsigned char const*, unsigned int, char*, unsigned int);
398 void getBroadcastFD();
399 dp::String getVersionInfo(dp::String const&);
400 int platformInit(unsigned int);
401 void processBroadcasts();
402 void registerForBroadcast(void (*)(dp::String const&, dp::Data const&));
403 void setVersionInfo(dp::String const&, dp::String const&);
404 void timerGetMasterClient();
405 void timerRegisterMasterTimer(dptimer::Timer*);
406
407}
408
409
410
411#endif // _DP_H

Archive Download this file

Branches