]>
Commit | Line | Data |
---|---|---|
1 | /* | |
2 | * FILE : src/msw/filesys.cpp | |
3 | * | |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
6 | * Version 1.1 (Build 883) | |
7 | * | |
8 | * Portions Copyright (c) 1995-1998 | |
9 | * The University of Utah and The Regents of the University of California. | |
10 | * Permission is granted to distribute this file in any manner provided | |
11 | * this notice remains intact. | |
12 | * | |
13 | * Do not make changes to this file--changes will be lost! | |
14 | * | |
15 | */ | |
16 | ||
17 | ||
18 | #define SWIGCODE | |
19 | /* Implementation : PYTHON */ | |
20 | ||
21 | #define SWIGPYTHON | |
22 | #include "Python.h" | |
23 | ||
24 | #include <string.h> | |
25 | #include <stdlib.h> | |
26 | /* Definitions for Windows/Unix exporting */ | |
27 | #if defined(__WIN32__) | |
28 | # if defined(_MSC_VER) | |
29 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
30 | # else | |
31 | # if defined(__BORLANDC__) | |
32 | # define SWIGEXPORT(a) a _export | |
33 | # else | |
34 | # define SWIGEXPORT(a) a | |
35 | # endif | |
36 | # endif | |
37 | #else | |
38 | # define SWIGEXPORT(a) a | |
39 | #endif | |
40 | ||
41 | #ifdef __cplusplus | |
42 | extern "C" { | |
43 | #endif | |
44 | extern void SWIG_MakePtr(char *, void *, char *); | |
45 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
46 | extern char *SWIG_GetPtr(char *, void **, char *); | |
47 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); | |
48 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
49 | extern PyObject *SWIG_newvarlink(void); | |
50 | #ifdef __cplusplus | |
51 | } | |
52 | #endif | |
53 | #define SWIG_init initfilesysc | |
54 | ||
55 | #define SWIG_name "filesysc" | |
56 | ||
57 | #include "helpers.h" | |
58 | #include "pyistream.h" | |
59 | #include <wx/filesys.h> | |
60 | #include <wx/fs_inet.h> | |
61 | #include <wx/fs_mem.h> | |
62 | #include <wx/fs_zip.h> | |
63 | ||
64 | ||
65 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
66 | PyObject* o2; | |
67 | PyObject* o3; | |
68 | ||
69 | if (!target) { | |
70 | target = o; | |
71 | } else if (target == Py_None) { | |
72 | Py_DECREF(Py_None); | |
73 | target = o; | |
74 | } else { | |
75 | if (!PyTuple_Check(target)) { | |
76 | o2 = target; | |
77 | target = PyTuple_New(1); | |
78 | PyTuple_SetItem(target, 0, o2); | |
79 | } | |
80 | o3 = PyTuple_New(1); | |
81 | PyTuple_SetItem(o3, 0, o); | |
82 | ||
83 | o2 = target; | |
84 | target = PySequence_Concat(o2, o3); | |
85 | Py_DECREF(o2); | |
86 | Py_DECREF(o3); | |
87 | } | |
88 | return target; | |
89 | } | |
90 | ||
91 | // wxPyFileSystemHandler will be the Python class wxFileSystemHandler and handling | |
92 | // the callback functions | |
93 | class wxPyFileSystemHandler : public wxFileSystemHandler { | |
94 | public: | |
95 | wxPyFileSystemHandler() : wxFileSystemHandler() {} | |
96 | ||
97 | DEC_PYCALLBACK_BOOL_STRING_pure(CanOpen); | |
98 | DEC_PYCALLBACK_FSF_FSSTRING_pure(OpenFile); | |
99 | DEC_PYCALLBACK_STRING_STRINGINT_pure(FindFirst); | |
100 | DEC_PYCALLBACK_STRING__pure(FindNext); | |
101 | ||
102 | wxString GetProtocol(const wxString& location) { | |
103 | return wxFileSystemHandler::GetProtocol(location); | |
104 | } | |
105 | ||
106 | wxString GetLeftLocation(const wxString& location) { | |
107 | return wxFileSystemHandler::GetLeftLocation(location); | |
108 | } | |
109 | ||
110 | wxString GetAnchor(const wxString& location) { | |
111 | return wxFileSystemHandler::GetAnchor(location); | |
112 | } | |
113 | ||
114 | wxString GetRightLocation(const wxString& location) { | |
115 | return wxFileSystemHandler::GetRightLocation(location); | |
116 | } | |
117 | ||
118 | wxString GetMimeTypeFromExt(const wxString& location) { | |
119 | return wxFileSystemHandler::GetMimeTypeFromExt(location); | |
120 | } | |
121 | ||
122 | PYPRIVATE; | |
123 | }; | |
124 | ||
125 | ||
126 | IMP_PYCALLBACK_BOOL_STRING_pure(wxPyFileSystemHandler, wxFileSystemHandler, CanOpen); | |
127 | IMP_PYCALLBACK_FSF_FSSTRING_pure(wxPyFileSystemHandler, wxFileSystemHandler, OpenFile); | |
128 | IMP_PYCALLBACK_STRING_STRINGINT_pure(wxPyFileSystemHandler, wxFileSystemHandler, FindFirst); | |
129 | IMP_PYCALLBACK_STRING__pure(wxPyFileSystemHandler, wxFileSystemHandler, FindNext); | |
130 | ||
131 | void __wxMemoryFSHandler_AddFile_wxImage(const wxString& filename, | |
132 | wxImage& image, | |
133 | long type) { | |
134 | wxMemoryFSHandler::AddFile(filename, image, type); | |
135 | } | |
136 | ||
137 | void __wxMemoryFSHandler_AddFile_wxBitmap(const wxString& filename, | |
138 | const wxBitmap& bitmap, | |
139 | long type) { | |
140 | wxMemoryFSHandler::AddFile(filename, bitmap, type); | |
141 | } | |
142 | ||
143 | void __wxMemoryFSHandler_AddFile_Data(const wxString& filename, | |
144 | PyObject* data) { | |
145 | ||
146 | wxMemoryFSHandler::AddFile(filename, | |
147 | // TODO: Verify data type | |
148 | (void*)PyString_AsString(data), | |
149 | (size_t)PyString_Size(data)); | |
150 | } | |
151 | #ifdef __cplusplus | |
152 | extern "C" { | |
153 | #endif | |
154 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
155 | PyObject * _resultobj; | |
156 | wxString * _arg0; | |
157 | wxImage * _arg1; | |
158 | long _arg2; | |
159 | PyObject * _obj0 = 0; | |
160 | PyObject * _argo1 = 0; | |
161 | char *_kwnames[] = { "filename","image","type", NULL }; | |
162 | ||
163 | self = self; | |
164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOl:__wxMemoryFSHandler_AddFile_wxImage",_kwnames,&_obj0,&_argo1,&_arg2)) | |
165 | return NULL; | |
166 | { | |
167 | _arg0 = wxString_in_helper(_obj0); | |
168 | if (_arg0 == NULL) | |
169 | return NULL; | |
170 | } | |
171 | if (_argo1) { | |
172 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImage_p")) { | |
173 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of __wxMemoryFSHandler_AddFile_wxImage. Expected _wxImage_p."); | |
174 | return NULL; | |
175 | } | |
176 | } | |
177 | { | |
178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
179 | __wxMemoryFSHandler_AddFile_wxImage(*_arg0,*_arg1,_arg2); | |
180 | ||
181 | wxPyEndAllowThreads(__tstate); | |
182 | if (PyErr_Occurred()) return NULL; | |
183 | } Py_INCREF(Py_None); | |
184 | _resultobj = Py_None; | |
185 | { | |
186 | if (_obj0) | |
187 | delete _arg0; | |
188 | } | |
189 | return _resultobj; | |
190 | } | |
191 | ||
192 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
193 | PyObject * _resultobj; | |
194 | wxString * _arg0; | |
195 | wxBitmap * _arg1; | |
196 | long _arg2; | |
197 | PyObject * _obj0 = 0; | |
198 | PyObject * _argo1 = 0; | |
199 | char *_kwnames[] = { "filename","bitmap","type", NULL }; | |
200 | ||
201 | self = self; | |
202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOl:__wxMemoryFSHandler_AddFile_wxBitmap",_kwnames,&_obj0,&_argo1,&_arg2)) | |
203 | return NULL; | |
204 | { | |
205 | _arg0 = wxString_in_helper(_obj0); | |
206 | if (_arg0 == NULL) | |
207 | return NULL; | |
208 | } | |
209 | if (_argo1) { | |
210 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
211 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of __wxMemoryFSHandler_AddFile_wxBitmap. Expected _wxBitmap_p."); | |
212 | return NULL; | |
213 | } | |
214 | } | |
215 | { | |
216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
217 | __wxMemoryFSHandler_AddFile_wxBitmap(*_arg0,*_arg1,_arg2); | |
218 | ||
219 | wxPyEndAllowThreads(__tstate); | |
220 | if (PyErr_Occurred()) return NULL; | |
221 | } Py_INCREF(Py_None); | |
222 | _resultobj = Py_None; | |
223 | { | |
224 | if (_obj0) | |
225 | delete _arg0; | |
226 | } | |
227 | return _resultobj; | |
228 | } | |
229 | ||
230 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_Data(PyObject *self, PyObject *args, PyObject *kwargs) { | |
231 | PyObject * _resultobj; | |
232 | wxString * _arg0; | |
233 | PyObject * _arg1; | |
234 | PyObject * _obj0 = 0; | |
235 | PyObject * _obj1 = 0; | |
236 | char *_kwnames[] = { "filename","data", NULL }; | |
237 | ||
238 | self = self; | |
239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:__wxMemoryFSHandler_AddFile_Data",_kwnames,&_obj0,&_obj1)) | |
240 | return NULL; | |
241 | { | |
242 | _arg0 = wxString_in_helper(_obj0); | |
243 | if (_arg0 == NULL) | |
244 | return NULL; | |
245 | } | |
246 | { | |
247 | _arg1 = _obj1; | |
248 | } | |
249 | { | |
250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
251 | __wxMemoryFSHandler_AddFile_Data(*_arg0,_arg1); | |
252 | ||
253 | wxPyEndAllowThreads(__tstate); | |
254 | if (PyErr_Occurred()) return NULL; | |
255 | } Py_INCREF(Py_None); | |
256 | _resultobj = Py_None; | |
257 | { | |
258 | if (_obj0) | |
259 | delete _arg0; | |
260 | } | |
261 | return _resultobj; | |
262 | } | |
263 | ||
264 | static void *SwigwxFSFileTowxObject(void *ptr) { | |
265 | wxFSFile *src; | |
266 | wxObject *dest; | |
267 | src = (wxFSFile *) ptr; | |
268 | dest = (wxObject *) src; | |
269 | return (void *) dest; | |
270 | } | |
271 | ||
272 | #define new_wxFSFile(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxFSFile(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
273 | static PyObject *_wrap_new_wxFSFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
274 | PyObject * _resultobj; | |
275 | wxFSFile * _result; | |
276 | wxInputStream * _arg0; | |
277 | wxString * _arg1; | |
278 | wxString * _arg2; | |
279 | wxString * _arg3; | |
280 | wxDateTime * _arg4; | |
281 | wxPyInputStream * temp; | |
282 | bool created; | |
283 | PyObject * _obj0 = 0; | |
284 | PyObject * _obj1 = 0; | |
285 | PyObject * _obj2 = 0; | |
286 | PyObject * _obj3 = 0; | |
287 | PyObject * _argo4 = 0; | |
288 | char *_kwnames[] = { "stream","loc","mimetype","anchor","modif", NULL }; | |
289 | char _ptemp[128]; | |
290 | ||
291 | self = self; | |
292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOOO:new_wxFSFile",_kwnames,&_obj0,&_obj1,&_obj2,&_obj3,&_argo4)) | |
293 | return NULL; | |
294 | { | |
295 | if (SWIG_GetPtrObj(_obj0, (void **) &temp, "_wxPyInputStream_p") == 0) { | |
296 | _arg0 = temp->m_wxis; | |
297 | created = FALSE; | |
298 | } else { | |
299 | _arg0 = wxPyCBInputStream_create(_obj0, FALSE); | |
300 | if (_arg0 == NULL) { | |
301 | PyErr_SetString(PyExc_TypeError,"Expected _wxInputStream_p or Python file-like object."); | |
302 | return NULL; | |
303 | } | |
304 | created = TRUE; | |
305 | } | |
306 | } | |
307 | { | |
308 | _arg1 = wxString_in_helper(_obj1); | |
309 | if (_arg1 == NULL) | |
310 | return NULL; | |
311 | } | |
312 | { | |
313 | _arg2 = wxString_in_helper(_obj2); | |
314 | if (_arg2 == NULL) | |
315 | return NULL; | |
316 | } | |
317 | { | |
318 | _arg3 = wxString_in_helper(_obj3); | |
319 | if (_arg3 == NULL) | |
320 | return NULL; | |
321 | } | |
322 | if (_argo4) { | |
323 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
324 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxDateTime_p")) { | |
325 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of new_wxFSFile. Expected _wxDateTime_p."); | |
326 | return NULL; | |
327 | } | |
328 | } | |
329 | { | |
330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
331 | _result = (wxFSFile *)new_wxFSFile(_arg0,*_arg1,*_arg2,*_arg3,*_arg4); | |
332 | ||
333 | wxPyEndAllowThreads(__tstate); | |
334 | if (PyErr_Occurred()) return NULL; | |
335 | } if (_result) { | |
336 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFSFile_p"); | |
337 | _resultobj = Py_BuildValue("s",_ptemp); | |
338 | } else { | |
339 | Py_INCREF(Py_None); | |
340 | _resultobj = Py_None; | |
341 | } | |
342 | { | |
343 | if (created) | |
344 | delete _arg0; | |
345 | } | |
346 | { | |
347 | if (_obj1) | |
348 | delete _arg1; | |
349 | } | |
350 | { | |
351 | if (_obj2) | |
352 | delete _arg2; | |
353 | } | |
354 | { | |
355 | if (_obj3) | |
356 | delete _arg3; | |
357 | } | |
358 | return _resultobj; | |
359 | } | |
360 | ||
361 | #define wxFSFile_GetStream(_swigobj) (_swigobj->GetStream()) | |
362 | static PyObject *_wrap_wxFSFile_GetStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
363 | PyObject * _resultobj; | |
364 | wxInputStream * _result; | |
365 | wxFSFile * _arg0; | |
366 | PyObject * _argo0 = 0; | |
367 | char *_kwnames[] = { "self", NULL }; | |
368 | ||
369 | self = self; | |
370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFSFile_GetStream",_kwnames,&_argo0)) | |
371 | return NULL; | |
372 | if (_argo0) { | |
373 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
374 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFSFile_p")) { | |
375 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFSFile_GetStream. Expected _wxFSFile_p."); | |
376 | return NULL; | |
377 | } | |
378 | } | |
379 | { | |
380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
381 | _result = (wxInputStream *)wxFSFile_GetStream(_arg0); | |
382 | ||
383 | wxPyEndAllowThreads(__tstate); | |
384 | if (PyErr_Occurred()) return NULL; | |
385 | }{ | |
386 | wxPyInputStream * _ptr = NULL; | |
387 | ||
388 | if (_result) { | |
389 | _ptr = new wxPyInputStream(_result); | |
390 | } | |
391 | _resultobj = wxPyConstructObject(_ptr, wxT("wxInputStream"), TRUE); | |
392 | } | |
393 | return _resultobj; | |
394 | } | |
395 | ||
396 | #define wxFSFile_GetMimeType(_swigobj) (_swigobj->GetMimeType()) | |
397 | static PyObject *_wrap_wxFSFile_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
398 | PyObject * _resultobj; | |
399 | wxString * _result; | |
400 | wxFSFile * _arg0; | |
401 | PyObject * _argo0 = 0; | |
402 | char *_kwnames[] = { "self", NULL }; | |
403 | ||
404 | self = self; | |
405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFSFile_GetMimeType",_kwnames,&_argo0)) | |
406 | return NULL; | |
407 | if (_argo0) { | |
408 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
409 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFSFile_p")) { | |
410 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFSFile_GetMimeType. Expected _wxFSFile_p."); | |
411 | return NULL; | |
412 | } | |
413 | } | |
414 | { | |
415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
416 | const wxString & _result_ref = wxFSFile_GetMimeType(_arg0); | |
417 | _result = (wxString *) &_result_ref; | |
418 | ||
419 | wxPyEndAllowThreads(__tstate); | |
420 | if (PyErr_Occurred()) return NULL; | |
421 | }{ | |
422 | #if wxUSE_UNICODE | |
423 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); | |
424 | #else | |
425 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
426 | #endif | |
427 | } | |
428 | return _resultobj; | |
429 | } | |
430 | ||
431 | #define wxFSFile_GetLocation(_swigobj) (_swigobj->GetLocation()) | |
432 | static PyObject *_wrap_wxFSFile_GetLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
433 | PyObject * _resultobj; | |
434 | wxString * _result; | |
435 | wxFSFile * _arg0; | |
436 | PyObject * _argo0 = 0; | |
437 | char *_kwnames[] = { "self", NULL }; | |
438 | ||
439 | self = self; | |
440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFSFile_GetLocation",_kwnames,&_argo0)) | |
441 | return NULL; | |
442 | if (_argo0) { | |
443 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
444 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFSFile_p")) { | |
445 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFSFile_GetLocation. Expected _wxFSFile_p."); | |
446 | return NULL; | |
447 | } | |
448 | } | |
449 | { | |
450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
451 | const wxString & _result_ref = wxFSFile_GetLocation(_arg0); | |
452 | _result = (wxString *) &_result_ref; | |
453 | ||
454 | wxPyEndAllowThreads(__tstate); | |
455 | if (PyErr_Occurred()) return NULL; | |
456 | }{ | |
457 | #if wxUSE_UNICODE | |
458 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); | |
459 | #else | |
460 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
461 | #endif | |
462 | } | |
463 | return _resultobj; | |
464 | } | |
465 | ||
466 | #define wxFSFile_GetAnchor(_swigobj) (_swigobj->GetAnchor()) | |
467 | static PyObject *_wrap_wxFSFile_GetAnchor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
468 | PyObject * _resultobj; | |
469 | wxString * _result; | |
470 | wxFSFile * _arg0; | |
471 | PyObject * _argo0 = 0; | |
472 | char *_kwnames[] = { "self", NULL }; | |
473 | ||
474 | self = self; | |
475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFSFile_GetAnchor",_kwnames,&_argo0)) | |
476 | return NULL; | |
477 | if (_argo0) { | |
478 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
479 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFSFile_p")) { | |
480 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFSFile_GetAnchor. Expected _wxFSFile_p."); | |
481 | return NULL; | |
482 | } | |
483 | } | |
484 | { | |
485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
486 | const wxString & _result_ref = wxFSFile_GetAnchor(_arg0); | |
487 | _result = (wxString *) &_result_ref; | |
488 | ||
489 | wxPyEndAllowThreads(__tstate); | |
490 | if (PyErr_Occurred()) return NULL; | |
491 | }{ | |
492 | #if wxUSE_UNICODE | |
493 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); | |
494 | #else | |
495 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
496 | #endif | |
497 | } | |
498 | return _resultobj; | |
499 | } | |
500 | ||
501 | #define wxFSFile_GetModificationTime(_swigobj) (_swigobj->GetModificationTime()) | |
502 | static PyObject *_wrap_wxFSFile_GetModificationTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
503 | PyObject * _resultobj; | |
504 | wxDateTime * _result; | |
505 | wxFSFile * _arg0; | |
506 | PyObject * _argo0 = 0; | |
507 | char *_kwnames[] = { "self", NULL }; | |
508 | char _ptemp[128]; | |
509 | ||
510 | self = self; | |
511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFSFile_GetModificationTime",_kwnames,&_argo0)) | |
512 | return NULL; | |
513 | if (_argo0) { | |
514 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
515 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFSFile_p")) { | |
516 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFSFile_GetModificationTime. Expected _wxFSFile_p."); | |
517 | return NULL; | |
518 | } | |
519 | } | |
520 | { | |
521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
522 | _result = new wxDateTime (wxFSFile_GetModificationTime(_arg0)); | |
523 | ||
524 | wxPyEndAllowThreads(__tstate); | |
525 | if (PyErr_Occurred()) return NULL; | |
526 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateTime_p"); | |
527 | _resultobj = Py_BuildValue("s",_ptemp); | |
528 | return _resultobj; | |
529 | } | |
530 | ||
531 | static void *SwigwxFileSystemHandlerTowxObject(void *ptr) { | |
532 | wxFileSystemHandler *src; | |
533 | wxObject *dest; | |
534 | src = (wxFileSystemHandler *) ptr; | |
535 | dest = (wxObject *) src; | |
536 | return (void *) dest; | |
537 | } | |
538 | ||
539 | static void *SwigwxPyFileSystemHandlerTowxFileSystemHandler(void *ptr) { | |
540 | wxPyFileSystemHandler *src; | |
541 | wxFileSystemHandler *dest; | |
542 | src = (wxPyFileSystemHandler *) ptr; | |
543 | dest = (wxFileSystemHandler *) src; | |
544 | return (void *) dest; | |
545 | } | |
546 | ||
547 | static void *SwigwxPyFileSystemHandlerTowxObject(void *ptr) { | |
548 | wxPyFileSystemHandler *src; | |
549 | wxObject *dest; | |
550 | src = (wxPyFileSystemHandler *) ptr; | |
551 | dest = (wxObject *) src; | |
552 | return (void *) dest; | |
553 | } | |
554 | ||
555 | #define new_wxFileSystemHandler() (new wxPyFileSystemHandler()) | |
556 | static PyObject *_wrap_new_wxFileSystemHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
557 | PyObject * _resultobj; | |
558 | wxPyFileSystemHandler * _result; | |
559 | char *_kwnames[] = { NULL }; | |
560 | char _ptemp[128]; | |
561 | ||
562 | self = self; | |
563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxFileSystemHandler",_kwnames)) | |
564 | return NULL; | |
565 | { | |
566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
567 | _result = (wxPyFileSystemHandler *)new_wxFileSystemHandler(); | |
568 | ||
569 | wxPyEndAllowThreads(__tstate); | |
570 | if (PyErr_Occurred()) return NULL; | |
571 | } if (_result) { | |
572 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyFileSystemHandler_p"); | |
573 | _resultobj = Py_BuildValue("s",_ptemp); | |
574 | } else { | |
575 | Py_INCREF(Py_None); | |
576 | _resultobj = Py_None; | |
577 | } | |
578 | return _resultobj; | |
579 | } | |
580 | ||
581 | #define wxFileSystemHandler__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) | |
582 | static PyObject *_wrap_wxFileSystemHandler__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
583 | PyObject * _resultobj; | |
584 | wxPyFileSystemHandler * _arg0; | |
585 | PyObject * _arg1; | |
586 | PyObject * _arg2; | |
587 | PyObject * _argo0 = 0; | |
588 | PyObject * _obj1 = 0; | |
589 | PyObject * _obj2 = 0; | |
590 | char *_kwnames[] = { "self","self","_class", NULL }; | |
591 | ||
592 | self = self; | |
593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxFileSystemHandler__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) | |
594 | return NULL; | |
595 | if (_argo0) { | |
596 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
597 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFileSystemHandler_p")) { | |
598 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileSystemHandler__setCallbackInfo. Expected _wxPyFileSystemHandler_p."); | |
599 | return NULL; | |
600 | } | |
601 | } | |
602 | { | |
603 | _arg1 = _obj1; | |
604 | } | |
605 | { | |
606 | _arg2 = _obj2; | |
607 | } | |
608 | { | |
609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
610 | wxFileSystemHandler__setCallbackInfo(_arg0,_arg1,_arg2); | |
611 | ||
612 | wxPyEndAllowThreads(__tstate); | |
613 | if (PyErr_Occurred()) return NULL; | |
614 | } Py_INCREF(Py_None); | |
615 | _resultobj = Py_None; | |
616 | return _resultobj; | |
617 | } | |
618 | ||
619 | #define wxFileSystemHandler_CanOpen(_swigobj,_swigarg0) (_swigobj->CanOpen(_swigarg0)) | |
620 | static PyObject *_wrap_wxFileSystemHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
621 | PyObject * _resultobj; | |
622 | bool _result; | |
623 | wxPyFileSystemHandler * _arg0; | |
624 | wxString * _arg1; | |
625 | PyObject * _argo0 = 0; | |
626 | PyObject * _obj1 = 0; | |
627 | char *_kwnames[] = { "self","location", NULL }; | |
628 | ||
629 | self = self; | |
630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileSystemHandler_CanOpen",_kwnames,&_argo0,&_obj1)) | |
631 | return NULL; | |
632 | if (_argo0) { | |
633 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
634 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFileSystemHandler_p")) { | |
635 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileSystemHandler_CanOpen. Expected _wxPyFileSystemHandler_p."); | |
636 | return NULL; | |
637 | } | |
638 | } | |
639 | { | |
640 | _arg1 = wxString_in_helper(_obj1); | |
641 | if (_arg1 == NULL) | |
642 | return NULL; | |
643 | } | |
644 | { | |
645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
646 | _result = (bool )wxFileSystemHandler_CanOpen(_arg0,*_arg1); | |
647 | ||
648 | wxPyEndAllowThreads(__tstate); | |
649 | if (PyErr_Occurred()) return NULL; | |
650 | } _resultobj = Py_BuildValue("i",_result); | |
651 | { | |
652 | if (_obj1) | |
653 | delete _arg1; | |
654 | } | |
655 | return _resultobj; | |
656 | } | |
657 | ||
658 | #define wxFileSystemHandler_OpenFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->OpenFile(_swigarg0,_swigarg1)) | |
659 | static PyObject *_wrap_wxFileSystemHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
660 | PyObject * _resultobj; | |
661 | wxFSFile * _result; | |
662 | wxPyFileSystemHandler * _arg0; | |
663 | wxFileSystem * _arg1; | |
664 | wxString * _arg2; | |
665 | PyObject * _argo0 = 0; | |
666 | PyObject * _argo1 = 0; | |
667 | PyObject * _obj2 = 0; | |
668 | char *_kwnames[] = { "self","fs","location", NULL }; | |
669 | ||
670 | self = self; | |
671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxFileSystemHandler_OpenFile",_kwnames,&_argo0,&_argo1,&_obj2)) | |
672 | return NULL; | |
673 | if (_argo0) { | |
674 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
675 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFileSystemHandler_p")) { | |
676 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileSystemHandler_OpenFile. Expected _wxPyFileSystemHandler_p."); | |
677 | return NULL; | |
678 | } | |
679 | } | |
680 | if (_argo1) { | |
681 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileSystem_p")) { | |
682 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileSystemHandler_OpenFile. Expected _wxFileSystem_p."); | |
683 | return NULL; | |
684 | } | |
685 | } | |
686 | { | |
687 | _arg2 = wxString_in_helper(_obj2); | |
688 | if (_arg2 == NULL) | |
689 | return NULL; | |
690 | } | |
691 | { | |
692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
693 | _result = (wxFSFile *)wxFileSystemHandler_OpenFile(_arg0,*_arg1,*_arg2); | |
694 | ||
695 | wxPyEndAllowThreads(__tstate); | |
696 | if (PyErr_Occurred()) return NULL; | |
697 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
698 | { | |
699 | if (_obj2) | |
700 | delete _arg2; | |
701 | } | |
702 | return _resultobj; | |
703 | } | |
704 | ||
705 | #define wxFileSystemHandler_FindFirst(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindFirst(_swigarg0,_swigarg1)) | |
706 | static PyObject *_wrap_wxFileSystemHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
707 | PyObject * _resultobj; | |
708 | wxString * _result; | |
709 | wxPyFileSystemHandler * _arg0; | |
710 | wxString * _arg1; | |
711 | int _arg2 = (int ) 0; | |
712 | PyObject * _argo0 = 0; | |
713 | PyObject * _obj1 = 0; | |
714 | char *_kwnames[] = { "self","spec","flags", NULL }; | |
715 | ||
716 | self = self; | |
717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxFileSystemHandler_FindFirst",_kwnames,&_argo0,&_obj1,&_arg2)) | |
718 | return NULL; | |
719 | if (_argo0) { | |
720 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
721 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFileSystemHandler_p")) { | |
722 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileSystemHandler_FindFirst. Expected _wxPyFileSystemHandler_p."); | |
723 | return NULL; | |
724 | } | |
725 | } | |
726 | { | |
727 | _arg1 = wxString_in_helper(_obj1); | |
728 | if (_arg1 == NULL) | |
729 | return NULL; | |
730 | } | |
731 | { | |
732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
733 | _result = new wxString (wxFileSystemHandler_FindFirst(_arg0,*_arg1,_arg2)); | |
734 | ||
735 | wxPyEndAllowThreads(__tstate); | |
736 | if (PyErr_Occurred()) return NULL; | |
737 | }{ | |
738 | #if wxUSE_UNICODE | |
739 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); | |
740 | #else | |
741 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
742 | #endif | |
743 | } | |
744 | { | |
745 | if (_obj1) | |
746 | delete _arg1; | |
747 | } | |
748 | { | |
749 | delete _result; | |
750 | } | |
751 | return _resultobj; | |
752 | } | |
753 | ||
754 | #define wxFileSystemHandler_FindNext(_swigobj) (_swigobj->FindNext()) | |
755 | static PyObject *_wrap_wxFileSystemHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
756 | PyObject * _resultobj; | |
757 | wxString * _result; | |
758 | wxPyFileSystemHandler * _arg0; | |
759 | PyObject * _argo0 = 0; | |
760 | char *_kwnames[] = { "self", NULL }; | |
761 | ||
762 | self = self; | |
763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileSystemHandler_FindNext",_kwnames,&_argo0)) | |
764 | return NULL; | |
765 | if (_argo0) { | |
766 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
767 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFileSystemHandler_p")) { | |
768 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileSystemHandler_FindNext. Expected _wxPyFileSystemHandler_p."); | |
769 | return NULL; | |
770 | } | |
771 | } | |
772 | { | |
773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
774 | _result = new wxString (wxFileSystemHandler_FindNext(_arg0)); | |
775 | ||
776 | wxPyEndAllowThreads(__tstate); | |
777 | if (PyErr_Occurred()) return NULL; | |
778 | }{ | |
779 | #if wxUSE_UNICODE | |
780 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); | |
781 | #else | |
782 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
783 | #endif | |
784 | } | |
785 | { | |
786 | delete _result; | |
787 | } | |
788 | return _resultobj; | |
789 | } | |
790 | ||
791 | #define wxFileSystemHandler_GetProtocol(_swigobj,_swigarg0) (_swigobj->GetProtocol(_swigarg0)) | |
792 | static PyObject *_wrap_wxFileSystemHandler_GetProtocol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
793 | PyObject * _resultobj; | |
794 | wxString * _result; | |
795 | wxPyFileSystemHandler * _arg0; | |
796 | wxString * _arg1; | |
797 | PyObject * _argo0 = 0; | |
798 | PyObject * _obj1 = 0; | |
799 | char *_kwnames[] = { "self","location", NULL }; | |
800 | ||
801 | self = self; | |
802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileSystemHandler_GetProtocol",_kwnames,&_argo0,&_obj1)) | |
803 | return NULL; | |
804 | if (_argo0) { | |
805 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
806 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFileSystemHandler_p")) { | |
807 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileSystemHandler_GetProtocol. Expected _wxPyFileSystemHandler_p."); | |
808 | return NULL; | |
809 | } | |
810 | } | |
811 | { | |
812 | _arg1 = wxString_in_helper(_obj1); | |
813 | if (_arg1 == NULL) | |
814 | return NULL; | |
815 | } | |
816 | { | |
817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
818 | _result = new wxString (wxFileSystemHandler_GetProtocol(_arg0,*_arg1)); | |
819 | ||
820 | wxPyEndAllowThreads(__tstate); | |
821 | if (PyErr_Occurred()) return NULL; | |
822 | }{ | |
823 | #if wxUSE_UNICODE | |
824 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); | |
825 | #else | |
826 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
827 | #endif | |
828 | } | |
829 | { | |
830 | if (_obj1) | |
831 | delete _arg1; | |
832 | } | |
833 | { | |
834 | delete _result; | |
835 | } | |
836 | return _resultobj; | |
837 | } | |
838 | ||
839 | #define wxFileSystemHandler_GetLeftLocation(_swigobj,_swigarg0) (_swigobj->GetLeftLocation(_swigarg0)) | |
840 | static PyObject *_wrap_wxFileSystemHandler_GetLeftLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
841 | PyObject * _resultobj; | |
842 | wxString * _result; | |
843 | wxPyFileSystemHandler * _arg0; | |
844 | wxString * _arg1; | |
845 | PyObject * _argo0 = 0; | |
846 | PyObject * _obj1 = 0; | |
847 | char *_kwnames[] = { "self","location", NULL }; | |
848 | ||
849 | self = self; | |
850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileSystemHandler_GetLeftLocation",_kwnames,&_argo0,&_obj1)) | |
851 | return NULL; | |
852 | if (_argo0) { | |
853 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
854 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFileSystemHandler_p")) { | |
855 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileSystemHandler_GetLeftLocation. Expected _wxPyFileSystemHandler_p."); | |
856 | return NULL; | |
857 | } | |
858 | } | |
859 | { | |
860 | _arg1 = wxString_in_helper(_obj1); | |
861 | if (_arg1 == NULL) | |
862 | return NULL; | |
863 | } | |
864 | { | |
865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
866 | _result = new wxString (wxFileSystemHandler_GetLeftLocation(_arg0,*_arg1)); | |
867 | ||
868 | wxPyEndAllowThreads(__tstate); | |
869 | if (PyErr_Occurred()) return NULL; | |
870 | }{ | |
871 | #if wxUSE_UNICODE | |
872 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); | |
873 | #else | |
874 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
875 | #endif | |
876 | } | |
877 | { | |
878 | if (_obj1) | |
879 | delete _arg1; | |
880 | } | |
881 | { | |
882 | delete _result; | |
883 | } | |
884 | return _resultobj; | |
885 | } | |
886 | ||
887 | #define wxFileSystemHandler_GetAnchor(_swigobj,_swigarg0) (_swigobj->GetAnchor(_swigarg0)) | |
888 | static PyObject *_wrap_wxFileSystemHandler_GetAnchor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
889 | PyObject * _resultobj; | |
890 | wxString * _result; | |
891 | wxPyFileSystemHandler * _arg0; | |
892 | wxString * _arg1; | |
893 | PyObject * _argo0 = 0; | |
894 | PyObject * _obj1 = 0; | |
895 | char *_kwnames[] = { "self","location", NULL }; | |
896 | ||
897 | self = self; | |
898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileSystemHandler_GetAnchor",_kwnames,&_argo0,&_obj1)) | |
899 | return NULL; | |
900 | if (_argo0) { | |
901 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
902 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFileSystemHandler_p")) { | |
903 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileSystemHandler_GetAnchor. Expected _wxPyFileSystemHandler_p."); | |
904 | return NULL; | |
905 | } | |
906 | } | |
907 | { | |
908 | _arg1 = wxString_in_helper(_obj1); | |
909 | if (_arg1 == NULL) | |
910 | return NULL; | |
911 | } | |
912 | { | |
913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
914 | _result = new wxString (wxFileSystemHandler_GetAnchor(_arg0,*_arg1)); | |
915 | ||
916 | wxPyEndAllowThreads(__tstate); | |
917 | if (PyErr_Occurred()) return NULL; | |
918 | }{ | |
919 | #if wxUSE_UNICODE | |
920 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); | |
921 | #else | |
922 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
923 | #endif | |
924 | } | |
925 | { | |
926 | if (_obj1) | |
927 | delete _arg1; | |
928 | } | |
929 | { | |
930 | delete _result; | |
931 | } | |
932 | return _resultobj; | |
933 | } | |
934 | ||
935 | #define wxFileSystemHandler_GetRightLocation(_swigobj,_swigarg0) (_swigobj->GetRightLocation(_swigarg0)) | |
936 | static PyObject *_wrap_wxFileSystemHandler_GetRightLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
937 | PyObject * _resultobj; | |
938 | wxString * _result; | |
939 | wxPyFileSystemHandler * _arg0; | |
940 | wxString * _arg1; | |
941 | PyObject * _argo0 = 0; | |
942 | PyObject * _obj1 = 0; | |
943 | char *_kwnames[] = { "self","location", NULL }; | |
944 | ||
945 | self = self; | |
946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileSystemHandler_GetRightLocation",_kwnames,&_argo0,&_obj1)) | |
947 | return NULL; | |
948 | if (_argo0) { | |
949 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
950 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFileSystemHandler_p")) { | |
951 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileSystemHandler_GetRightLocation. Expected _wxPyFileSystemHandler_p."); | |
952 | return NULL; | |
953 | } | |
954 | } | |
955 | { | |
956 | _arg1 = wxString_in_helper(_obj1); | |
957 | if (_arg1 == NULL) | |
958 | return NULL; | |
959 | } | |
960 | { | |
961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
962 | _result = new wxString (wxFileSystemHandler_GetRightLocation(_arg0,*_arg1)); | |
963 | ||
964 | wxPyEndAllowThreads(__tstate); | |
965 | if (PyErr_Occurred()) return NULL; | |
966 | }{ | |
967 | #if wxUSE_UNICODE | |
968 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); | |
969 | #else | |
970 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
971 | #endif | |
972 | } | |
973 | { | |
974 | if (_obj1) | |
975 | delete _arg1; | |
976 | } | |
977 | { | |
978 | delete _result; | |
979 | } | |
980 | return _resultobj; | |
981 | } | |
982 | ||
983 | #define wxFileSystemHandler_GetMimeTypeFromExt(_swigobj,_swigarg0) (_swigobj->GetMimeTypeFromExt(_swigarg0)) | |
984 | static PyObject *_wrap_wxFileSystemHandler_GetMimeTypeFromExt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
985 | PyObject * _resultobj; | |
986 | wxString * _result; | |
987 | wxPyFileSystemHandler * _arg0; | |
988 | wxString * _arg1; | |
989 | PyObject * _argo0 = 0; | |
990 | PyObject * _obj1 = 0; | |
991 | char *_kwnames[] = { "self","location", NULL }; | |
992 | ||
993 | self = self; | |
994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileSystemHandler_GetMimeTypeFromExt",_kwnames,&_argo0,&_obj1)) | |
995 | return NULL; | |
996 | if (_argo0) { | |
997 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
998 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFileSystemHandler_p")) { | |
999 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileSystemHandler_GetMimeTypeFromExt. Expected _wxPyFileSystemHandler_p."); | |
1000 | return NULL; | |
1001 | } | |
1002 | } | |
1003 | { | |
1004 | _arg1 = wxString_in_helper(_obj1); | |
1005 | if (_arg1 == NULL) | |
1006 | return NULL; | |
1007 | } | |
1008 | { | |
1009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1010 | _result = new wxString (wxFileSystemHandler_GetMimeTypeFromExt(_arg0,*_arg1)); | |
1011 | ||
1012 | wxPyEndAllowThreads(__tstate); | |
1013 | if (PyErr_Occurred()) return NULL; | |
1014 | }{ | |
1015 | #if wxUSE_UNICODE | |
1016 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); | |
1017 | #else | |
1018 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1019 | #endif | |
1020 | } | |
1021 | { | |
1022 | if (_obj1) | |
1023 | delete _arg1; | |
1024 | } | |
1025 | { | |
1026 | delete _result; | |
1027 | } | |
1028 | return _resultobj; | |
1029 | } | |
1030 | ||
1031 | static void *SwigwxFileSystemTowxObject(void *ptr) { | |
1032 | wxFileSystem *src; | |
1033 | wxObject *dest; | |
1034 | src = (wxFileSystem *) ptr; | |
1035 | dest = (wxObject *) src; | |
1036 | return (void *) dest; | |
1037 | } | |
1038 | ||
1039 | #define new_wxFileSystem() (new wxFileSystem()) | |
1040 | static PyObject *_wrap_new_wxFileSystem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1041 | PyObject * _resultobj; | |
1042 | wxFileSystem * _result; | |
1043 | char *_kwnames[] = { NULL }; | |
1044 | char _ptemp[128]; | |
1045 | ||
1046 | self = self; | |
1047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxFileSystem",_kwnames)) | |
1048 | return NULL; | |
1049 | { | |
1050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1051 | _result = (wxFileSystem *)new_wxFileSystem(); | |
1052 | ||
1053 | wxPyEndAllowThreads(__tstate); | |
1054 | if (PyErr_Occurred()) return NULL; | |
1055 | } if (_result) { | |
1056 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileSystem_p"); | |
1057 | _resultobj = Py_BuildValue("s",_ptemp); | |
1058 | } else { | |
1059 | Py_INCREF(Py_None); | |
1060 | _resultobj = Py_None; | |
1061 | } | |
1062 | return _resultobj; | |
1063 | } | |
1064 | ||
1065 | #define wxFileSystem_ChangePathTo(_swigobj,_swigarg0,_swigarg1) (_swigobj->ChangePathTo(_swigarg0,_swigarg1)) | |
1066 | static PyObject *_wrap_wxFileSystem_ChangePathTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1067 | PyObject * _resultobj; | |
1068 | wxFileSystem * _arg0; | |
1069 | wxString * _arg1; | |
1070 | bool _arg2 = (bool ) FALSE; | |
1071 | PyObject * _argo0 = 0; | |
1072 | PyObject * _obj1 = 0; | |
1073 | int tempbool2 = (int) FALSE; | |
1074 | char *_kwnames[] = { "self","location","is_dir", NULL }; | |
1075 | ||
1076 | self = self; | |
1077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxFileSystem_ChangePathTo",_kwnames,&_argo0,&_obj1,&tempbool2)) | |
1078 | return NULL; | |
1079 | if (_argo0) { | |
1080 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1081 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileSystem_p")) { | |
1082 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileSystem_ChangePathTo. Expected _wxFileSystem_p."); | |
1083 | return NULL; | |
1084 | } | |
1085 | } | |
1086 | { | |
1087 | _arg1 = wxString_in_helper(_obj1); | |
1088 | if (_arg1 == NULL) | |
1089 | return NULL; | |
1090 | } | |
1091 | _arg2 = (bool ) tempbool2; | |
1092 | { | |
1093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1094 | wxFileSystem_ChangePathTo(_arg0,*_arg1,_arg2); | |
1095 | ||
1096 | wxPyEndAllowThreads(__tstate); | |
1097 | if (PyErr_Occurred()) return NULL; | |
1098 | } Py_INCREF(Py_None); | |
1099 | _resultobj = Py_None; | |
1100 | { | |
1101 | if (_obj1) | |
1102 | delete _arg1; | |
1103 | } | |
1104 | return _resultobj; | |
1105 | } | |
1106 | ||
1107 | #define wxFileSystem_GetPath(_swigobj) (_swigobj->GetPath()) | |
1108 | static PyObject *_wrap_wxFileSystem_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1109 | PyObject * _resultobj; | |
1110 | wxString * _result; | |
1111 | wxFileSystem * _arg0; | |
1112 | PyObject * _argo0 = 0; | |
1113 | char *_kwnames[] = { "self", NULL }; | |
1114 | ||
1115 | self = self; | |
1116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileSystem_GetPath",_kwnames,&_argo0)) | |
1117 | return NULL; | |
1118 | if (_argo0) { | |
1119 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1120 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileSystem_p")) { | |
1121 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileSystem_GetPath. Expected _wxFileSystem_p."); | |
1122 | return NULL; | |
1123 | } | |
1124 | } | |
1125 | { | |
1126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1127 | _result = new wxString (wxFileSystem_GetPath(_arg0)); | |
1128 | ||
1129 | wxPyEndAllowThreads(__tstate); | |
1130 | if (PyErr_Occurred()) return NULL; | |
1131 | }{ | |
1132 | #if wxUSE_UNICODE | |
1133 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); | |
1134 | #else | |
1135 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1136 | #endif | |
1137 | } | |
1138 | { | |
1139 | delete _result; | |
1140 | } | |
1141 | return _resultobj; | |
1142 | } | |
1143 | ||
1144 | #define wxFileSystem_OpenFile(_swigobj,_swigarg0) (_swigobj->OpenFile(_swigarg0)) | |
1145 | static PyObject *_wrap_wxFileSystem_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1146 | PyObject * _resultobj; | |
1147 | wxFSFile * _result; | |
1148 | wxFileSystem * _arg0; | |
1149 | wxString * _arg1; | |
1150 | PyObject * _argo0 = 0; | |
1151 | PyObject * _obj1 = 0; | |
1152 | char *_kwnames[] = { "self","location", NULL }; | |
1153 | ||
1154 | self = self; | |
1155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileSystem_OpenFile",_kwnames,&_argo0,&_obj1)) | |
1156 | return NULL; | |
1157 | if (_argo0) { | |
1158 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1159 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileSystem_p")) { | |
1160 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileSystem_OpenFile. Expected _wxFileSystem_p."); | |
1161 | return NULL; | |
1162 | } | |
1163 | } | |
1164 | { | |
1165 | _arg1 = wxString_in_helper(_obj1); | |
1166 | if (_arg1 == NULL) | |
1167 | return NULL; | |
1168 | } | |
1169 | { | |
1170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1171 | _result = (wxFSFile *)wxFileSystem_OpenFile(_arg0,*_arg1); | |
1172 | ||
1173 | wxPyEndAllowThreads(__tstate); | |
1174 | if (PyErr_Occurred()) return NULL; | |
1175 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
1176 | { | |
1177 | if (_obj1) | |
1178 | delete _arg1; | |
1179 | } | |
1180 | return _resultobj; | |
1181 | } | |
1182 | ||
1183 | #define wxFileSystem_FindFirst(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindFirst(_swigarg0,_swigarg1)) | |
1184 | static PyObject *_wrap_wxFileSystem_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1185 | PyObject * _resultobj; | |
1186 | wxString * _result; | |
1187 | wxFileSystem * _arg0; | |
1188 | wxString * _arg1; | |
1189 | int _arg2 = (int ) 0; | |
1190 | PyObject * _argo0 = 0; | |
1191 | PyObject * _obj1 = 0; | |
1192 | char *_kwnames[] = { "self","spec","flags", NULL }; | |
1193 | ||
1194 | self = self; | |
1195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxFileSystem_FindFirst",_kwnames,&_argo0,&_obj1,&_arg2)) | |
1196 | return NULL; | |
1197 | if (_argo0) { | |
1198 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1199 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileSystem_p")) { | |
1200 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileSystem_FindFirst. Expected _wxFileSystem_p."); | |
1201 | return NULL; | |
1202 | } | |
1203 | } | |
1204 | { | |
1205 | _arg1 = wxString_in_helper(_obj1); | |
1206 | if (_arg1 == NULL) | |
1207 | return NULL; | |
1208 | } | |
1209 | { | |
1210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1211 | _result = new wxString (wxFileSystem_FindFirst(_arg0,*_arg1,_arg2)); | |
1212 | ||
1213 | wxPyEndAllowThreads(__tstate); | |
1214 | if (PyErr_Occurred()) return NULL; | |
1215 | }{ | |
1216 | #if wxUSE_UNICODE | |
1217 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); | |
1218 | #else | |
1219 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1220 | #endif | |
1221 | } | |
1222 | { | |
1223 | if (_obj1) | |
1224 | delete _arg1; | |
1225 | } | |
1226 | { | |
1227 | delete _result; | |
1228 | } | |
1229 | return _resultobj; | |
1230 | } | |
1231 | ||
1232 | #define wxFileSystem_FindNext(_swigobj) (_swigobj->FindNext()) | |
1233 | static PyObject *_wrap_wxFileSystem_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1234 | PyObject * _resultobj; | |
1235 | wxString * _result; | |
1236 | wxFileSystem * _arg0; | |
1237 | PyObject * _argo0 = 0; | |
1238 | char *_kwnames[] = { "self", NULL }; | |
1239 | ||
1240 | self = self; | |
1241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileSystem_FindNext",_kwnames,&_argo0)) | |
1242 | return NULL; | |
1243 | if (_argo0) { | |
1244 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1245 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileSystem_p")) { | |
1246 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileSystem_FindNext. Expected _wxFileSystem_p."); | |
1247 | return NULL; | |
1248 | } | |
1249 | } | |
1250 | { | |
1251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1252 | _result = new wxString (wxFileSystem_FindNext(_arg0)); | |
1253 | ||
1254 | wxPyEndAllowThreads(__tstate); | |
1255 | if (PyErr_Occurred()) return NULL; | |
1256 | }{ | |
1257 | #if wxUSE_UNICODE | |
1258 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); | |
1259 | #else | |
1260 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1261 | #endif | |
1262 | } | |
1263 | { | |
1264 | delete _result; | |
1265 | } | |
1266 | return _resultobj; | |
1267 | } | |
1268 | ||
1269 | static PyObject *_wrap_wxFileSystem_AddHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1270 | PyObject * _resultobj; | |
1271 | wxFileSystemHandler * _arg0; | |
1272 | PyObject * _argo0 = 0; | |
1273 | char *_kwnames[] = { "handler", NULL }; | |
1274 | ||
1275 | self = self; | |
1276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileSystem_AddHandler",_kwnames,&_argo0)) | |
1277 | return NULL; | |
1278 | if (_argo0) { | |
1279 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1280 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileSystemHandler_p")) { | |
1281 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileSystem_AddHandler. Expected _wxFileSystemHandler_p."); | |
1282 | return NULL; | |
1283 | } | |
1284 | } | |
1285 | { | |
1286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1287 | wxFileSystem::AddHandler(_arg0); | |
1288 | ||
1289 | wxPyEndAllowThreads(__tstate); | |
1290 | if (PyErr_Occurred()) return NULL; | |
1291 | } Py_INCREF(Py_None); | |
1292 | _resultobj = Py_None; | |
1293 | return _resultobj; | |
1294 | } | |
1295 | ||
1296 | static PyObject *_wrap_wxFileSystem_CleanUpHandlers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1297 | PyObject * _resultobj; | |
1298 | char *_kwnames[] = { NULL }; | |
1299 | ||
1300 | self = self; | |
1301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFileSystem_CleanUpHandlers",_kwnames)) | |
1302 | return NULL; | |
1303 | { | |
1304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1305 | wxFileSystem::CleanUpHandlers(); | |
1306 | ||
1307 | wxPyEndAllowThreads(__tstate); | |
1308 | if (PyErr_Occurred()) return NULL; | |
1309 | } Py_INCREF(Py_None); | |
1310 | _resultobj = Py_None; | |
1311 | return _resultobj; | |
1312 | } | |
1313 | ||
1314 | static void *SwigwxInternetFSHandlerTowxFileSystemHandler(void *ptr) { | |
1315 | wxInternetFSHandler *src; | |
1316 | wxFileSystemHandler *dest; | |
1317 | src = (wxInternetFSHandler *) ptr; | |
1318 | dest = (wxFileSystemHandler *) src; | |
1319 | return (void *) dest; | |
1320 | } | |
1321 | ||
1322 | static void *SwigwxInternetFSHandlerTowxObject(void *ptr) { | |
1323 | wxInternetFSHandler *src; | |
1324 | wxObject *dest; | |
1325 | src = (wxInternetFSHandler *) ptr; | |
1326 | dest = (wxObject *) src; | |
1327 | return (void *) dest; | |
1328 | } | |
1329 | ||
1330 | #define new_wxInternetFSHandler() (new wxInternetFSHandler()) | |
1331 | static PyObject *_wrap_new_wxInternetFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1332 | PyObject * _resultobj; | |
1333 | wxInternetFSHandler * _result; | |
1334 | char *_kwnames[] = { NULL }; | |
1335 | char _ptemp[128]; | |
1336 | ||
1337 | self = self; | |
1338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxInternetFSHandler",_kwnames)) | |
1339 | return NULL; | |
1340 | { | |
1341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1342 | _result = (wxInternetFSHandler *)new_wxInternetFSHandler(); | |
1343 | ||
1344 | wxPyEndAllowThreads(__tstate); | |
1345 | if (PyErr_Occurred()) return NULL; | |
1346 | } if (_result) { | |
1347 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxInternetFSHandler_p"); | |
1348 | _resultobj = Py_BuildValue("s",_ptemp); | |
1349 | } else { | |
1350 | Py_INCREF(Py_None); | |
1351 | _resultobj = Py_None; | |
1352 | } | |
1353 | return _resultobj; | |
1354 | } | |
1355 | ||
1356 | #define wxInternetFSHandler_CanOpen(_swigobj,_swigarg0) (_swigobj->CanOpen(_swigarg0)) | |
1357 | static PyObject *_wrap_wxInternetFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1358 | PyObject * _resultobj; | |
1359 | bool _result; | |
1360 | wxInternetFSHandler * _arg0; | |
1361 | wxString * _arg1; | |
1362 | PyObject * _argo0 = 0; | |
1363 | PyObject * _obj1 = 0; | |
1364 | char *_kwnames[] = { "self","location", NULL }; | |
1365 | ||
1366 | self = self; | |
1367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxInternetFSHandler_CanOpen",_kwnames,&_argo0,&_obj1)) | |
1368 | return NULL; | |
1369 | if (_argo0) { | |
1370 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1371 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxInternetFSHandler_p")) { | |
1372 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxInternetFSHandler_CanOpen. Expected _wxInternetFSHandler_p."); | |
1373 | return NULL; | |
1374 | } | |
1375 | } | |
1376 | { | |
1377 | _arg1 = wxString_in_helper(_obj1); | |
1378 | if (_arg1 == NULL) | |
1379 | return NULL; | |
1380 | } | |
1381 | { | |
1382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1383 | _result = (bool )wxInternetFSHandler_CanOpen(_arg0,*_arg1); | |
1384 | ||
1385 | wxPyEndAllowThreads(__tstate); | |
1386 | if (PyErr_Occurred()) return NULL; | |
1387 | } _resultobj = Py_BuildValue("i",_result); | |
1388 | { | |
1389 | if (_obj1) | |
1390 | delete _arg1; | |
1391 | } | |
1392 | return _resultobj; | |
1393 | } | |
1394 | ||
1395 | #define wxInternetFSHandler_OpenFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->OpenFile(_swigarg0,_swigarg1)) | |
1396 | static PyObject *_wrap_wxInternetFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1397 | PyObject * _resultobj; | |
1398 | wxFSFile * _result; | |
1399 | wxInternetFSHandler * _arg0; | |
1400 | wxFileSystem * _arg1; | |
1401 | wxString * _arg2; | |
1402 | PyObject * _argo0 = 0; | |
1403 | PyObject * _argo1 = 0; | |
1404 | PyObject * _obj2 = 0; | |
1405 | char *_kwnames[] = { "self","fs","location", NULL }; | |
1406 | ||
1407 | self = self; | |
1408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxInternetFSHandler_OpenFile",_kwnames,&_argo0,&_argo1,&_obj2)) | |
1409 | return NULL; | |
1410 | if (_argo0) { | |
1411 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1412 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxInternetFSHandler_p")) { | |
1413 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxInternetFSHandler_OpenFile. Expected _wxInternetFSHandler_p."); | |
1414 | return NULL; | |
1415 | } | |
1416 | } | |
1417 | if (_argo1) { | |
1418 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileSystem_p")) { | |
1419 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxInternetFSHandler_OpenFile. Expected _wxFileSystem_p."); | |
1420 | return NULL; | |
1421 | } | |
1422 | } | |
1423 | { | |
1424 | _arg2 = wxString_in_helper(_obj2); | |
1425 | if (_arg2 == NULL) | |
1426 | return NULL; | |
1427 | } | |
1428 | { | |
1429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1430 | _result = (wxFSFile *)wxInternetFSHandler_OpenFile(_arg0,*_arg1,*_arg2); | |
1431 | ||
1432 | wxPyEndAllowThreads(__tstate); | |
1433 | if (PyErr_Occurred()) return NULL; | |
1434 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
1435 | { | |
1436 | if (_obj2) | |
1437 | delete _arg2; | |
1438 | } | |
1439 | return _resultobj; | |
1440 | } | |
1441 | ||
1442 | static void *SwigwxZipFSHandlerTowxFileSystemHandler(void *ptr) { | |
1443 | wxZipFSHandler *src; | |
1444 | wxFileSystemHandler *dest; | |
1445 | src = (wxZipFSHandler *) ptr; | |
1446 | dest = (wxFileSystemHandler *) src; | |
1447 | return (void *) dest; | |
1448 | } | |
1449 | ||
1450 | static void *SwigwxZipFSHandlerTowxObject(void *ptr) { | |
1451 | wxZipFSHandler *src; | |
1452 | wxObject *dest; | |
1453 | src = (wxZipFSHandler *) ptr; | |
1454 | dest = (wxObject *) src; | |
1455 | return (void *) dest; | |
1456 | } | |
1457 | ||
1458 | #define new_wxZipFSHandler() (new wxZipFSHandler()) | |
1459 | static PyObject *_wrap_new_wxZipFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1460 | PyObject * _resultobj; | |
1461 | wxZipFSHandler * _result; | |
1462 | char *_kwnames[] = { NULL }; | |
1463 | char _ptemp[128]; | |
1464 | ||
1465 | self = self; | |
1466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxZipFSHandler",_kwnames)) | |
1467 | return NULL; | |
1468 | { | |
1469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1470 | _result = (wxZipFSHandler *)new_wxZipFSHandler(); | |
1471 | ||
1472 | wxPyEndAllowThreads(__tstate); | |
1473 | if (PyErr_Occurred()) return NULL; | |
1474 | } if (_result) { | |
1475 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxZipFSHandler_p"); | |
1476 | _resultobj = Py_BuildValue("s",_ptemp); | |
1477 | } else { | |
1478 | Py_INCREF(Py_None); | |
1479 | _resultobj = Py_None; | |
1480 | } | |
1481 | return _resultobj; | |
1482 | } | |
1483 | ||
1484 | #define wxZipFSHandler_CanOpen(_swigobj,_swigarg0) (_swigobj->CanOpen(_swigarg0)) | |
1485 | static PyObject *_wrap_wxZipFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1486 | PyObject * _resultobj; | |
1487 | bool _result; | |
1488 | wxZipFSHandler * _arg0; | |
1489 | wxString * _arg1; | |
1490 | PyObject * _argo0 = 0; | |
1491 | PyObject * _obj1 = 0; | |
1492 | char *_kwnames[] = { "self","location", NULL }; | |
1493 | ||
1494 | self = self; | |
1495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxZipFSHandler_CanOpen",_kwnames,&_argo0,&_obj1)) | |
1496 | return NULL; | |
1497 | if (_argo0) { | |
1498 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1499 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxZipFSHandler_p")) { | |
1500 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxZipFSHandler_CanOpen. Expected _wxZipFSHandler_p."); | |
1501 | return NULL; | |
1502 | } | |
1503 | } | |
1504 | { | |
1505 | _arg1 = wxString_in_helper(_obj1); | |
1506 | if (_arg1 == NULL) | |
1507 | return NULL; | |
1508 | } | |
1509 | { | |
1510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1511 | _result = (bool )wxZipFSHandler_CanOpen(_arg0,*_arg1); | |
1512 | ||
1513 | wxPyEndAllowThreads(__tstate); | |
1514 | if (PyErr_Occurred()) return NULL; | |
1515 | } _resultobj = Py_BuildValue("i",_result); | |
1516 | { | |
1517 | if (_obj1) | |
1518 | delete _arg1; | |
1519 | } | |
1520 | return _resultobj; | |
1521 | } | |
1522 | ||
1523 | #define wxZipFSHandler_OpenFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->OpenFile(_swigarg0,_swigarg1)) | |
1524 | static PyObject *_wrap_wxZipFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1525 | PyObject * _resultobj; | |
1526 | wxFSFile * _result; | |
1527 | wxZipFSHandler * _arg0; | |
1528 | wxFileSystem * _arg1; | |
1529 | wxString * _arg2; | |
1530 | PyObject * _argo0 = 0; | |
1531 | PyObject * _argo1 = 0; | |
1532 | PyObject * _obj2 = 0; | |
1533 | char *_kwnames[] = { "self","fs","location", NULL }; | |
1534 | ||
1535 | self = self; | |
1536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxZipFSHandler_OpenFile",_kwnames,&_argo0,&_argo1,&_obj2)) | |
1537 | return NULL; | |
1538 | if (_argo0) { | |
1539 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1540 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxZipFSHandler_p")) { | |
1541 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxZipFSHandler_OpenFile. Expected _wxZipFSHandler_p."); | |
1542 | return NULL; | |
1543 | } | |
1544 | } | |
1545 | if (_argo1) { | |
1546 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileSystem_p")) { | |
1547 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxZipFSHandler_OpenFile. Expected _wxFileSystem_p."); | |
1548 | return NULL; | |
1549 | } | |
1550 | } | |
1551 | { | |
1552 | _arg2 = wxString_in_helper(_obj2); | |
1553 | if (_arg2 == NULL) | |
1554 | return NULL; | |
1555 | } | |
1556 | { | |
1557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1558 | _result = (wxFSFile *)wxZipFSHandler_OpenFile(_arg0,*_arg1,*_arg2); | |
1559 | ||
1560 | wxPyEndAllowThreads(__tstate); | |
1561 | if (PyErr_Occurred()) return NULL; | |
1562 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
1563 | { | |
1564 | if (_obj2) | |
1565 | delete _arg2; | |
1566 | } | |
1567 | return _resultobj; | |
1568 | } | |
1569 | ||
1570 | #define wxZipFSHandler_FindFirst(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindFirst(_swigarg0,_swigarg1)) | |
1571 | static PyObject *_wrap_wxZipFSHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1572 | PyObject * _resultobj; | |
1573 | wxString * _result; | |
1574 | wxZipFSHandler * _arg0; | |
1575 | wxString * _arg1; | |
1576 | int _arg2 = (int ) 0; | |
1577 | PyObject * _argo0 = 0; | |
1578 | PyObject * _obj1 = 0; | |
1579 | char *_kwnames[] = { "self","spec","flags", NULL }; | |
1580 | ||
1581 | self = self; | |
1582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxZipFSHandler_FindFirst",_kwnames,&_argo0,&_obj1,&_arg2)) | |
1583 | return NULL; | |
1584 | if (_argo0) { | |
1585 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1586 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxZipFSHandler_p")) { | |
1587 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxZipFSHandler_FindFirst. Expected _wxZipFSHandler_p."); | |
1588 | return NULL; | |
1589 | } | |
1590 | } | |
1591 | { | |
1592 | _arg1 = wxString_in_helper(_obj1); | |
1593 | if (_arg1 == NULL) | |
1594 | return NULL; | |
1595 | } | |
1596 | { | |
1597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1598 | _result = new wxString (wxZipFSHandler_FindFirst(_arg0,*_arg1,_arg2)); | |
1599 | ||
1600 | wxPyEndAllowThreads(__tstate); | |
1601 | if (PyErr_Occurred()) return NULL; | |
1602 | }{ | |
1603 | #if wxUSE_UNICODE | |
1604 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); | |
1605 | #else | |
1606 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1607 | #endif | |
1608 | } | |
1609 | { | |
1610 | if (_obj1) | |
1611 | delete _arg1; | |
1612 | } | |
1613 | { | |
1614 | delete _result; | |
1615 | } | |
1616 | return _resultobj; | |
1617 | } | |
1618 | ||
1619 | #define wxZipFSHandler_FindNext(_swigobj) (_swigobj->FindNext()) | |
1620 | static PyObject *_wrap_wxZipFSHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1621 | PyObject * _resultobj; | |
1622 | wxString * _result; | |
1623 | wxZipFSHandler * _arg0; | |
1624 | PyObject * _argo0 = 0; | |
1625 | char *_kwnames[] = { "self", NULL }; | |
1626 | ||
1627 | self = self; | |
1628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxZipFSHandler_FindNext",_kwnames,&_argo0)) | |
1629 | return NULL; | |
1630 | if (_argo0) { | |
1631 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1632 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxZipFSHandler_p")) { | |
1633 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxZipFSHandler_FindNext. Expected _wxZipFSHandler_p."); | |
1634 | return NULL; | |
1635 | } | |
1636 | } | |
1637 | { | |
1638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1639 | _result = new wxString (wxZipFSHandler_FindNext(_arg0)); | |
1640 | ||
1641 | wxPyEndAllowThreads(__tstate); | |
1642 | if (PyErr_Occurred()) return NULL; | |
1643 | }{ | |
1644 | #if wxUSE_UNICODE | |
1645 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); | |
1646 | #else | |
1647 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1648 | #endif | |
1649 | } | |
1650 | { | |
1651 | delete _result; | |
1652 | } | |
1653 | return _resultobj; | |
1654 | } | |
1655 | ||
1656 | static void *SwigwxMemoryFSHandlerTowxFileSystemHandler(void *ptr) { | |
1657 | wxMemoryFSHandler *src; | |
1658 | wxFileSystemHandler *dest; | |
1659 | src = (wxMemoryFSHandler *) ptr; | |
1660 | dest = (wxFileSystemHandler *) src; | |
1661 | return (void *) dest; | |
1662 | } | |
1663 | ||
1664 | static void *SwigwxMemoryFSHandlerTowxObject(void *ptr) { | |
1665 | wxMemoryFSHandler *src; | |
1666 | wxObject *dest; | |
1667 | src = (wxMemoryFSHandler *) ptr; | |
1668 | dest = (wxObject *) src; | |
1669 | return (void *) dest; | |
1670 | } | |
1671 | ||
1672 | #define new_wxMemoryFSHandler() (new wxMemoryFSHandler()) | |
1673 | static PyObject *_wrap_new_wxMemoryFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1674 | PyObject * _resultobj; | |
1675 | wxMemoryFSHandler * _result; | |
1676 | char *_kwnames[] = { NULL }; | |
1677 | char _ptemp[128]; | |
1678 | ||
1679 | self = self; | |
1680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMemoryFSHandler",_kwnames)) | |
1681 | return NULL; | |
1682 | { | |
1683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1684 | _result = (wxMemoryFSHandler *)new_wxMemoryFSHandler(); | |
1685 | ||
1686 | wxPyEndAllowThreads(__tstate); | |
1687 | if (PyErr_Occurred()) return NULL; | |
1688 | } if (_result) { | |
1689 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryFSHandler_p"); | |
1690 | _resultobj = Py_BuildValue("s",_ptemp); | |
1691 | } else { | |
1692 | Py_INCREF(Py_None); | |
1693 | _resultobj = Py_None; | |
1694 | } | |
1695 | return _resultobj; | |
1696 | } | |
1697 | ||
1698 | static PyObject *_wrap_wxMemoryFSHandler_RemoveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1699 | PyObject * _resultobj; | |
1700 | wxString * _arg0; | |
1701 | PyObject * _obj0 = 0; | |
1702 | char *_kwnames[] = { "filename", NULL }; | |
1703 | ||
1704 | self = self; | |
1705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMemoryFSHandler_RemoveFile",_kwnames,&_obj0)) | |
1706 | return NULL; | |
1707 | { | |
1708 | _arg0 = wxString_in_helper(_obj0); | |
1709 | if (_arg0 == NULL) | |
1710 | return NULL; | |
1711 | } | |
1712 | { | |
1713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1714 | wxMemoryFSHandler::RemoveFile(*_arg0); | |
1715 | ||
1716 | wxPyEndAllowThreads(__tstate); | |
1717 | if (PyErr_Occurred()) return NULL; | |
1718 | } Py_INCREF(Py_None); | |
1719 | _resultobj = Py_None; | |
1720 | { | |
1721 | if (_obj0) | |
1722 | delete _arg0; | |
1723 | } | |
1724 | return _resultobj; | |
1725 | } | |
1726 | ||
1727 | #define wxMemoryFSHandler_CanOpen(_swigobj,_swigarg0) (_swigobj->CanOpen(_swigarg0)) | |
1728 | static PyObject *_wrap_wxMemoryFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1729 | PyObject * _resultobj; | |
1730 | bool _result; | |
1731 | wxMemoryFSHandler * _arg0; | |
1732 | wxString * _arg1; | |
1733 | PyObject * _argo0 = 0; | |
1734 | PyObject * _obj1 = 0; | |
1735 | char *_kwnames[] = { "self","location", NULL }; | |
1736 | ||
1737 | self = self; | |
1738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMemoryFSHandler_CanOpen",_kwnames,&_argo0,&_obj1)) | |
1739 | return NULL; | |
1740 | if (_argo0) { | |
1741 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1742 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMemoryFSHandler_p")) { | |
1743 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryFSHandler_CanOpen. Expected _wxMemoryFSHandler_p."); | |
1744 | return NULL; | |
1745 | } | |
1746 | } | |
1747 | { | |
1748 | _arg1 = wxString_in_helper(_obj1); | |
1749 | if (_arg1 == NULL) | |
1750 | return NULL; | |
1751 | } | |
1752 | { | |
1753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1754 | _result = (bool )wxMemoryFSHandler_CanOpen(_arg0,*_arg1); | |
1755 | ||
1756 | wxPyEndAllowThreads(__tstate); | |
1757 | if (PyErr_Occurred()) return NULL; | |
1758 | } _resultobj = Py_BuildValue("i",_result); | |
1759 | { | |
1760 | if (_obj1) | |
1761 | delete _arg1; | |
1762 | } | |
1763 | return _resultobj; | |
1764 | } | |
1765 | ||
1766 | #define wxMemoryFSHandler_OpenFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->OpenFile(_swigarg0,_swigarg1)) | |
1767 | static PyObject *_wrap_wxMemoryFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1768 | PyObject * _resultobj; | |
1769 | wxFSFile * _result; | |
1770 | wxMemoryFSHandler * _arg0; | |
1771 | wxFileSystem * _arg1; | |
1772 | wxString * _arg2; | |
1773 | PyObject * _argo0 = 0; | |
1774 | PyObject * _argo1 = 0; | |
1775 | PyObject * _obj2 = 0; | |
1776 | char *_kwnames[] = { "self","fs","location", NULL }; | |
1777 | ||
1778 | self = self; | |
1779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMemoryFSHandler_OpenFile",_kwnames,&_argo0,&_argo1,&_obj2)) | |
1780 | return NULL; | |
1781 | if (_argo0) { | |
1782 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1783 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMemoryFSHandler_p")) { | |
1784 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryFSHandler_OpenFile. Expected _wxMemoryFSHandler_p."); | |
1785 | return NULL; | |
1786 | } | |
1787 | } | |
1788 | if (_argo1) { | |
1789 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileSystem_p")) { | |
1790 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMemoryFSHandler_OpenFile. Expected _wxFileSystem_p."); | |
1791 | return NULL; | |
1792 | } | |
1793 | } | |
1794 | { | |
1795 | _arg2 = wxString_in_helper(_obj2); | |
1796 | if (_arg2 == NULL) | |
1797 | return NULL; | |
1798 | } | |
1799 | { | |
1800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1801 | _result = (wxFSFile *)wxMemoryFSHandler_OpenFile(_arg0,*_arg1,*_arg2); | |
1802 | ||
1803 | wxPyEndAllowThreads(__tstate); | |
1804 | if (PyErr_Occurred()) return NULL; | |
1805 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
1806 | { | |
1807 | if (_obj2) | |
1808 | delete _arg2; | |
1809 | } | |
1810 | return _resultobj; | |
1811 | } | |
1812 | ||
1813 | #define wxMemoryFSHandler_FindFirst(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindFirst(_swigarg0,_swigarg1)) | |
1814 | static PyObject *_wrap_wxMemoryFSHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1815 | PyObject * _resultobj; | |
1816 | wxString * _result; | |
1817 | wxMemoryFSHandler * _arg0; | |
1818 | wxString * _arg1; | |
1819 | int _arg2 = (int ) 0; | |
1820 | PyObject * _argo0 = 0; | |
1821 | PyObject * _obj1 = 0; | |
1822 | char *_kwnames[] = { "self","spec","flags", NULL }; | |
1823 | ||
1824 | self = self; | |
1825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxMemoryFSHandler_FindFirst",_kwnames,&_argo0,&_obj1,&_arg2)) | |
1826 | return NULL; | |
1827 | if (_argo0) { | |
1828 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1829 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMemoryFSHandler_p")) { | |
1830 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryFSHandler_FindFirst. Expected _wxMemoryFSHandler_p."); | |
1831 | return NULL; | |
1832 | } | |
1833 | } | |
1834 | { | |
1835 | _arg1 = wxString_in_helper(_obj1); | |
1836 | if (_arg1 == NULL) | |
1837 | return NULL; | |
1838 | } | |
1839 | { | |
1840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1841 | _result = new wxString (wxMemoryFSHandler_FindFirst(_arg0,*_arg1,_arg2)); | |
1842 | ||
1843 | wxPyEndAllowThreads(__tstate); | |
1844 | if (PyErr_Occurred()) return NULL; | |
1845 | }{ | |
1846 | #if wxUSE_UNICODE | |
1847 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); | |
1848 | #else | |
1849 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1850 | #endif | |
1851 | } | |
1852 | { | |
1853 | if (_obj1) | |
1854 | delete _arg1; | |
1855 | } | |
1856 | { | |
1857 | delete _result; | |
1858 | } | |
1859 | return _resultobj; | |
1860 | } | |
1861 | ||
1862 | #define wxMemoryFSHandler_FindNext(_swigobj) (_swigobj->FindNext()) | |
1863 | static PyObject *_wrap_wxMemoryFSHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1864 | PyObject * _resultobj; | |
1865 | wxString * _result; | |
1866 | wxMemoryFSHandler * _arg0; | |
1867 | PyObject * _argo0 = 0; | |
1868 | char *_kwnames[] = { "self", NULL }; | |
1869 | ||
1870 | self = self; | |
1871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMemoryFSHandler_FindNext",_kwnames,&_argo0)) | |
1872 | return NULL; | |
1873 | if (_argo0) { | |
1874 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1875 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMemoryFSHandler_p")) { | |
1876 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryFSHandler_FindNext. Expected _wxMemoryFSHandler_p."); | |
1877 | return NULL; | |
1878 | } | |
1879 | } | |
1880 | { | |
1881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1882 | _result = new wxString (wxMemoryFSHandler_FindNext(_arg0)); | |
1883 | ||
1884 | wxPyEndAllowThreads(__tstate); | |
1885 | if (PyErr_Occurred()) return NULL; | |
1886 | }{ | |
1887 | #if wxUSE_UNICODE | |
1888 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); | |
1889 | #else | |
1890 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1891 | #endif | |
1892 | } | |
1893 | { | |
1894 | delete _result; | |
1895 | } | |
1896 | return _resultobj; | |
1897 | } | |
1898 | ||
1899 | static PyMethodDef filesyscMethods[] = { | |
1900 | { "wxMemoryFSHandler_FindNext", (PyCFunction) _wrap_wxMemoryFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
1901 | { "wxMemoryFSHandler_FindFirst", (PyCFunction) _wrap_wxMemoryFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
1902 | { "wxMemoryFSHandler_OpenFile", (PyCFunction) _wrap_wxMemoryFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
1903 | { "wxMemoryFSHandler_CanOpen", (PyCFunction) _wrap_wxMemoryFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
1904 | { "wxMemoryFSHandler_RemoveFile", (PyCFunction) _wrap_wxMemoryFSHandler_RemoveFile, METH_VARARGS | METH_KEYWORDS }, | |
1905 | { "new_wxMemoryFSHandler", (PyCFunction) _wrap_new_wxMemoryFSHandler, METH_VARARGS | METH_KEYWORDS }, | |
1906 | { "wxZipFSHandler_FindNext", (PyCFunction) _wrap_wxZipFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
1907 | { "wxZipFSHandler_FindFirst", (PyCFunction) _wrap_wxZipFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
1908 | { "wxZipFSHandler_OpenFile", (PyCFunction) _wrap_wxZipFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
1909 | { "wxZipFSHandler_CanOpen", (PyCFunction) _wrap_wxZipFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
1910 | { "new_wxZipFSHandler", (PyCFunction) _wrap_new_wxZipFSHandler, METH_VARARGS | METH_KEYWORDS }, | |
1911 | { "wxInternetFSHandler_OpenFile", (PyCFunction) _wrap_wxInternetFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
1912 | { "wxInternetFSHandler_CanOpen", (PyCFunction) _wrap_wxInternetFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
1913 | { "new_wxInternetFSHandler", (PyCFunction) _wrap_new_wxInternetFSHandler, METH_VARARGS | METH_KEYWORDS }, | |
1914 | { "wxFileSystem_CleanUpHandlers", (PyCFunction) _wrap_wxFileSystem_CleanUpHandlers, METH_VARARGS | METH_KEYWORDS }, | |
1915 | { "wxFileSystem_AddHandler", (PyCFunction) _wrap_wxFileSystem_AddHandler, METH_VARARGS | METH_KEYWORDS }, | |
1916 | { "wxFileSystem_FindNext", (PyCFunction) _wrap_wxFileSystem_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
1917 | { "wxFileSystem_FindFirst", (PyCFunction) _wrap_wxFileSystem_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
1918 | { "wxFileSystem_OpenFile", (PyCFunction) _wrap_wxFileSystem_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
1919 | { "wxFileSystem_GetPath", (PyCFunction) _wrap_wxFileSystem_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
1920 | { "wxFileSystem_ChangePathTo", (PyCFunction) _wrap_wxFileSystem_ChangePathTo, METH_VARARGS | METH_KEYWORDS }, | |
1921 | { "new_wxFileSystem", (PyCFunction) _wrap_new_wxFileSystem, METH_VARARGS | METH_KEYWORDS }, | |
1922 | { "wxFileSystemHandler_GetMimeTypeFromExt", (PyCFunction) _wrap_wxFileSystemHandler_GetMimeTypeFromExt, METH_VARARGS | METH_KEYWORDS }, | |
1923 | { "wxFileSystemHandler_GetRightLocation", (PyCFunction) _wrap_wxFileSystemHandler_GetRightLocation, METH_VARARGS | METH_KEYWORDS }, | |
1924 | { "wxFileSystemHandler_GetAnchor", (PyCFunction) _wrap_wxFileSystemHandler_GetAnchor, METH_VARARGS | METH_KEYWORDS }, | |
1925 | { "wxFileSystemHandler_GetLeftLocation", (PyCFunction) _wrap_wxFileSystemHandler_GetLeftLocation, METH_VARARGS | METH_KEYWORDS }, | |
1926 | { "wxFileSystemHandler_GetProtocol", (PyCFunction) _wrap_wxFileSystemHandler_GetProtocol, METH_VARARGS | METH_KEYWORDS }, | |
1927 | { "wxFileSystemHandler_FindNext", (PyCFunction) _wrap_wxFileSystemHandler_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
1928 | { "wxFileSystemHandler_FindFirst", (PyCFunction) _wrap_wxFileSystemHandler_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
1929 | { "wxFileSystemHandler_OpenFile", (PyCFunction) _wrap_wxFileSystemHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
1930 | { "wxFileSystemHandler_CanOpen", (PyCFunction) _wrap_wxFileSystemHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
1931 | { "wxFileSystemHandler__setCallbackInfo", (PyCFunction) _wrap_wxFileSystemHandler__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
1932 | { "new_wxFileSystemHandler", (PyCFunction) _wrap_new_wxFileSystemHandler, METH_VARARGS | METH_KEYWORDS }, | |
1933 | { "wxFSFile_GetModificationTime", (PyCFunction) _wrap_wxFSFile_GetModificationTime, METH_VARARGS | METH_KEYWORDS }, | |
1934 | { "wxFSFile_GetAnchor", (PyCFunction) _wrap_wxFSFile_GetAnchor, METH_VARARGS | METH_KEYWORDS }, | |
1935 | { "wxFSFile_GetLocation", (PyCFunction) _wrap_wxFSFile_GetLocation, METH_VARARGS | METH_KEYWORDS }, | |
1936 | { "wxFSFile_GetMimeType", (PyCFunction) _wrap_wxFSFile_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
1937 | { "wxFSFile_GetStream", (PyCFunction) _wrap_wxFSFile_GetStream, METH_VARARGS | METH_KEYWORDS }, | |
1938 | { "new_wxFSFile", (PyCFunction) _wrap_new_wxFSFile, METH_VARARGS | METH_KEYWORDS }, | |
1939 | { "__wxMemoryFSHandler_AddFile_Data", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_Data, METH_VARARGS | METH_KEYWORDS }, | |
1940 | { "__wxMemoryFSHandler_AddFile_wxBitmap", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxBitmap, METH_VARARGS | METH_KEYWORDS }, | |
1941 | { "__wxMemoryFSHandler_AddFile_wxImage", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxImage, METH_VARARGS | METH_KEYWORDS }, | |
1942 | { NULL, NULL } | |
1943 | }; | |
1944 | #ifdef __cplusplus | |
1945 | } | |
1946 | #endif | |
1947 | /* | |
1948 | * This table is used by the pointer type-checker | |
1949 | */ | |
1950 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
1951 | { "_signed_long","_long",0}, | |
1952 | { "_wxPrintQuality","_wxCoord",0}, | |
1953 | { "_wxPrintQuality","_int",0}, | |
1954 | { "_wxPrintQuality","_signed_int",0}, | |
1955 | { "_wxPrintQuality","_unsigned_int",0}, | |
1956 | { "_wxPrintQuality","_wxWindowID",0}, | |
1957 | { "_wxPrintQuality","_uint",0}, | |
1958 | { "_wxPrintQuality","_EBool",0}, | |
1959 | { "_wxPrintQuality","_size_t",0}, | |
1960 | { "_wxPrintQuality","_time_t",0}, | |
1961 | { "_byte","_unsigned_char",0}, | |
1962 | { "_long","_unsigned_long",0}, | |
1963 | { "_long","_signed_long",0}, | |
1964 | { "_size_t","_wxCoord",0}, | |
1965 | { "_size_t","_wxPrintQuality",0}, | |
1966 | { "_size_t","_time_t",0}, | |
1967 | { "_size_t","_unsigned_int",0}, | |
1968 | { "_size_t","_int",0}, | |
1969 | { "_size_t","_wxWindowID",0}, | |
1970 | { "_size_t","_uint",0}, | |
1971 | { "_uint","_wxCoord",0}, | |
1972 | { "_uint","_wxPrintQuality",0}, | |
1973 | { "_uint","_time_t",0}, | |
1974 | { "_uint","_size_t",0}, | |
1975 | { "_uint","_unsigned_int",0}, | |
1976 | { "_uint","_int",0}, | |
1977 | { "_uint","_wxWindowID",0}, | |
1978 | { "_wxChar","_char",0}, | |
1979 | { "_char","_wxChar",0}, | |
1980 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, | |
1981 | { "_EBool","_wxCoord",0}, | |
1982 | { "_EBool","_wxPrintQuality",0}, | |
1983 | { "_EBool","_signed_int",0}, | |
1984 | { "_EBool","_int",0}, | |
1985 | { "_EBool","_wxWindowID",0}, | |
1986 | { "_unsigned_long","_long",0}, | |
1987 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, | |
1988 | { "_signed_int","_wxCoord",0}, | |
1989 | { "_signed_int","_wxPrintQuality",0}, | |
1990 | { "_signed_int","_EBool",0}, | |
1991 | { "_signed_int","_wxWindowID",0}, | |
1992 | { "_signed_int","_int",0}, | |
1993 | { "_WXTYPE","_wxDateTime_t",0}, | |
1994 | { "_WXTYPE","_short",0}, | |
1995 | { "_WXTYPE","_signed_short",0}, | |
1996 | { "_WXTYPE","_unsigned_short",0}, | |
1997 | { "_unsigned_short","_wxDateTime_t",0}, | |
1998 | { "_unsigned_short","_WXTYPE",0}, | |
1999 | { "_unsigned_short","_short",0}, | |
2000 | { "_wxObject","_wxMemoryFSHandler",SwigwxMemoryFSHandlerTowxObject}, | |
2001 | { "_wxObject","_wxZipFSHandler",SwigwxZipFSHandlerTowxObject}, | |
2002 | { "_wxObject","_wxInternetFSHandler",SwigwxInternetFSHandlerTowxObject}, | |
2003 | { "_wxObject","_wxFileSystem",SwigwxFileSystemTowxObject}, | |
2004 | { "_wxObject","_wxPyFileSystemHandler",SwigwxPyFileSystemHandlerTowxObject}, | |
2005 | { "_wxObject","_wxFileSystemHandler",SwigwxFileSystemHandlerTowxObject}, | |
2006 | { "_wxObject","_wxFSFile",SwigwxFSFileTowxObject}, | |
2007 | { "_signed_short","_WXTYPE",0}, | |
2008 | { "_signed_short","_short",0}, | |
2009 | { "_unsigned_char","_byte",0}, | |
2010 | { "_unsigned_int","_wxCoord",0}, | |
2011 | { "_unsigned_int","_wxPrintQuality",0}, | |
2012 | { "_unsigned_int","_time_t",0}, | |
2013 | { "_unsigned_int","_size_t",0}, | |
2014 | { "_unsigned_int","_uint",0}, | |
2015 | { "_unsigned_int","_wxWindowID",0}, | |
2016 | { "_unsigned_int","_int",0}, | |
2017 | { "_short","_wxDateTime_t",0}, | |
2018 | { "_short","_WXTYPE",0}, | |
2019 | { "_short","_unsigned_short",0}, | |
2020 | { "_short","_signed_short",0}, | |
2021 | { "_wxFileSystemHandler","_wxMemoryFSHandler",SwigwxMemoryFSHandlerTowxFileSystemHandler}, | |
2022 | { "_wxFileSystemHandler","_wxZipFSHandler",SwigwxZipFSHandlerTowxFileSystemHandler}, | |
2023 | { "_wxFileSystemHandler","_wxInternetFSHandler",SwigwxInternetFSHandlerTowxFileSystemHandler}, | |
2024 | { "_wxFileSystemHandler","_wxPyFileSystemHandler",SwigwxPyFileSystemHandlerTowxFileSystemHandler}, | |
2025 | { "_wxWindowID","_wxCoord",0}, | |
2026 | { "_wxWindowID","_wxPrintQuality",0}, | |
2027 | { "_wxWindowID","_time_t",0}, | |
2028 | { "_wxWindowID","_size_t",0}, | |
2029 | { "_wxWindowID","_EBool",0}, | |
2030 | { "_wxWindowID","_uint",0}, | |
2031 | { "_wxWindowID","_int",0}, | |
2032 | { "_wxWindowID","_signed_int",0}, | |
2033 | { "_wxWindowID","_unsigned_int",0}, | |
2034 | { "_int","_wxCoord",0}, | |
2035 | { "_int","_wxPrintQuality",0}, | |
2036 | { "_int","_time_t",0}, | |
2037 | { "_int","_size_t",0}, | |
2038 | { "_int","_EBool",0}, | |
2039 | { "_int","_uint",0}, | |
2040 | { "_int","_wxWindowID",0}, | |
2041 | { "_int","_unsigned_int",0}, | |
2042 | { "_int","_signed_int",0}, | |
2043 | { "_wxDateTime_t","_unsigned_short",0}, | |
2044 | { "_wxDateTime_t","_short",0}, | |
2045 | { "_wxDateTime_t","_WXTYPE",0}, | |
2046 | { "_time_t","_wxCoord",0}, | |
2047 | { "_time_t","_wxPrintQuality",0}, | |
2048 | { "_time_t","_unsigned_int",0}, | |
2049 | { "_time_t","_int",0}, | |
2050 | { "_time_t","_wxWindowID",0}, | |
2051 | { "_time_t","_uint",0}, | |
2052 | { "_time_t","_size_t",0}, | |
2053 | { "_wxCoord","_int",0}, | |
2054 | { "_wxCoord","_signed_int",0}, | |
2055 | { "_wxCoord","_unsigned_int",0}, | |
2056 | { "_wxCoord","_wxWindowID",0}, | |
2057 | { "_wxCoord","_uint",0}, | |
2058 | { "_wxCoord","_EBool",0}, | |
2059 | { "_wxCoord","_size_t",0}, | |
2060 | { "_wxCoord","_time_t",0}, | |
2061 | { "_wxCoord","_wxPrintQuality",0}, | |
2062 | {0,0,0}}; | |
2063 | ||
2064 | static PyObject *SWIG_globals; | |
2065 | #ifdef __cplusplus | |
2066 | extern "C" | |
2067 | #endif | |
2068 | SWIGEXPORT(void) initfilesysc() { | |
2069 | PyObject *m, *d; | |
2070 | SWIG_globals = SWIG_newvarlink(); | |
2071 | m = Py_InitModule("filesysc", filesyscMethods); | |
2072 | d = PyModule_GetDict(m); | |
2073 | ||
2074 | wxPyPtrTypeMap_Add("wxFileSystemHandler", "wxPyFileSystemHandler"); | |
2075 | { | |
2076 | int i; | |
2077 | for (i = 0; _swig_mapping[i].n1; i++) | |
2078 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
2079 | } | |
2080 | } |