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