2 * FILE : src/gtk/filesys.cpp
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
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.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
26 /* Definitions for Windows/Unix exporting */
27 #if defined(__WIN32__)
28 # if defined(_MSC_VER)
29 # define SWIGEXPORT(a) __declspec(dllexport) a
31 # if defined(__BORLANDC__)
32 # define SWIGEXPORT(a) a _export
34 # define SWIGEXPORT(a) a
38 # define SWIGEXPORT(a) a
44 extern void SWIG_MakePtr(char *, void *, char *);
45 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
46 extern char *SWIG_GetPtr(char *, void **, char *);
47 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
48 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
49 extern PyObject
*SWIG_newvarlink(void);
53 #define SWIG_init initfilesysc
55 #define SWIG_name "filesysc"
58 #include "pyistream.h"
59 #include <wx/filesys.h>
60 #include <wx/fs_inet.h>
61 #include <wx/fs_mem.h>
62 #include <wx/fs_zip.h>
65 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
71 } else if (target
== Py_None
) {
75 if (!PyTuple_Check(target
)) {
77 target
= PyTuple_New(1);
78 PyTuple_SetItem(target
, 0, o2
);
81 PyTuple_SetItem(o3
, 0, o
);
84 target
= PySequence_Concat(o2
, o3
);
91 // wxPyFileSystemHandler will be the Python class wxFileSystemHandler and handling
92 // the callback functions
93 class wxPyFileSystemHandler
: public wxFileSystemHandler
{
95 wxPyFileSystemHandler() : wxFileSystemHandler() {}
97 DEC_PYCALLBACK_BOOL_STRING_pure(CanOpen
);
98 DEC_PYCALLBACK_FSF_FSSTRING_pure(OpenFile
);
99 DEC_PYCALLBACK_STRING_STRINGINT_pure(FindFirst
);
100 DEC_PYCALLBACK_STRING__pure(FindNext
);
102 wxString
GetProtocol(const wxString
& location
) {
103 return wxFileSystemHandler::GetProtocol(location
);
106 wxString
GetLeftLocation(const wxString
& location
) {
107 return wxFileSystemHandler::GetLeftLocation(location
);
110 wxString
GetAnchor(const wxString
& location
) {
111 return wxFileSystemHandler::GetAnchor(location
);
114 wxString
GetRightLocation(const wxString
& location
) {
115 return wxFileSystemHandler::GetRightLocation(location
);
118 wxString
GetMimeTypeFromExt(const wxString
& location
) {
119 return wxFileSystemHandler::GetMimeTypeFromExt(location
);
126 IMP_PYCALLBACK_BOOL_STRING_pure(wxPyFileSystemHandler
, wxFileSystemHandler
, CanOpen
);
127 IMP_PYCALLBACK_FSF_FSSTRING_pure(wxPyFileSystemHandler
, wxFileSystemHandler
, OpenFile
);
128 IMP_PYCALLBACK_STRING_STRINGINT_pure(wxPyFileSystemHandler
, wxFileSystemHandler
, FindFirst
);
129 IMP_PYCALLBACK_STRING__pure(wxPyFileSystemHandler
, wxFileSystemHandler
, FindNext
);
131 void __wxMemoryFSHandler_AddFile_wxImage(const wxString
& filename
,
134 wxMemoryFSHandler::AddFile(filename
, image
, type
);
137 void __wxMemoryFSHandler_AddFile_wxBitmap(const wxString
& filename
,
138 const wxBitmap
& bitmap
,
140 wxMemoryFSHandler::AddFile(filename
, bitmap
, type
);
143 void __wxMemoryFSHandler_AddFile_Data(const wxString
& filename
,
146 wxMemoryFSHandler::AddFile(filename
,
147 // TODO: Verify data type
148 (void*)PyString_AsString(data
),
149 (size_t)PyString_Size(data
));
154 static PyObject
*_wrap___wxMemoryFSHandler_AddFile_wxImage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
155 PyObject
* _resultobj
;
159 PyObject
* _obj0
= 0;
160 PyObject
* _argo1
= 0;
161 char *_kwnames
[] = { "filename","image","type", NULL
};
164 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOl:__wxMemoryFSHandler_AddFile_wxImage",_kwnames
,&_obj0
,&_argo1
,&_arg2
))
167 _arg0
= wxString_in_helper(_obj0
);
172 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxImage_p")) {
173 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of __wxMemoryFSHandler_AddFile_wxImage. Expected _wxImage_p.");
178 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
179 __wxMemoryFSHandler_AddFile_wxImage(*_arg0
,*_arg1
,_arg2
);
181 wxPyEndAllowThreads(__tstate
);
182 if (PyErr_Occurred()) return NULL
;
183 } Py_INCREF(Py_None
);
184 _resultobj
= Py_None
;
192 static PyObject
*_wrap___wxMemoryFSHandler_AddFile_wxBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
193 PyObject
* _resultobj
;
197 PyObject
* _obj0
= 0;
198 PyObject
* _argo1
= 0;
199 char *_kwnames
[] = { "filename","bitmap","type", NULL
};
202 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOl:__wxMemoryFSHandler_AddFile_wxBitmap",_kwnames
,&_obj0
,&_argo1
,&_arg2
))
205 _arg0
= wxString_in_helper(_obj0
);
210 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
211 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of __wxMemoryFSHandler_AddFile_wxBitmap. Expected _wxBitmap_p.");
216 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
217 __wxMemoryFSHandler_AddFile_wxBitmap(*_arg0
,*_arg1
,_arg2
);
219 wxPyEndAllowThreads(__tstate
);
220 if (PyErr_Occurred()) return NULL
;
221 } Py_INCREF(Py_None
);
222 _resultobj
= Py_None
;
230 static PyObject
*_wrap___wxMemoryFSHandler_AddFile_Data(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
231 PyObject
* _resultobj
;
234 PyObject
* _obj0
= 0;
235 PyObject
* _obj1
= 0;
236 char *_kwnames
[] = { "filename","data", NULL
};
239 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:__wxMemoryFSHandler_AddFile_Data",_kwnames
,&_obj0
,&_obj1
))
242 _arg0
= wxString_in_helper(_obj0
);
250 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
251 __wxMemoryFSHandler_AddFile_Data(*_arg0
,_arg1
);
253 wxPyEndAllowThreads(__tstate
);
254 if (PyErr_Occurred()) return NULL
;
255 } Py_INCREF(Py_None
);
256 _resultobj
= Py_None
;
264 static void *SwigwxFSFileTowxObject(void *ptr
) {
267 src
= (wxFSFile
*) ptr
;
268 dest
= (wxObject
*) src
;
269 return (void *) dest
;
272 #define new_wxFSFile(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxFSFile(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
273 static PyObject
*_wrap_new_wxFSFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
274 PyObject
* _resultobj
;
276 wxInputStream
* _arg0
;
281 wxPyInputStream
* temp
;
283 PyObject
* _obj0
= 0;
284 PyObject
* _obj1
= 0;
285 PyObject
* _obj2
= 0;
286 PyObject
* _obj3
= 0;
287 PyObject
* _argo4
= 0;
288 char *_kwnames
[] = { "stream","loc","mimetype","anchor","modif", NULL
};
292 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOOO:new_wxFSFile",_kwnames
,&_obj0
,&_obj1
,&_obj2
,&_obj3
,&_argo4
))
295 if (SWIG_GetPtrObj(_obj0
, (void **) &temp
, "_wxPyInputStream_p") == 0) {
296 _arg0
= temp
->m_wxis
;
299 _arg0
= wxPyCBInputStream_create(_obj0
, FALSE
);
301 PyErr_SetString(PyExc_TypeError
,"Expected _wxInputStream_p or Python file-like object.");
308 _arg1
= wxString_in_helper(_obj1
);
313 _arg2
= wxString_in_helper(_obj2
);
318 _arg3
= wxString_in_helper(_obj3
);
323 if (_argo4
== Py_None
) { _arg4
= NULL
; }
324 else if (SWIG_GetPtrObj(_argo4
,(void **) &_arg4
,"_wxDateTime_p")) {
325 PyErr_SetString(PyExc_TypeError
,"Type error in argument 5 of new_wxFSFile. Expected _wxDateTime_p.");
330 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
331 _result
= (wxFSFile
*)new_wxFSFile(_arg0
,*_arg1
,*_arg2
,*_arg3
,*_arg4
);
333 wxPyEndAllowThreads(__tstate
);
334 if (PyErr_Occurred()) return NULL
;
336 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFSFile_p");
337 _resultobj
= Py_BuildValue("s",_ptemp
);
340 _resultobj
= Py_None
;
361 #define wxFSFile_GetStream(_swigobj) (_swigobj->GetStream())
362 static PyObject
*_wrap_wxFSFile_GetStream(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
363 PyObject
* _resultobj
;
364 wxInputStream
* _result
;
366 PyObject
* _argo0
= 0;
367 char *_kwnames
[] = { "self", NULL
};
370 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFSFile_GetStream",_kwnames
,&_argo0
))
373 if (_argo0
== Py_None
) { _arg0
= NULL
; }
374 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFSFile_p")) {
375 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFSFile_GetStream. Expected _wxFSFile_p.");
380 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
381 _result
= (wxInputStream
*)wxFSFile_GetStream(_arg0
);
383 wxPyEndAllowThreads(__tstate
);
384 if (PyErr_Occurred()) return NULL
;
386 wxPyInputStream
* _ptr
= NULL
;
389 _ptr
= new wxPyInputStream(_result
);
391 _resultobj
= wxPyConstructObject(_ptr
, wxT("wxInputStream"), TRUE
);
396 #define wxFSFile_GetMimeType(_swigobj) (_swigobj->GetMimeType())
397 static PyObject
*_wrap_wxFSFile_GetMimeType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
398 PyObject
* _resultobj
;
401 PyObject
* _argo0
= 0;
402 char *_kwnames
[] = { "self", NULL
};
405 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFSFile_GetMimeType",_kwnames
,&_argo0
))
408 if (_argo0
== Py_None
) { _arg0
= NULL
; }
409 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFSFile_p")) {
410 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFSFile_GetMimeType. Expected _wxFSFile_p.");
415 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
416 const wxString
& _result_ref
= wxFSFile_GetMimeType(_arg0
);
417 _result
= (wxString
*) &_result_ref
;
419 wxPyEndAllowThreads(__tstate
);
420 if (PyErr_Occurred()) return NULL
;
423 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
425 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
431 #define wxFSFile_GetLocation(_swigobj) (_swigobj->GetLocation())
432 static PyObject
*_wrap_wxFSFile_GetLocation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
433 PyObject
* _resultobj
;
436 PyObject
* _argo0
= 0;
437 char *_kwnames
[] = { "self", NULL
};
440 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFSFile_GetLocation",_kwnames
,&_argo0
))
443 if (_argo0
== Py_None
) { _arg0
= NULL
; }
444 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFSFile_p")) {
445 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFSFile_GetLocation. Expected _wxFSFile_p.");
450 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
451 const wxString
& _result_ref
= wxFSFile_GetLocation(_arg0
);
452 _result
= (wxString
*) &_result_ref
;
454 wxPyEndAllowThreads(__tstate
);
455 if (PyErr_Occurred()) return NULL
;
458 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
460 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
466 #define wxFSFile_GetAnchor(_swigobj) (_swigobj->GetAnchor())
467 static PyObject
*_wrap_wxFSFile_GetAnchor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
468 PyObject
* _resultobj
;
471 PyObject
* _argo0
= 0;
472 char *_kwnames
[] = { "self", NULL
};
475 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFSFile_GetAnchor",_kwnames
,&_argo0
))
478 if (_argo0
== Py_None
) { _arg0
= NULL
; }
479 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFSFile_p")) {
480 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFSFile_GetAnchor. Expected _wxFSFile_p.");
485 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
486 const wxString
& _result_ref
= wxFSFile_GetAnchor(_arg0
);
487 _result
= (wxString
*) &_result_ref
;
489 wxPyEndAllowThreads(__tstate
);
490 if (PyErr_Occurred()) return NULL
;
493 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
495 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
501 #define wxFSFile_GetModificationTime(_swigobj) (_swigobj->GetModificationTime())
502 static PyObject
*_wrap_wxFSFile_GetModificationTime(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
503 PyObject
* _resultobj
;
504 wxDateTime
* _result
;
506 PyObject
* _argo0
= 0;
507 char *_kwnames
[] = { "self", NULL
};
511 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFSFile_GetModificationTime",_kwnames
,&_argo0
))
514 if (_argo0
== Py_None
) { _arg0
= NULL
; }
515 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFSFile_p")) {
516 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFSFile_GetModificationTime. Expected _wxFSFile_p.");
521 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
522 _result
= new wxDateTime (wxFSFile_GetModificationTime(_arg0
));
524 wxPyEndAllowThreads(__tstate
);
525 if (PyErr_Occurred()) return NULL
;
526 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxDateTime_p");
527 _resultobj
= Py_BuildValue("s",_ptemp
);
531 static void *SwigwxFileSystemHandlerTowxObject(void *ptr
) {
532 wxFileSystemHandler
*src
;
534 src
= (wxFileSystemHandler
*) ptr
;
535 dest
= (wxObject
*) src
;
536 return (void *) dest
;
539 static void *SwigwxPyFileSystemHandlerTowxFileSystemHandler(void *ptr
) {
540 wxPyFileSystemHandler
*src
;
541 wxFileSystemHandler
*dest
;
542 src
= (wxPyFileSystemHandler
*) ptr
;
543 dest
= (wxFileSystemHandler
*) src
;
544 return (void *) dest
;
547 static void *SwigwxPyFileSystemHandlerTowxObject(void *ptr
) {
548 wxPyFileSystemHandler
*src
;
550 src
= (wxPyFileSystemHandler
*) ptr
;
551 dest
= (wxObject
*) src
;
552 return (void *) dest
;
555 #define new_wxFileSystemHandler() (new wxPyFileSystemHandler())
556 static PyObject
*_wrap_new_wxFileSystemHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
557 PyObject
* _resultobj
;
558 wxPyFileSystemHandler
* _result
;
559 char *_kwnames
[] = { NULL
};
563 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxFileSystemHandler",_kwnames
))
566 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
567 _result
= (wxPyFileSystemHandler
*)new_wxFileSystemHandler();
569 wxPyEndAllowThreads(__tstate
);
570 if (PyErr_Occurred()) return NULL
;
572 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyFileSystemHandler_p");
573 _resultobj
= Py_BuildValue("s",_ptemp
);
576 _resultobj
= Py_None
;
581 #define wxFileSystemHandler__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
582 static PyObject
*_wrap_wxFileSystemHandler__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
583 PyObject
* _resultobj
;
584 wxPyFileSystemHandler
* _arg0
;
587 PyObject
* _argo0
= 0;
588 PyObject
* _obj1
= 0;
589 PyObject
* _obj2
= 0;
590 char *_kwnames
[] = { "self","self","_class", NULL
};
593 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxFileSystemHandler__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
596 if (_argo0
== Py_None
) { _arg0
= NULL
; }
597 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileSystemHandler_p")) {
598 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileSystemHandler__setCallbackInfo. Expected _wxPyFileSystemHandler_p.");
609 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
610 wxFileSystemHandler__setCallbackInfo(_arg0
,_arg1
,_arg2
);
612 wxPyEndAllowThreads(__tstate
);
613 if (PyErr_Occurred()) return NULL
;
614 } Py_INCREF(Py_None
);
615 _resultobj
= Py_None
;
619 #define wxFileSystemHandler_CanOpen(_swigobj,_swigarg0) (_swigobj->CanOpen(_swigarg0))
620 static PyObject
*_wrap_wxFileSystemHandler_CanOpen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
621 PyObject
* _resultobj
;
623 wxPyFileSystemHandler
* _arg0
;
625 PyObject
* _argo0
= 0;
626 PyObject
* _obj1
= 0;
627 char *_kwnames
[] = { "self","location", NULL
};
630 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFileSystemHandler_CanOpen",_kwnames
,&_argo0
,&_obj1
))
633 if (_argo0
== Py_None
) { _arg0
= NULL
; }
634 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileSystemHandler_p")) {
635 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileSystemHandler_CanOpen. Expected _wxPyFileSystemHandler_p.");
640 _arg1
= wxString_in_helper(_obj1
);
645 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
646 _result
= (bool )wxFileSystemHandler_CanOpen(_arg0
,*_arg1
);
648 wxPyEndAllowThreads(__tstate
);
649 if (PyErr_Occurred()) return NULL
;
650 } _resultobj
= Py_BuildValue("i",_result
);
658 #define wxFileSystemHandler_OpenFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->OpenFile(_swigarg0,_swigarg1))
659 static PyObject
*_wrap_wxFileSystemHandler_OpenFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
660 PyObject
* _resultobj
;
662 wxPyFileSystemHandler
* _arg0
;
663 wxFileSystem
* _arg1
;
665 PyObject
* _argo0
= 0;
666 PyObject
* _argo1
= 0;
667 PyObject
* _obj2
= 0;
668 char *_kwnames
[] = { "self","fs","location", NULL
};
671 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxFileSystemHandler_OpenFile",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
674 if (_argo0
== Py_None
) { _arg0
= NULL
; }
675 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileSystemHandler_p")) {
676 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileSystemHandler_OpenFile. Expected _wxPyFileSystemHandler_p.");
681 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFileSystem_p")) {
682 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFileSystemHandler_OpenFile. Expected _wxFileSystem_p.");
687 _arg2
= wxString_in_helper(_obj2
);
692 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
693 _result
= (wxFSFile
*)wxFileSystemHandler_OpenFile(_arg0
,*_arg1
,*_arg2
);
695 wxPyEndAllowThreads(__tstate
);
696 if (PyErr_Occurred()) return NULL
;
697 }{ _resultobj
= wxPyMake_wxObject(_result
); }
705 #define wxFileSystemHandler_FindFirst(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindFirst(_swigarg0,_swigarg1))
706 static PyObject
*_wrap_wxFileSystemHandler_FindFirst(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
707 PyObject
* _resultobj
;
709 wxPyFileSystemHandler
* _arg0
;
711 int _arg2
= (int ) 0;
712 PyObject
* _argo0
= 0;
713 PyObject
* _obj1
= 0;
714 char *_kwnames
[] = { "self","spec","flags", NULL
};
717 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxFileSystemHandler_FindFirst",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
720 if (_argo0
== Py_None
) { _arg0
= NULL
; }
721 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileSystemHandler_p")) {
722 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileSystemHandler_FindFirst. Expected _wxPyFileSystemHandler_p.");
727 _arg1
= wxString_in_helper(_obj1
);
732 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
733 _result
= new wxString (wxFileSystemHandler_FindFirst(_arg0
,*_arg1
,_arg2
));
735 wxPyEndAllowThreads(__tstate
);
736 if (PyErr_Occurred()) return NULL
;
739 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
741 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
754 #define wxFileSystemHandler_FindNext(_swigobj) (_swigobj->FindNext())
755 static PyObject
*_wrap_wxFileSystemHandler_FindNext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
756 PyObject
* _resultobj
;
758 wxPyFileSystemHandler
* _arg0
;
759 PyObject
* _argo0
= 0;
760 char *_kwnames
[] = { "self", NULL
};
763 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFileSystemHandler_FindNext",_kwnames
,&_argo0
))
766 if (_argo0
== Py_None
) { _arg0
= NULL
; }
767 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileSystemHandler_p")) {
768 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileSystemHandler_FindNext. Expected _wxPyFileSystemHandler_p.");
773 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
774 _result
= new wxString (wxFileSystemHandler_FindNext(_arg0
));
776 wxPyEndAllowThreads(__tstate
);
777 if (PyErr_Occurred()) return NULL
;
780 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
782 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
791 #define wxFileSystemHandler_GetProtocol(_swigobj,_swigarg0) (_swigobj->GetProtocol(_swigarg0))
792 static PyObject
*_wrap_wxFileSystemHandler_GetProtocol(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
793 PyObject
* _resultobj
;
795 wxPyFileSystemHandler
* _arg0
;
797 PyObject
* _argo0
= 0;
798 PyObject
* _obj1
= 0;
799 char *_kwnames
[] = { "self","location", NULL
};
802 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFileSystemHandler_GetProtocol",_kwnames
,&_argo0
,&_obj1
))
805 if (_argo0
== Py_None
) { _arg0
= NULL
; }
806 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileSystemHandler_p")) {
807 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileSystemHandler_GetProtocol. Expected _wxPyFileSystemHandler_p.");
812 _arg1
= wxString_in_helper(_obj1
);
817 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
818 _result
= new wxString (wxFileSystemHandler_GetProtocol(_arg0
,*_arg1
));
820 wxPyEndAllowThreads(__tstate
);
821 if (PyErr_Occurred()) return NULL
;
824 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
826 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
839 #define wxFileSystemHandler_GetLeftLocation(_swigobj,_swigarg0) (_swigobj->GetLeftLocation(_swigarg0))
840 static PyObject
*_wrap_wxFileSystemHandler_GetLeftLocation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
841 PyObject
* _resultobj
;
843 wxPyFileSystemHandler
* _arg0
;
845 PyObject
* _argo0
= 0;
846 PyObject
* _obj1
= 0;
847 char *_kwnames
[] = { "self","location", NULL
};
850 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFileSystemHandler_GetLeftLocation",_kwnames
,&_argo0
,&_obj1
))
853 if (_argo0
== Py_None
) { _arg0
= NULL
; }
854 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileSystemHandler_p")) {
855 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileSystemHandler_GetLeftLocation. Expected _wxPyFileSystemHandler_p.");
860 _arg1
= wxString_in_helper(_obj1
);
865 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
866 _result
= new wxString (wxFileSystemHandler_GetLeftLocation(_arg0
,*_arg1
));
868 wxPyEndAllowThreads(__tstate
);
869 if (PyErr_Occurred()) return NULL
;
872 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
874 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
887 #define wxFileSystemHandler_GetAnchor(_swigobj,_swigarg0) (_swigobj->GetAnchor(_swigarg0))
888 static PyObject
*_wrap_wxFileSystemHandler_GetAnchor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
889 PyObject
* _resultobj
;
891 wxPyFileSystemHandler
* _arg0
;
893 PyObject
* _argo0
= 0;
894 PyObject
* _obj1
= 0;
895 char *_kwnames
[] = { "self","location", NULL
};
898 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFileSystemHandler_GetAnchor",_kwnames
,&_argo0
,&_obj1
))
901 if (_argo0
== Py_None
) { _arg0
= NULL
; }
902 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileSystemHandler_p")) {
903 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileSystemHandler_GetAnchor. Expected _wxPyFileSystemHandler_p.");
908 _arg1
= wxString_in_helper(_obj1
);
913 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
914 _result
= new wxString (wxFileSystemHandler_GetAnchor(_arg0
,*_arg1
));
916 wxPyEndAllowThreads(__tstate
);
917 if (PyErr_Occurred()) return NULL
;
920 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
922 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
935 #define wxFileSystemHandler_GetRightLocation(_swigobj,_swigarg0) (_swigobj->GetRightLocation(_swigarg0))
936 static PyObject
*_wrap_wxFileSystemHandler_GetRightLocation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
937 PyObject
* _resultobj
;
939 wxPyFileSystemHandler
* _arg0
;
941 PyObject
* _argo0
= 0;
942 PyObject
* _obj1
= 0;
943 char *_kwnames
[] = { "self","location", NULL
};
946 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFileSystemHandler_GetRightLocation",_kwnames
,&_argo0
,&_obj1
))
949 if (_argo0
== Py_None
) { _arg0
= NULL
; }
950 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileSystemHandler_p")) {
951 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileSystemHandler_GetRightLocation. Expected _wxPyFileSystemHandler_p.");
956 _arg1
= wxString_in_helper(_obj1
);
961 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
962 _result
= new wxString (wxFileSystemHandler_GetRightLocation(_arg0
,*_arg1
));
964 wxPyEndAllowThreads(__tstate
);
965 if (PyErr_Occurred()) return NULL
;
968 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
970 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
983 #define wxFileSystemHandler_GetMimeTypeFromExt(_swigobj,_swigarg0) (_swigobj->GetMimeTypeFromExt(_swigarg0))
984 static PyObject
*_wrap_wxFileSystemHandler_GetMimeTypeFromExt(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
985 PyObject
* _resultobj
;
987 wxPyFileSystemHandler
* _arg0
;
989 PyObject
* _argo0
= 0;
990 PyObject
* _obj1
= 0;
991 char *_kwnames
[] = { "self","location", NULL
};
994 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFileSystemHandler_GetMimeTypeFromExt",_kwnames
,&_argo0
,&_obj1
))
997 if (_argo0
== Py_None
) { _arg0
= NULL
; }
998 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileSystemHandler_p")) {
999 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileSystemHandler_GetMimeTypeFromExt. Expected _wxPyFileSystemHandler_p.");
1004 _arg1
= wxString_in_helper(_obj1
);
1009 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1010 _result
= new wxString (wxFileSystemHandler_GetMimeTypeFromExt(_arg0
,*_arg1
));
1012 wxPyEndAllowThreads(__tstate
);
1013 if (PyErr_Occurred()) return NULL
;
1016 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
1018 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1031 static void *SwigwxFileSystemTowxObject(void *ptr
) {
1034 src
= (wxFileSystem
*) ptr
;
1035 dest
= (wxObject
*) src
;
1036 return (void *) dest
;
1039 #define new_wxFileSystem() (new wxFileSystem())
1040 static PyObject
*_wrap_new_wxFileSystem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1041 PyObject
* _resultobj
;
1042 wxFileSystem
* _result
;
1043 char *_kwnames
[] = { NULL
};
1047 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxFileSystem",_kwnames
))
1050 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1051 _result
= (wxFileSystem
*)new_wxFileSystem();
1053 wxPyEndAllowThreads(__tstate
);
1054 if (PyErr_Occurred()) return NULL
;
1056 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFileSystem_p");
1057 _resultobj
= Py_BuildValue("s",_ptemp
);
1060 _resultobj
= Py_None
;
1065 #define wxFileSystem_ChangePathTo(_swigobj,_swigarg0,_swigarg1) (_swigobj->ChangePathTo(_swigarg0,_swigarg1))
1066 static PyObject
*_wrap_wxFileSystem_ChangePathTo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1067 PyObject
* _resultobj
;
1068 wxFileSystem
* _arg0
;
1070 bool _arg2
= (bool ) FALSE
;
1071 PyObject
* _argo0
= 0;
1072 PyObject
* _obj1
= 0;
1073 int tempbool2
= (int) FALSE
;
1074 char *_kwnames
[] = { "self","location","is_dir", NULL
};
1077 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxFileSystem_ChangePathTo",_kwnames
,&_argo0
,&_obj1
,&tempbool2
))
1080 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1081 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFileSystem_p")) {
1082 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileSystem_ChangePathTo. Expected _wxFileSystem_p.");
1087 _arg1
= wxString_in_helper(_obj1
);
1091 _arg2
= (bool ) tempbool2
;
1093 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1094 wxFileSystem_ChangePathTo(_arg0
,*_arg1
,_arg2
);
1096 wxPyEndAllowThreads(__tstate
);
1097 if (PyErr_Occurred()) return NULL
;
1098 } Py_INCREF(Py_None
);
1099 _resultobj
= Py_None
;
1107 #define wxFileSystem_GetPath(_swigobj) (_swigobj->GetPath())
1108 static PyObject
*_wrap_wxFileSystem_GetPath(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1109 PyObject
* _resultobj
;
1111 wxFileSystem
* _arg0
;
1112 PyObject
* _argo0
= 0;
1113 char *_kwnames
[] = { "self", NULL
};
1116 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFileSystem_GetPath",_kwnames
,&_argo0
))
1119 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1120 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFileSystem_p")) {
1121 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileSystem_GetPath. Expected _wxFileSystem_p.");
1126 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1127 _result
= new wxString (wxFileSystem_GetPath(_arg0
));
1129 wxPyEndAllowThreads(__tstate
);
1130 if (PyErr_Occurred()) return NULL
;
1133 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
1135 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1144 #define wxFileSystem_OpenFile(_swigobj,_swigarg0) (_swigobj->OpenFile(_swigarg0))
1145 static PyObject
*_wrap_wxFileSystem_OpenFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1146 PyObject
* _resultobj
;
1148 wxFileSystem
* _arg0
;
1150 PyObject
* _argo0
= 0;
1151 PyObject
* _obj1
= 0;
1152 char *_kwnames
[] = { "self","location", NULL
};
1155 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFileSystem_OpenFile",_kwnames
,&_argo0
,&_obj1
))
1158 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1159 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFileSystem_p")) {
1160 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileSystem_OpenFile. Expected _wxFileSystem_p.");
1165 _arg1
= wxString_in_helper(_obj1
);
1170 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1171 _result
= (wxFSFile
*)wxFileSystem_OpenFile(_arg0
,*_arg1
);
1173 wxPyEndAllowThreads(__tstate
);
1174 if (PyErr_Occurred()) return NULL
;
1175 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1183 #define wxFileSystem_FindFirst(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindFirst(_swigarg0,_swigarg1))
1184 static PyObject
*_wrap_wxFileSystem_FindFirst(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1185 PyObject
* _resultobj
;
1187 wxFileSystem
* _arg0
;
1189 int _arg2
= (int ) 0;
1190 PyObject
* _argo0
= 0;
1191 PyObject
* _obj1
= 0;
1192 char *_kwnames
[] = { "self","spec","flags", NULL
};
1195 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxFileSystem_FindFirst",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
1198 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1199 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFileSystem_p")) {
1200 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileSystem_FindFirst. Expected _wxFileSystem_p.");
1205 _arg1
= wxString_in_helper(_obj1
);
1210 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1211 _result
= new wxString (wxFileSystem_FindFirst(_arg0
,*_arg1
,_arg2
));
1213 wxPyEndAllowThreads(__tstate
);
1214 if (PyErr_Occurred()) return NULL
;
1217 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
1219 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1232 #define wxFileSystem_FindNext(_swigobj) (_swigobj->FindNext())
1233 static PyObject
*_wrap_wxFileSystem_FindNext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1234 PyObject
* _resultobj
;
1236 wxFileSystem
* _arg0
;
1237 PyObject
* _argo0
= 0;
1238 char *_kwnames
[] = { "self", NULL
};
1241 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFileSystem_FindNext",_kwnames
,&_argo0
))
1244 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1245 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFileSystem_p")) {
1246 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileSystem_FindNext. Expected _wxFileSystem_p.");
1251 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1252 _result
= new wxString (wxFileSystem_FindNext(_arg0
));
1254 wxPyEndAllowThreads(__tstate
);
1255 if (PyErr_Occurred()) return NULL
;
1258 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
1260 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1269 static PyObject
*_wrap_wxFileSystem_AddHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1270 PyObject
* _resultobj
;
1271 wxFileSystemHandler
* _arg0
;
1272 PyObject
* _argo0
= 0;
1273 char *_kwnames
[] = { "handler", NULL
};
1276 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFileSystem_AddHandler",_kwnames
,&_argo0
))
1279 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1280 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFileSystemHandler_p")) {
1281 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileSystem_AddHandler. Expected _wxFileSystemHandler_p.");
1286 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1287 wxFileSystem::AddHandler(_arg0
);
1289 wxPyEndAllowThreads(__tstate
);
1290 if (PyErr_Occurred()) return NULL
;
1291 } Py_INCREF(Py_None
);
1292 _resultobj
= Py_None
;
1296 static PyObject
*_wrap_wxFileSystem_CleanUpHandlers(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1297 PyObject
* _resultobj
;
1298 char *_kwnames
[] = { NULL
};
1301 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxFileSystem_CleanUpHandlers",_kwnames
))
1304 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1305 wxFileSystem::CleanUpHandlers();
1307 wxPyEndAllowThreads(__tstate
);
1308 if (PyErr_Occurred()) return NULL
;
1309 } Py_INCREF(Py_None
);
1310 _resultobj
= Py_None
;
1314 static void *SwigwxInternetFSHandlerTowxFileSystemHandler(void *ptr
) {
1315 wxInternetFSHandler
*src
;
1316 wxFileSystemHandler
*dest
;
1317 src
= (wxInternetFSHandler
*) ptr
;
1318 dest
= (wxFileSystemHandler
*) src
;
1319 return (void *) dest
;
1322 static void *SwigwxInternetFSHandlerTowxObject(void *ptr
) {
1323 wxInternetFSHandler
*src
;
1325 src
= (wxInternetFSHandler
*) ptr
;
1326 dest
= (wxObject
*) src
;
1327 return (void *) dest
;
1330 #define new_wxInternetFSHandler() (new wxInternetFSHandler())
1331 static PyObject
*_wrap_new_wxInternetFSHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1332 PyObject
* _resultobj
;
1333 wxInternetFSHandler
* _result
;
1334 char *_kwnames
[] = { NULL
};
1338 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxInternetFSHandler",_kwnames
))
1341 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1342 _result
= (wxInternetFSHandler
*)new_wxInternetFSHandler();
1344 wxPyEndAllowThreads(__tstate
);
1345 if (PyErr_Occurred()) return NULL
;
1347 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxInternetFSHandler_p");
1348 _resultobj
= Py_BuildValue("s",_ptemp
);
1351 _resultobj
= Py_None
;
1356 #define wxInternetFSHandler_CanOpen(_swigobj,_swigarg0) (_swigobj->CanOpen(_swigarg0))
1357 static PyObject
*_wrap_wxInternetFSHandler_CanOpen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1358 PyObject
* _resultobj
;
1360 wxInternetFSHandler
* _arg0
;
1362 PyObject
* _argo0
= 0;
1363 PyObject
* _obj1
= 0;
1364 char *_kwnames
[] = { "self","location", NULL
};
1367 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxInternetFSHandler_CanOpen",_kwnames
,&_argo0
,&_obj1
))
1370 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1371 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxInternetFSHandler_p")) {
1372 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxInternetFSHandler_CanOpen. Expected _wxInternetFSHandler_p.");
1377 _arg1
= wxString_in_helper(_obj1
);
1382 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1383 _result
= (bool )wxInternetFSHandler_CanOpen(_arg0
,*_arg1
);
1385 wxPyEndAllowThreads(__tstate
);
1386 if (PyErr_Occurred()) return NULL
;
1387 } _resultobj
= Py_BuildValue("i",_result
);
1395 #define wxInternetFSHandler_OpenFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->OpenFile(_swigarg0,_swigarg1))
1396 static PyObject
*_wrap_wxInternetFSHandler_OpenFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1397 PyObject
* _resultobj
;
1399 wxInternetFSHandler
* _arg0
;
1400 wxFileSystem
* _arg1
;
1402 PyObject
* _argo0
= 0;
1403 PyObject
* _argo1
= 0;
1404 PyObject
* _obj2
= 0;
1405 char *_kwnames
[] = { "self","fs","location", NULL
};
1408 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxInternetFSHandler_OpenFile",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
1411 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1412 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxInternetFSHandler_p")) {
1413 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxInternetFSHandler_OpenFile. Expected _wxInternetFSHandler_p.");
1418 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFileSystem_p")) {
1419 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxInternetFSHandler_OpenFile. Expected _wxFileSystem_p.");
1424 _arg2
= wxString_in_helper(_obj2
);
1429 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1430 _result
= (wxFSFile
*)wxInternetFSHandler_OpenFile(_arg0
,*_arg1
,*_arg2
);
1432 wxPyEndAllowThreads(__tstate
);
1433 if (PyErr_Occurred()) return NULL
;
1434 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1442 static void *SwigwxZipFSHandlerTowxFileSystemHandler(void *ptr
) {
1443 wxZipFSHandler
*src
;
1444 wxFileSystemHandler
*dest
;
1445 src
= (wxZipFSHandler
*) ptr
;
1446 dest
= (wxFileSystemHandler
*) src
;
1447 return (void *) dest
;
1450 static void *SwigwxZipFSHandlerTowxObject(void *ptr
) {
1451 wxZipFSHandler
*src
;
1453 src
= (wxZipFSHandler
*) ptr
;
1454 dest
= (wxObject
*) src
;
1455 return (void *) dest
;
1458 #define new_wxZipFSHandler() (new wxZipFSHandler())
1459 static PyObject
*_wrap_new_wxZipFSHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1460 PyObject
* _resultobj
;
1461 wxZipFSHandler
* _result
;
1462 char *_kwnames
[] = { NULL
};
1466 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxZipFSHandler",_kwnames
))
1469 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1470 _result
= (wxZipFSHandler
*)new_wxZipFSHandler();
1472 wxPyEndAllowThreads(__tstate
);
1473 if (PyErr_Occurred()) return NULL
;
1475 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxZipFSHandler_p");
1476 _resultobj
= Py_BuildValue("s",_ptemp
);
1479 _resultobj
= Py_None
;
1484 #define wxZipFSHandler_CanOpen(_swigobj,_swigarg0) (_swigobj->CanOpen(_swigarg0))
1485 static PyObject
*_wrap_wxZipFSHandler_CanOpen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1486 PyObject
* _resultobj
;
1488 wxZipFSHandler
* _arg0
;
1490 PyObject
* _argo0
= 0;
1491 PyObject
* _obj1
= 0;
1492 char *_kwnames
[] = { "self","location", NULL
};
1495 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxZipFSHandler_CanOpen",_kwnames
,&_argo0
,&_obj1
))
1498 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1499 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxZipFSHandler_p")) {
1500 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxZipFSHandler_CanOpen. Expected _wxZipFSHandler_p.");
1505 _arg1
= wxString_in_helper(_obj1
);
1510 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1511 _result
= (bool )wxZipFSHandler_CanOpen(_arg0
,*_arg1
);
1513 wxPyEndAllowThreads(__tstate
);
1514 if (PyErr_Occurred()) return NULL
;
1515 } _resultobj
= Py_BuildValue("i",_result
);
1523 #define wxZipFSHandler_OpenFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->OpenFile(_swigarg0,_swigarg1))
1524 static PyObject
*_wrap_wxZipFSHandler_OpenFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1525 PyObject
* _resultobj
;
1527 wxZipFSHandler
* _arg0
;
1528 wxFileSystem
* _arg1
;
1530 PyObject
* _argo0
= 0;
1531 PyObject
* _argo1
= 0;
1532 PyObject
* _obj2
= 0;
1533 char *_kwnames
[] = { "self","fs","location", NULL
};
1536 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxZipFSHandler_OpenFile",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
1539 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1540 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxZipFSHandler_p")) {
1541 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxZipFSHandler_OpenFile. Expected _wxZipFSHandler_p.");
1546 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFileSystem_p")) {
1547 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxZipFSHandler_OpenFile. Expected _wxFileSystem_p.");
1552 _arg2
= wxString_in_helper(_obj2
);
1557 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1558 _result
= (wxFSFile
*)wxZipFSHandler_OpenFile(_arg0
,*_arg1
,*_arg2
);
1560 wxPyEndAllowThreads(__tstate
);
1561 if (PyErr_Occurred()) return NULL
;
1562 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1570 #define wxZipFSHandler_FindFirst(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindFirst(_swigarg0,_swigarg1))
1571 static PyObject
*_wrap_wxZipFSHandler_FindFirst(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1572 PyObject
* _resultobj
;
1574 wxZipFSHandler
* _arg0
;
1576 int _arg2
= (int ) 0;
1577 PyObject
* _argo0
= 0;
1578 PyObject
* _obj1
= 0;
1579 char *_kwnames
[] = { "self","spec","flags", NULL
};
1582 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxZipFSHandler_FindFirst",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
1585 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1586 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxZipFSHandler_p")) {
1587 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxZipFSHandler_FindFirst. Expected _wxZipFSHandler_p.");
1592 _arg1
= wxString_in_helper(_obj1
);
1597 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1598 _result
= new wxString (wxZipFSHandler_FindFirst(_arg0
,*_arg1
,_arg2
));
1600 wxPyEndAllowThreads(__tstate
);
1601 if (PyErr_Occurred()) return NULL
;
1604 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
1606 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1619 #define wxZipFSHandler_FindNext(_swigobj) (_swigobj->FindNext())
1620 static PyObject
*_wrap_wxZipFSHandler_FindNext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1621 PyObject
* _resultobj
;
1623 wxZipFSHandler
* _arg0
;
1624 PyObject
* _argo0
= 0;
1625 char *_kwnames
[] = { "self", NULL
};
1628 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxZipFSHandler_FindNext",_kwnames
,&_argo0
))
1631 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1632 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxZipFSHandler_p")) {
1633 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxZipFSHandler_FindNext. Expected _wxZipFSHandler_p.");
1638 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1639 _result
= new wxString (wxZipFSHandler_FindNext(_arg0
));
1641 wxPyEndAllowThreads(__tstate
);
1642 if (PyErr_Occurred()) return NULL
;
1645 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
1647 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1656 static void *SwigwxMemoryFSHandlerTowxFileSystemHandler(void *ptr
) {
1657 wxMemoryFSHandler
*src
;
1658 wxFileSystemHandler
*dest
;
1659 src
= (wxMemoryFSHandler
*) ptr
;
1660 dest
= (wxFileSystemHandler
*) src
;
1661 return (void *) dest
;
1664 static void *SwigwxMemoryFSHandlerTowxObject(void *ptr
) {
1665 wxMemoryFSHandler
*src
;
1667 src
= (wxMemoryFSHandler
*) ptr
;
1668 dest
= (wxObject
*) src
;
1669 return (void *) dest
;
1672 #define new_wxMemoryFSHandler() (new wxMemoryFSHandler())
1673 static PyObject
*_wrap_new_wxMemoryFSHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1674 PyObject
* _resultobj
;
1675 wxMemoryFSHandler
* _result
;
1676 char *_kwnames
[] = { NULL
};
1680 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxMemoryFSHandler",_kwnames
))
1683 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1684 _result
= (wxMemoryFSHandler
*)new_wxMemoryFSHandler();
1686 wxPyEndAllowThreads(__tstate
);
1687 if (PyErr_Occurred()) return NULL
;
1689 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMemoryFSHandler_p");
1690 _resultobj
= Py_BuildValue("s",_ptemp
);
1693 _resultobj
= Py_None
;
1698 static PyObject
*_wrap_wxMemoryFSHandler_RemoveFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1699 PyObject
* _resultobj
;
1701 PyObject
* _obj0
= 0;
1702 char *_kwnames
[] = { "filename", NULL
};
1705 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMemoryFSHandler_RemoveFile",_kwnames
,&_obj0
))
1708 _arg0
= wxString_in_helper(_obj0
);
1713 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1714 wxMemoryFSHandler::RemoveFile(*_arg0
);
1716 wxPyEndAllowThreads(__tstate
);
1717 if (PyErr_Occurred()) return NULL
;
1718 } Py_INCREF(Py_None
);
1719 _resultobj
= Py_None
;
1727 #define wxMemoryFSHandler_CanOpen(_swigobj,_swigarg0) (_swigobj->CanOpen(_swigarg0))
1728 static PyObject
*_wrap_wxMemoryFSHandler_CanOpen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1729 PyObject
* _resultobj
;
1731 wxMemoryFSHandler
* _arg0
;
1733 PyObject
* _argo0
= 0;
1734 PyObject
* _obj1
= 0;
1735 char *_kwnames
[] = { "self","location", NULL
};
1738 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMemoryFSHandler_CanOpen",_kwnames
,&_argo0
,&_obj1
))
1741 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1742 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMemoryFSHandler_p")) {
1743 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryFSHandler_CanOpen. Expected _wxMemoryFSHandler_p.");
1748 _arg1
= wxString_in_helper(_obj1
);
1753 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1754 _result
= (bool )wxMemoryFSHandler_CanOpen(_arg0
,*_arg1
);
1756 wxPyEndAllowThreads(__tstate
);
1757 if (PyErr_Occurred()) return NULL
;
1758 } _resultobj
= Py_BuildValue("i",_result
);
1766 #define wxMemoryFSHandler_OpenFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->OpenFile(_swigarg0,_swigarg1))
1767 static PyObject
*_wrap_wxMemoryFSHandler_OpenFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1768 PyObject
* _resultobj
;
1770 wxMemoryFSHandler
* _arg0
;
1771 wxFileSystem
* _arg1
;
1773 PyObject
* _argo0
= 0;
1774 PyObject
* _argo1
= 0;
1775 PyObject
* _obj2
= 0;
1776 char *_kwnames
[] = { "self","fs","location", NULL
};
1779 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxMemoryFSHandler_OpenFile",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
1782 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1783 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMemoryFSHandler_p")) {
1784 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryFSHandler_OpenFile. Expected _wxMemoryFSHandler_p.");
1789 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFileSystem_p")) {
1790 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMemoryFSHandler_OpenFile. Expected _wxFileSystem_p.");
1795 _arg2
= wxString_in_helper(_obj2
);
1800 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1801 _result
= (wxFSFile
*)wxMemoryFSHandler_OpenFile(_arg0
,*_arg1
,*_arg2
);
1803 wxPyEndAllowThreads(__tstate
);
1804 if (PyErr_Occurred()) return NULL
;
1805 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1813 #define wxMemoryFSHandler_FindFirst(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindFirst(_swigarg0,_swigarg1))
1814 static PyObject
*_wrap_wxMemoryFSHandler_FindFirst(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1815 PyObject
* _resultobj
;
1817 wxMemoryFSHandler
* _arg0
;
1819 int _arg2
= (int ) 0;
1820 PyObject
* _argo0
= 0;
1821 PyObject
* _obj1
= 0;
1822 char *_kwnames
[] = { "self","spec","flags", NULL
};
1825 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxMemoryFSHandler_FindFirst",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
1828 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1829 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMemoryFSHandler_p")) {
1830 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryFSHandler_FindFirst. Expected _wxMemoryFSHandler_p.");
1835 _arg1
= wxString_in_helper(_obj1
);
1840 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1841 _result
= new wxString (wxMemoryFSHandler_FindFirst(_arg0
,*_arg1
,_arg2
));
1843 wxPyEndAllowThreads(__tstate
);
1844 if (PyErr_Occurred()) return NULL
;
1847 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
1849 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1862 #define wxMemoryFSHandler_FindNext(_swigobj) (_swigobj->FindNext())
1863 static PyObject
*_wrap_wxMemoryFSHandler_FindNext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1864 PyObject
* _resultobj
;
1866 wxMemoryFSHandler
* _arg0
;
1867 PyObject
* _argo0
= 0;
1868 char *_kwnames
[] = { "self", NULL
};
1871 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMemoryFSHandler_FindNext",_kwnames
,&_argo0
))
1874 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1875 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMemoryFSHandler_p")) {
1876 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryFSHandler_FindNext. Expected _wxMemoryFSHandler_p.");
1881 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1882 _result
= new wxString (wxMemoryFSHandler_FindNext(_arg0
));
1884 wxPyEndAllowThreads(__tstate
);
1885 if (PyErr_Occurred()) return NULL
;
1888 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
1890 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1899 static PyMethodDef filesyscMethods
[] = {
1900 { "wxMemoryFSHandler_FindNext", (PyCFunction
) _wrap_wxMemoryFSHandler_FindNext
, METH_VARARGS
| METH_KEYWORDS
},
1901 { "wxMemoryFSHandler_FindFirst", (PyCFunction
) _wrap_wxMemoryFSHandler_FindFirst
, METH_VARARGS
| METH_KEYWORDS
},
1902 { "wxMemoryFSHandler_OpenFile", (PyCFunction
) _wrap_wxMemoryFSHandler_OpenFile
, METH_VARARGS
| METH_KEYWORDS
},
1903 { "wxMemoryFSHandler_CanOpen", (PyCFunction
) _wrap_wxMemoryFSHandler_CanOpen
, METH_VARARGS
| METH_KEYWORDS
},
1904 { "wxMemoryFSHandler_RemoveFile", (PyCFunction
) _wrap_wxMemoryFSHandler_RemoveFile
, METH_VARARGS
| METH_KEYWORDS
},
1905 { "new_wxMemoryFSHandler", (PyCFunction
) _wrap_new_wxMemoryFSHandler
, METH_VARARGS
| METH_KEYWORDS
},
1906 { "wxZipFSHandler_FindNext", (PyCFunction
) _wrap_wxZipFSHandler_FindNext
, METH_VARARGS
| METH_KEYWORDS
},
1907 { "wxZipFSHandler_FindFirst", (PyCFunction
) _wrap_wxZipFSHandler_FindFirst
, METH_VARARGS
| METH_KEYWORDS
},
1908 { "wxZipFSHandler_OpenFile", (PyCFunction
) _wrap_wxZipFSHandler_OpenFile
, METH_VARARGS
| METH_KEYWORDS
},
1909 { "wxZipFSHandler_CanOpen", (PyCFunction
) _wrap_wxZipFSHandler_CanOpen
, METH_VARARGS
| METH_KEYWORDS
},
1910 { "new_wxZipFSHandler", (PyCFunction
) _wrap_new_wxZipFSHandler
, METH_VARARGS
| METH_KEYWORDS
},
1911 { "wxInternetFSHandler_OpenFile", (PyCFunction
) _wrap_wxInternetFSHandler_OpenFile
, METH_VARARGS
| METH_KEYWORDS
},
1912 { "wxInternetFSHandler_CanOpen", (PyCFunction
) _wrap_wxInternetFSHandler_CanOpen
, METH_VARARGS
| METH_KEYWORDS
},
1913 { "new_wxInternetFSHandler", (PyCFunction
) _wrap_new_wxInternetFSHandler
, METH_VARARGS
| METH_KEYWORDS
},
1914 { "wxFileSystem_CleanUpHandlers", (PyCFunction
) _wrap_wxFileSystem_CleanUpHandlers
, METH_VARARGS
| METH_KEYWORDS
},
1915 { "wxFileSystem_AddHandler", (PyCFunction
) _wrap_wxFileSystem_AddHandler
, METH_VARARGS
| METH_KEYWORDS
},
1916 { "wxFileSystem_FindNext", (PyCFunction
) _wrap_wxFileSystem_FindNext
, METH_VARARGS
| METH_KEYWORDS
},
1917 { "wxFileSystem_FindFirst", (PyCFunction
) _wrap_wxFileSystem_FindFirst
, METH_VARARGS
| METH_KEYWORDS
},
1918 { "wxFileSystem_OpenFile", (PyCFunction
) _wrap_wxFileSystem_OpenFile
, METH_VARARGS
| METH_KEYWORDS
},
1919 { "wxFileSystem_GetPath", (PyCFunction
) _wrap_wxFileSystem_GetPath
, METH_VARARGS
| METH_KEYWORDS
},
1920 { "wxFileSystem_ChangePathTo", (PyCFunction
) _wrap_wxFileSystem_ChangePathTo
, METH_VARARGS
| METH_KEYWORDS
},
1921 { "new_wxFileSystem", (PyCFunction
) _wrap_new_wxFileSystem
, METH_VARARGS
| METH_KEYWORDS
},
1922 { "wxFileSystemHandler_GetMimeTypeFromExt", (PyCFunction
) _wrap_wxFileSystemHandler_GetMimeTypeFromExt
, METH_VARARGS
| METH_KEYWORDS
},
1923 { "wxFileSystemHandler_GetRightLocation", (PyCFunction
) _wrap_wxFileSystemHandler_GetRightLocation
, METH_VARARGS
| METH_KEYWORDS
},
1924 { "wxFileSystemHandler_GetAnchor", (PyCFunction
) _wrap_wxFileSystemHandler_GetAnchor
, METH_VARARGS
| METH_KEYWORDS
},
1925 { "wxFileSystemHandler_GetLeftLocation", (PyCFunction
) _wrap_wxFileSystemHandler_GetLeftLocation
, METH_VARARGS
| METH_KEYWORDS
},
1926 { "wxFileSystemHandler_GetProtocol", (PyCFunction
) _wrap_wxFileSystemHandler_GetProtocol
, METH_VARARGS
| METH_KEYWORDS
},
1927 { "wxFileSystemHandler_FindNext", (PyCFunction
) _wrap_wxFileSystemHandler_FindNext
, METH_VARARGS
| METH_KEYWORDS
},
1928 { "wxFileSystemHandler_FindFirst", (PyCFunction
) _wrap_wxFileSystemHandler_FindFirst
, METH_VARARGS
| METH_KEYWORDS
},
1929 { "wxFileSystemHandler_OpenFile", (PyCFunction
) _wrap_wxFileSystemHandler_OpenFile
, METH_VARARGS
| METH_KEYWORDS
},
1930 { "wxFileSystemHandler_CanOpen", (PyCFunction
) _wrap_wxFileSystemHandler_CanOpen
, METH_VARARGS
| METH_KEYWORDS
},
1931 { "wxFileSystemHandler__setCallbackInfo", (PyCFunction
) _wrap_wxFileSystemHandler__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
1932 { "new_wxFileSystemHandler", (PyCFunction
) _wrap_new_wxFileSystemHandler
, METH_VARARGS
| METH_KEYWORDS
},
1933 { "wxFSFile_GetModificationTime", (PyCFunction
) _wrap_wxFSFile_GetModificationTime
, METH_VARARGS
| METH_KEYWORDS
},
1934 { "wxFSFile_GetAnchor", (PyCFunction
) _wrap_wxFSFile_GetAnchor
, METH_VARARGS
| METH_KEYWORDS
},
1935 { "wxFSFile_GetLocation", (PyCFunction
) _wrap_wxFSFile_GetLocation
, METH_VARARGS
| METH_KEYWORDS
},
1936 { "wxFSFile_GetMimeType", (PyCFunction
) _wrap_wxFSFile_GetMimeType
, METH_VARARGS
| METH_KEYWORDS
},
1937 { "wxFSFile_GetStream", (PyCFunction
) _wrap_wxFSFile_GetStream
, METH_VARARGS
| METH_KEYWORDS
},
1938 { "new_wxFSFile", (PyCFunction
) _wrap_new_wxFSFile
, METH_VARARGS
| METH_KEYWORDS
},
1939 { "__wxMemoryFSHandler_AddFile_Data", (PyCFunction
) _wrap___wxMemoryFSHandler_AddFile_Data
, METH_VARARGS
| METH_KEYWORDS
},
1940 { "__wxMemoryFSHandler_AddFile_wxBitmap", (PyCFunction
) _wrap___wxMemoryFSHandler_AddFile_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
1941 { "__wxMemoryFSHandler_AddFile_wxImage", (PyCFunction
) _wrap___wxMemoryFSHandler_AddFile_wxImage
, METH_VARARGS
| METH_KEYWORDS
},
1948 * This table is used by the pointer type-checker
1950 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
1951 { "_signed_long","_long",0},
1952 { "_wxPrintQuality","_wxCoord",0},
1953 { "_wxPrintQuality","_int",0},
1954 { "_wxPrintQuality","_signed_int",0},
1955 { "_wxPrintQuality","_unsigned_int",0},
1956 { "_wxPrintQuality","_wxWindowID",0},
1957 { "_wxPrintQuality","_uint",0},
1958 { "_wxPrintQuality","_EBool",0},
1959 { "_wxPrintQuality","_size_t",0},
1960 { "_wxPrintQuality","_time_t",0},
1961 { "_byte","_unsigned_char",0},
1962 { "_long","_unsigned_long",0},
1963 { "_long","_signed_long",0},
1964 { "_size_t","_wxCoord",0},
1965 { "_size_t","_wxPrintQuality",0},
1966 { "_size_t","_time_t",0},
1967 { "_size_t","_unsigned_int",0},
1968 { "_size_t","_int",0},
1969 { "_size_t","_wxWindowID",0},
1970 { "_size_t","_uint",0},
1971 { "_uint","_wxCoord",0},
1972 { "_uint","_wxPrintQuality",0},
1973 { "_uint","_time_t",0},
1974 { "_uint","_size_t",0},
1975 { "_uint","_unsigned_int",0},
1976 { "_uint","_int",0},
1977 { "_uint","_wxWindowID",0},
1978 { "_wxChar","_char",0},
1979 { "_char","_wxChar",0},
1980 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
1981 { "_EBool","_wxCoord",0},
1982 { "_EBool","_wxPrintQuality",0},
1983 { "_EBool","_signed_int",0},
1984 { "_EBool","_int",0},
1985 { "_EBool","_wxWindowID",0},
1986 { "_unsigned_long","_long",0},
1987 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
1988 { "_signed_int","_wxCoord",0},
1989 { "_signed_int","_wxPrintQuality",0},
1990 { "_signed_int","_EBool",0},
1991 { "_signed_int","_wxWindowID",0},
1992 { "_signed_int","_int",0},
1993 { "_WXTYPE","_wxDateTime_t",0},
1994 { "_WXTYPE","_short",0},
1995 { "_WXTYPE","_signed_short",0},
1996 { "_WXTYPE","_unsigned_short",0},
1997 { "_unsigned_short","_wxDateTime_t",0},
1998 { "_unsigned_short","_WXTYPE",0},
1999 { "_unsigned_short","_short",0},
2000 { "_wxObject","_wxMemoryFSHandler",SwigwxMemoryFSHandlerTowxObject
},
2001 { "_wxObject","_wxZipFSHandler",SwigwxZipFSHandlerTowxObject
},
2002 { "_wxObject","_wxInternetFSHandler",SwigwxInternetFSHandlerTowxObject
},
2003 { "_wxObject","_wxFileSystem",SwigwxFileSystemTowxObject
},
2004 { "_wxObject","_wxPyFileSystemHandler",SwigwxPyFileSystemHandlerTowxObject
},
2005 { "_wxObject","_wxFileSystemHandler",SwigwxFileSystemHandlerTowxObject
},
2006 { "_wxObject","_wxFSFile",SwigwxFSFileTowxObject
},
2007 { "_signed_short","_WXTYPE",0},
2008 { "_signed_short","_short",0},
2009 { "_unsigned_char","_byte",0},
2010 { "_unsigned_int","_wxCoord",0},
2011 { "_unsigned_int","_wxPrintQuality",0},
2012 { "_unsigned_int","_time_t",0},
2013 { "_unsigned_int","_size_t",0},
2014 { "_unsigned_int","_uint",0},
2015 { "_unsigned_int","_wxWindowID",0},
2016 { "_unsigned_int","_int",0},
2017 { "_short","_wxDateTime_t",0},
2018 { "_short","_WXTYPE",0},
2019 { "_short","_unsigned_short",0},
2020 { "_short","_signed_short",0},
2021 { "_wxFileSystemHandler","_wxMemoryFSHandler",SwigwxMemoryFSHandlerTowxFileSystemHandler
},
2022 { "_wxFileSystemHandler","_wxZipFSHandler",SwigwxZipFSHandlerTowxFileSystemHandler
},
2023 { "_wxFileSystemHandler","_wxInternetFSHandler",SwigwxInternetFSHandlerTowxFileSystemHandler
},
2024 { "_wxFileSystemHandler","_wxPyFileSystemHandler",SwigwxPyFileSystemHandlerTowxFileSystemHandler
},
2025 { "_wxWindowID","_wxCoord",0},
2026 { "_wxWindowID","_wxPrintQuality",0},
2027 { "_wxWindowID","_time_t",0},
2028 { "_wxWindowID","_size_t",0},
2029 { "_wxWindowID","_EBool",0},
2030 { "_wxWindowID","_uint",0},
2031 { "_wxWindowID","_int",0},
2032 { "_wxWindowID","_signed_int",0},
2033 { "_wxWindowID","_unsigned_int",0},
2034 { "_int","_wxCoord",0},
2035 { "_int","_wxPrintQuality",0},
2036 { "_int","_time_t",0},
2037 { "_int","_size_t",0},
2038 { "_int","_EBool",0},
2039 { "_int","_uint",0},
2040 { "_int","_wxWindowID",0},
2041 { "_int","_unsigned_int",0},
2042 { "_int","_signed_int",0},
2043 { "_wxDateTime_t","_unsigned_short",0},
2044 { "_wxDateTime_t","_short",0},
2045 { "_wxDateTime_t","_WXTYPE",0},
2046 { "_time_t","_wxCoord",0},
2047 { "_time_t","_wxPrintQuality",0},
2048 { "_time_t","_unsigned_int",0},
2049 { "_time_t","_int",0},
2050 { "_time_t","_wxWindowID",0},
2051 { "_time_t","_uint",0},
2052 { "_time_t","_size_t",0},
2053 { "_wxCoord","_int",0},
2054 { "_wxCoord","_signed_int",0},
2055 { "_wxCoord","_unsigned_int",0},
2056 { "_wxCoord","_wxWindowID",0},
2057 { "_wxCoord","_uint",0},
2058 { "_wxCoord","_EBool",0},
2059 { "_wxCoord","_size_t",0},
2060 { "_wxCoord","_time_t",0},
2061 { "_wxCoord","_wxPrintQuality",0},
2064 static PyObject
*SWIG_globals
;
2068 SWIGEXPORT(void) initfilesysc() {
2070 SWIG_globals
= SWIG_newvarlink();
2071 m
= Py_InitModule("filesysc", filesyscMethods
);
2072 d
= PyModule_GetDict(m
);
2074 wxPyPtrTypeMap_Add("wxFileSystemHandler", "wxPyFileSystemHandler");
2077 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
2078 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);