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