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