2 * FILE : src/msw/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 wxString
wxFileSystem_URLToFileName(const wxString
& url
) {
132 wxFileName fname
= wxFileSystem::URLToFileName(url
);
133 return fname
.GetFullPath();
136 void __wxMemoryFSHandler_AddFile_wxImage(const wxString
& filename
,
139 wxMemoryFSHandler::AddFile(filename
, image
, type
);
142 void __wxMemoryFSHandler_AddFile_wxBitmap(const wxString
& filename
,
143 const wxBitmap
& bitmap
,
145 wxMemoryFSHandler::AddFile(filename
, bitmap
, type
);
148 void __wxMemoryFSHandler_AddFile_Data(const wxString
& filename
,
151 wxMemoryFSHandler::AddFile(filename
,
152 // TODO: Verify data type
153 (void*)PyString_AsString(data
),
154 (size_t)PyString_Size(data
));
159 static PyObject
*_wrap_wxFileSystem_URLToFileName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
160 PyObject
* _resultobj
;
163 PyObject
* _obj0
= 0;
164 char *_kwnames
[] = { "url", NULL
};
167 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFileSystem_URLToFileName",_kwnames
,&_obj0
))
170 _arg0
= wxString_in_helper(_obj0
);
175 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
176 _result
= new wxString (wxFileSystem_URLToFileName(*_arg0
));
178 wxPyEndAllowThreads(__tstate
);
179 if (PyErr_Occurred()) return NULL
;
182 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
184 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
197 static PyObject
*_wrap___wxMemoryFSHandler_AddFile_wxImage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
198 PyObject
* _resultobj
;
202 PyObject
* _obj0
= 0;
203 PyObject
* _argo1
= 0;
204 char *_kwnames
[] = { "filename","image","type", NULL
};
207 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOl:__wxMemoryFSHandler_AddFile_wxImage",_kwnames
,&_obj0
,&_argo1
,&_arg2
))
210 _arg0
= wxString_in_helper(_obj0
);
215 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxImage_p")) {
216 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of __wxMemoryFSHandler_AddFile_wxImage. Expected _wxImage_p.");
221 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
222 __wxMemoryFSHandler_AddFile_wxImage(*_arg0
,*_arg1
,_arg2
);
224 wxPyEndAllowThreads(__tstate
);
225 if (PyErr_Occurred()) return NULL
;
226 } Py_INCREF(Py_None
);
227 _resultobj
= Py_None
;
235 static PyObject
*_wrap___wxMemoryFSHandler_AddFile_wxBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
236 PyObject
* _resultobj
;
240 PyObject
* _obj0
= 0;
241 PyObject
* _argo1
= 0;
242 char *_kwnames
[] = { "filename","bitmap","type", NULL
};
245 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOl:__wxMemoryFSHandler_AddFile_wxBitmap",_kwnames
,&_obj0
,&_argo1
,&_arg2
))
248 _arg0
= wxString_in_helper(_obj0
);
253 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
254 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of __wxMemoryFSHandler_AddFile_wxBitmap. Expected _wxBitmap_p.");
259 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
260 __wxMemoryFSHandler_AddFile_wxBitmap(*_arg0
,*_arg1
,_arg2
);
262 wxPyEndAllowThreads(__tstate
);
263 if (PyErr_Occurred()) return NULL
;
264 } Py_INCREF(Py_None
);
265 _resultobj
= Py_None
;
273 static PyObject
*_wrap___wxMemoryFSHandler_AddFile_Data(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
274 PyObject
* _resultobj
;
277 PyObject
* _obj0
= 0;
278 PyObject
* _obj1
= 0;
279 char *_kwnames
[] = { "filename","data", NULL
};
282 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:__wxMemoryFSHandler_AddFile_Data",_kwnames
,&_obj0
,&_obj1
))
285 _arg0
= wxString_in_helper(_obj0
);
293 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
294 __wxMemoryFSHandler_AddFile_Data(*_arg0
,_arg1
);
296 wxPyEndAllowThreads(__tstate
);
297 if (PyErr_Occurred()) return NULL
;
298 } Py_INCREF(Py_None
);
299 _resultobj
= Py_None
;
307 static void *SwigwxFSFileTowxObject(void *ptr
) {
310 src
= (wxFSFile
*) ptr
;
311 dest
= (wxObject
*) src
;
312 return (void *) dest
;
315 #define new_wxFSFile(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxFSFile(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
316 static PyObject
*_wrap_new_wxFSFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
317 PyObject
* _resultobj
;
319 wxInputStream
* _arg0
;
324 wxPyInputStream
* temp
;
326 PyObject
* _obj0
= 0;
327 PyObject
* _obj1
= 0;
328 PyObject
* _obj2
= 0;
329 PyObject
* _obj3
= 0;
330 PyObject
* _argo4
= 0;
331 char *_kwnames
[] = { "stream","loc","mimetype","anchor","modif", NULL
};
335 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOOO:new_wxFSFile",_kwnames
,&_obj0
,&_obj1
,&_obj2
,&_obj3
,&_argo4
))
338 if (SWIG_GetPtrObj(_obj0
, (void **) &temp
, "_wxPyInputStream_p") == 0) {
339 _arg0
= temp
->m_wxis
;
342 _arg0
= wxPyCBInputStream_create(_obj0
, FALSE
);
344 PyErr_SetString(PyExc_TypeError
,"Expected _wxInputStream_p or Python file-like object.");
351 _arg1
= wxString_in_helper(_obj1
);
356 _arg2
= wxString_in_helper(_obj2
);
361 _arg3
= wxString_in_helper(_obj3
);
366 if (_argo4
== Py_None
) { _arg4
= NULL
; }
367 else if (SWIG_GetPtrObj(_argo4
,(void **) &_arg4
,"_wxDateTime_p")) {
368 PyErr_SetString(PyExc_TypeError
,"Type error in argument 5 of new_wxFSFile. Expected _wxDateTime_p.");
373 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
374 _result
= (wxFSFile
*)new_wxFSFile(_arg0
,*_arg1
,*_arg2
,*_arg3
,*_arg4
);
376 wxPyEndAllowThreads(__tstate
);
377 if (PyErr_Occurred()) return NULL
;
379 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFSFile_p");
380 _resultobj
= Py_BuildValue("s",_ptemp
);
383 _resultobj
= Py_None
;
404 #define wxFSFile_GetStream(_swigobj) (_swigobj->GetStream())
405 static PyObject
*_wrap_wxFSFile_GetStream(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
406 PyObject
* _resultobj
;
407 wxInputStream
* _result
;
409 PyObject
* _argo0
= 0;
410 char *_kwnames
[] = { "self", NULL
};
413 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFSFile_GetStream",_kwnames
,&_argo0
))
416 if (_argo0
== Py_None
) { _arg0
= NULL
; }
417 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFSFile_p")) {
418 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFSFile_GetStream. Expected _wxFSFile_p.");
423 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
424 _result
= (wxInputStream
*)wxFSFile_GetStream(_arg0
);
426 wxPyEndAllowThreads(__tstate
);
427 if (PyErr_Occurred()) return NULL
;
429 wxPyInputStream
* _ptr
= NULL
;
432 _ptr
= new wxPyInputStream(_result
);
434 _resultobj
= wxPyConstructObject(_ptr
, wxT("wxInputStream"), TRUE
);
439 #define wxFSFile_GetMimeType(_swigobj) (_swigobj->GetMimeType())
440 static PyObject
*_wrap_wxFSFile_GetMimeType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
441 PyObject
* _resultobj
;
444 PyObject
* _argo0
= 0;
445 char *_kwnames
[] = { "self", NULL
};
448 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFSFile_GetMimeType",_kwnames
,&_argo0
))
451 if (_argo0
== Py_None
) { _arg0
= NULL
; }
452 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFSFile_p")) {
453 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFSFile_GetMimeType. Expected _wxFSFile_p.");
458 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
459 const wxString
& _result_ref
= wxFSFile_GetMimeType(_arg0
);
460 _result
= (wxString
*) &_result_ref
;
462 wxPyEndAllowThreads(__tstate
);
463 if (PyErr_Occurred()) return NULL
;
466 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
468 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
474 #define wxFSFile_GetLocation(_swigobj) (_swigobj->GetLocation())
475 static PyObject
*_wrap_wxFSFile_GetLocation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
476 PyObject
* _resultobj
;
479 PyObject
* _argo0
= 0;
480 char *_kwnames
[] = { "self", NULL
};
483 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFSFile_GetLocation",_kwnames
,&_argo0
))
486 if (_argo0
== Py_None
) { _arg0
= NULL
; }
487 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFSFile_p")) {
488 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFSFile_GetLocation. Expected _wxFSFile_p.");
493 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
494 const wxString
& _result_ref
= wxFSFile_GetLocation(_arg0
);
495 _result
= (wxString
*) &_result_ref
;
497 wxPyEndAllowThreads(__tstate
);
498 if (PyErr_Occurred()) return NULL
;
501 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
503 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
509 #define wxFSFile_GetAnchor(_swigobj) (_swigobj->GetAnchor())
510 static PyObject
*_wrap_wxFSFile_GetAnchor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
511 PyObject
* _resultobj
;
514 PyObject
* _argo0
= 0;
515 char *_kwnames
[] = { "self", NULL
};
518 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFSFile_GetAnchor",_kwnames
,&_argo0
))
521 if (_argo0
== Py_None
) { _arg0
= NULL
; }
522 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFSFile_p")) {
523 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFSFile_GetAnchor. Expected _wxFSFile_p.");
528 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
529 const wxString
& _result_ref
= wxFSFile_GetAnchor(_arg0
);
530 _result
= (wxString
*) &_result_ref
;
532 wxPyEndAllowThreads(__tstate
);
533 if (PyErr_Occurred()) return NULL
;
536 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
538 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
544 #define wxFSFile_GetModificationTime(_swigobj) (_swigobj->GetModificationTime())
545 static PyObject
*_wrap_wxFSFile_GetModificationTime(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
546 PyObject
* _resultobj
;
547 wxDateTime
* _result
;
549 PyObject
* _argo0
= 0;
550 char *_kwnames
[] = { "self", NULL
};
554 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFSFile_GetModificationTime",_kwnames
,&_argo0
))
557 if (_argo0
== Py_None
) { _arg0
= NULL
; }
558 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFSFile_p")) {
559 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFSFile_GetModificationTime. Expected _wxFSFile_p.");
564 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
565 _result
= new wxDateTime (wxFSFile_GetModificationTime(_arg0
));
567 wxPyEndAllowThreads(__tstate
);
568 if (PyErr_Occurred()) return NULL
;
569 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxDateTime_p");
570 _resultobj
= Py_BuildValue("s",_ptemp
);
574 static void *SwigwxFileSystemHandlerTowxObject(void *ptr
) {
575 wxFileSystemHandler
*src
;
577 src
= (wxFileSystemHandler
*) ptr
;
578 dest
= (wxObject
*) src
;
579 return (void *) dest
;
582 static void *SwigwxPyFileSystemHandlerTowxFileSystemHandler(void *ptr
) {
583 wxPyFileSystemHandler
*src
;
584 wxFileSystemHandler
*dest
;
585 src
= (wxPyFileSystemHandler
*) ptr
;
586 dest
= (wxFileSystemHandler
*) src
;
587 return (void *) dest
;
590 static void *SwigwxPyFileSystemHandlerTowxObject(void *ptr
) {
591 wxPyFileSystemHandler
*src
;
593 src
= (wxPyFileSystemHandler
*) ptr
;
594 dest
= (wxObject
*) src
;
595 return (void *) dest
;
598 #define new_wxFileSystemHandler() (new wxPyFileSystemHandler())
599 static PyObject
*_wrap_new_wxFileSystemHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
600 PyObject
* _resultobj
;
601 wxPyFileSystemHandler
* _result
;
602 char *_kwnames
[] = { NULL
};
606 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxFileSystemHandler",_kwnames
))
609 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
610 _result
= (wxPyFileSystemHandler
*)new_wxFileSystemHandler();
612 wxPyEndAllowThreads(__tstate
);
613 if (PyErr_Occurred()) return NULL
;
615 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyFileSystemHandler_p");
616 _resultobj
= Py_BuildValue("s",_ptemp
);
619 _resultobj
= Py_None
;
624 #define wxFileSystemHandler__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
625 static PyObject
*_wrap_wxFileSystemHandler__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
626 PyObject
* _resultobj
;
627 wxPyFileSystemHandler
* _arg0
;
630 PyObject
* _argo0
= 0;
631 PyObject
* _obj1
= 0;
632 PyObject
* _obj2
= 0;
633 char *_kwnames
[] = { "self","self","_class", NULL
};
636 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxFileSystemHandler__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
639 if (_argo0
== Py_None
) { _arg0
= NULL
; }
640 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileSystemHandler_p")) {
641 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileSystemHandler__setCallbackInfo. Expected _wxPyFileSystemHandler_p.");
652 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
653 wxFileSystemHandler__setCallbackInfo(_arg0
,_arg1
,_arg2
);
655 wxPyEndAllowThreads(__tstate
);
656 if (PyErr_Occurred()) return NULL
;
657 } Py_INCREF(Py_None
);
658 _resultobj
= Py_None
;
662 #define wxFileSystemHandler_CanOpen(_swigobj,_swigarg0) (_swigobj->CanOpen(_swigarg0))
663 static PyObject
*_wrap_wxFileSystemHandler_CanOpen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
664 PyObject
* _resultobj
;
666 wxPyFileSystemHandler
* _arg0
;
668 PyObject
* _argo0
= 0;
669 PyObject
* _obj1
= 0;
670 char *_kwnames
[] = { "self","location", NULL
};
673 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFileSystemHandler_CanOpen",_kwnames
,&_argo0
,&_obj1
))
676 if (_argo0
== Py_None
) { _arg0
= NULL
; }
677 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileSystemHandler_p")) {
678 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileSystemHandler_CanOpen. Expected _wxPyFileSystemHandler_p.");
683 _arg1
= wxString_in_helper(_obj1
);
688 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
689 _result
= (bool )wxFileSystemHandler_CanOpen(_arg0
,*_arg1
);
691 wxPyEndAllowThreads(__tstate
);
692 if (PyErr_Occurred()) return NULL
;
693 } _resultobj
= Py_BuildValue("i",_result
);
701 #define wxFileSystemHandler_OpenFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->OpenFile(_swigarg0,_swigarg1))
702 static PyObject
*_wrap_wxFileSystemHandler_OpenFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
703 PyObject
* _resultobj
;
705 wxPyFileSystemHandler
* _arg0
;
706 wxFileSystem
* _arg1
;
708 PyObject
* _argo0
= 0;
709 PyObject
* _argo1
= 0;
710 PyObject
* _obj2
= 0;
711 char *_kwnames
[] = { "self","fs","location", NULL
};
714 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxFileSystemHandler_OpenFile",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
717 if (_argo0
== Py_None
) { _arg0
= NULL
; }
718 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileSystemHandler_p")) {
719 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileSystemHandler_OpenFile. Expected _wxPyFileSystemHandler_p.");
724 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFileSystem_p")) {
725 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFileSystemHandler_OpenFile. Expected _wxFileSystem_p.");
730 _arg2
= wxString_in_helper(_obj2
);
735 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
736 _result
= (wxFSFile
*)wxFileSystemHandler_OpenFile(_arg0
,*_arg1
,*_arg2
);
738 wxPyEndAllowThreads(__tstate
);
739 if (PyErr_Occurred()) return NULL
;
740 }{ _resultobj
= wxPyMake_wxObject(_result
); }
748 #define wxFileSystemHandler_FindFirst(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindFirst(_swigarg0,_swigarg1))
749 static PyObject
*_wrap_wxFileSystemHandler_FindFirst(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
750 PyObject
* _resultobj
;
752 wxPyFileSystemHandler
* _arg0
;
754 int _arg2
= (int ) 0;
755 PyObject
* _argo0
= 0;
756 PyObject
* _obj1
= 0;
757 char *_kwnames
[] = { "self","spec","flags", NULL
};
760 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxFileSystemHandler_FindFirst",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
763 if (_argo0
== Py_None
) { _arg0
= NULL
; }
764 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileSystemHandler_p")) {
765 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileSystemHandler_FindFirst. Expected _wxPyFileSystemHandler_p.");
770 _arg1
= wxString_in_helper(_obj1
);
775 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
776 _result
= new wxString (wxFileSystemHandler_FindFirst(_arg0
,*_arg1
,_arg2
));
778 wxPyEndAllowThreads(__tstate
);
779 if (PyErr_Occurred()) return NULL
;
782 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
784 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
797 #define wxFileSystemHandler_FindNext(_swigobj) (_swigobj->FindNext())
798 static PyObject
*_wrap_wxFileSystemHandler_FindNext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
799 PyObject
* _resultobj
;
801 wxPyFileSystemHandler
* _arg0
;
802 PyObject
* _argo0
= 0;
803 char *_kwnames
[] = { "self", NULL
};
806 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFileSystemHandler_FindNext",_kwnames
,&_argo0
))
809 if (_argo0
== Py_None
) { _arg0
= NULL
; }
810 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileSystemHandler_p")) {
811 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileSystemHandler_FindNext. Expected _wxPyFileSystemHandler_p.");
816 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
817 _result
= new wxString (wxFileSystemHandler_FindNext(_arg0
));
819 wxPyEndAllowThreads(__tstate
);
820 if (PyErr_Occurred()) return NULL
;
823 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
825 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
834 #define wxFileSystemHandler_GetProtocol(_swigobj,_swigarg0) (_swigobj->GetProtocol(_swigarg0))
835 static PyObject
*_wrap_wxFileSystemHandler_GetProtocol(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
836 PyObject
* _resultobj
;
838 wxPyFileSystemHandler
* _arg0
;
840 PyObject
* _argo0
= 0;
841 PyObject
* _obj1
= 0;
842 char *_kwnames
[] = { "self","location", NULL
};
845 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFileSystemHandler_GetProtocol",_kwnames
,&_argo0
,&_obj1
))
848 if (_argo0
== Py_None
) { _arg0
= NULL
; }
849 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileSystemHandler_p")) {
850 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileSystemHandler_GetProtocol. Expected _wxPyFileSystemHandler_p.");
855 _arg1
= wxString_in_helper(_obj1
);
860 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
861 _result
= new wxString (wxFileSystemHandler_GetProtocol(_arg0
,*_arg1
));
863 wxPyEndAllowThreads(__tstate
);
864 if (PyErr_Occurred()) return NULL
;
867 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
869 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
882 #define wxFileSystemHandler_GetLeftLocation(_swigobj,_swigarg0) (_swigobj->GetLeftLocation(_swigarg0))
883 static PyObject
*_wrap_wxFileSystemHandler_GetLeftLocation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
884 PyObject
* _resultobj
;
886 wxPyFileSystemHandler
* _arg0
;
888 PyObject
* _argo0
= 0;
889 PyObject
* _obj1
= 0;
890 char *_kwnames
[] = { "self","location", NULL
};
893 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFileSystemHandler_GetLeftLocation",_kwnames
,&_argo0
,&_obj1
))
896 if (_argo0
== Py_None
) { _arg0
= NULL
; }
897 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileSystemHandler_p")) {
898 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileSystemHandler_GetLeftLocation. Expected _wxPyFileSystemHandler_p.");
903 _arg1
= wxString_in_helper(_obj1
);
908 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
909 _result
= new wxString (wxFileSystemHandler_GetLeftLocation(_arg0
,*_arg1
));
911 wxPyEndAllowThreads(__tstate
);
912 if (PyErr_Occurred()) return NULL
;
915 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
917 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
930 #define wxFileSystemHandler_GetAnchor(_swigobj,_swigarg0) (_swigobj->GetAnchor(_swigarg0))
931 static PyObject
*_wrap_wxFileSystemHandler_GetAnchor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
932 PyObject
* _resultobj
;
934 wxPyFileSystemHandler
* _arg0
;
936 PyObject
* _argo0
= 0;
937 PyObject
* _obj1
= 0;
938 char *_kwnames
[] = { "self","location", NULL
};
941 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFileSystemHandler_GetAnchor",_kwnames
,&_argo0
,&_obj1
))
944 if (_argo0
== Py_None
) { _arg0
= NULL
; }
945 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileSystemHandler_p")) {
946 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileSystemHandler_GetAnchor. Expected _wxPyFileSystemHandler_p.");
951 _arg1
= wxString_in_helper(_obj1
);
956 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
957 _result
= new wxString (wxFileSystemHandler_GetAnchor(_arg0
,*_arg1
));
959 wxPyEndAllowThreads(__tstate
);
960 if (PyErr_Occurred()) return NULL
;
963 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
965 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
978 #define wxFileSystemHandler_GetRightLocation(_swigobj,_swigarg0) (_swigobj->GetRightLocation(_swigarg0))
979 static PyObject
*_wrap_wxFileSystemHandler_GetRightLocation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
980 PyObject
* _resultobj
;
982 wxPyFileSystemHandler
* _arg0
;
984 PyObject
* _argo0
= 0;
985 PyObject
* _obj1
= 0;
986 char *_kwnames
[] = { "self","location", NULL
};
989 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFileSystemHandler_GetRightLocation",_kwnames
,&_argo0
,&_obj1
))
992 if (_argo0
== Py_None
) { _arg0
= NULL
; }
993 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileSystemHandler_p")) {
994 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileSystemHandler_GetRightLocation. Expected _wxPyFileSystemHandler_p.");
999 _arg1
= wxString_in_helper(_obj1
);
1004 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1005 _result
= new wxString (wxFileSystemHandler_GetRightLocation(_arg0
,*_arg1
));
1007 wxPyEndAllowThreads(__tstate
);
1008 if (PyErr_Occurred()) return NULL
;
1011 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
1013 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1026 #define wxFileSystemHandler_GetMimeTypeFromExt(_swigobj,_swigarg0) (_swigobj->GetMimeTypeFromExt(_swigarg0))
1027 static PyObject
*_wrap_wxFileSystemHandler_GetMimeTypeFromExt(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1028 PyObject
* _resultobj
;
1030 wxPyFileSystemHandler
* _arg0
;
1032 PyObject
* _argo0
= 0;
1033 PyObject
* _obj1
= 0;
1034 char *_kwnames
[] = { "self","location", NULL
};
1037 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFileSystemHandler_GetMimeTypeFromExt",_kwnames
,&_argo0
,&_obj1
))
1040 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1041 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileSystemHandler_p")) {
1042 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileSystemHandler_GetMimeTypeFromExt. Expected _wxPyFileSystemHandler_p.");
1047 _arg1
= wxString_in_helper(_obj1
);
1052 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1053 _result
= new wxString (wxFileSystemHandler_GetMimeTypeFromExt(_arg0
,*_arg1
));
1055 wxPyEndAllowThreads(__tstate
);
1056 if (PyErr_Occurred()) return NULL
;
1059 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
1061 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1074 static void *SwigwxFileSystemTowxObject(void *ptr
) {
1077 src
= (wxFileSystem
*) ptr
;
1078 dest
= (wxObject
*) src
;
1079 return (void *) dest
;
1082 #define new_wxFileSystem() (new wxFileSystem())
1083 static PyObject
*_wrap_new_wxFileSystem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1084 PyObject
* _resultobj
;
1085 wxFileSystem
* _result
;
1086 char *_kwnames
[] = { NULL
};
1090 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxFileSystem",_kwnames
))
1093 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1094 _result
= (wxFileSystem
*)new_wxFileSystem();
1096 wxPyEndAllowThreads(__tstate
);
1097 if (PyErr_Occurred()) return NULL
;
1099 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFileSystem_p");
1100 _resultobj
= Py_BuildValue("s",_ptemp
);
1103 _resultobj
= Py_None
;
1108 #define wxFileSystem_ChangePathTo(_swigobj,_swigarg0,_swigarg1) (_swigobj->ChangePathTo(_swigarg0,_swigarg1))
1109 static PyObject
*_wrap_wxFileSystem_ChangePathTo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1110 PyObject
* _resultobj
;
1111 wxFileSystem
* _arg0
;
1113 bool _arg2
= (bool ) FALSE
;
1114 PyObject
* _argo0
= 0;
1115 PyObject
* _obj1
= 0;
1116 int tempbool2
= (int) FALSE
;
1117 char *_kwnames
[] = { "self","location","is_dir", NULL
};
1120 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxFileSystem_ChangePathTo",_kwnames
,&_argo0
,&_obj1
,&tempbool2
))
1123 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1124 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFileSystem_p")) {
1125 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileSystem_ChangePathTo. Expected _wxFileSystem_p.");
1130 _arg1
= wxString_in_helper(_obj1
);
1134 _arg2
= (bool ) tempbool2
;
1136 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1137 wxFileSystem_ChangePathTo(_arg0
,*_arg1
,_arg2
);
1139 wxPyEndAllowThreads(__tstate
);
1140 if (PyErr_Occurred()) return NULL
;
1141 } Py_INCREF(Py_None
);
1142 _resultobj
= Py_None
;
1150 #define wxFileSystem_GetPath(_swigobj) (_swigobj->GetPath())
1151 static PyObject
*_wrap_wxFileSystem_GetPath(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1152 PyObject
* _resultobj
;
1154 wxFileSystem
* _arg0
;
1155 PyObject
* _argo0
= 0;
1156 char *_kwnames
[] = { "self", NULL
};
1159 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFileSystem_GetPath",_kwnames
,&_argo0
))
1162 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1163 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFileSystem_p")) {
1164 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileSystem_GetPath. Expected _wxFileSystem_p.");
1169 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1170 _result
= new wxString (wxFileSystem_GetPath(_arg0
));
1172 wxPyEndAllowThreads(__tstate
);
1173 if (PyErr_Occurred()) return NULL
;
1176 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
1178 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1187 #define wxFileSystem_OpenFile(_swigobj,_swigarg0) (_swigobj->OpenFile(_swigarg0))
1188 static PyObject
*_wrap_wxFileSystem_OpenFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1189 PyObject
* _resultobj
;
1191 wxFileSystem
* _arg0
;
1193 PyObject
* _argo0
= 0;
1194 PyObject
* _obj1
= 0;
1195 char *_kwnames
[] = { "self","location", NULL
};
1198 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFileSystem_OpenFile",_kwnames
,&_argo0
,&_obj1
))
1201 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1202 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFileSystem_p")) {
1203 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileSystem_OpenFile. Expected _wxFileSystem_p.");
1208 _arg1
= wxString_in_helper(_obj1
);
1213 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1214 _result
= (wxFSFile
*)wxFileSystem_OpenFile(_arg0
,*_arg1
);
1216 wxPyEndAllowThreads(__tstate
);
1217 if (PyErr_Occurred()) return NULL
;
1218 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1226 #define wxFileSystem_FindFirst(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindFirst(_swigarg0,_swigarg1))
1227 static PyObject
*_wrap_wxFileSystem_FindFirst(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1228 PyObject
* _resultobj
;
1230 wxFileSystem
* _arg0
;
1232 int _arg2
= (int ) 0;
1233 PyObject
* _argo0
= 0;
1234 PyObject
* _obj1
= 0;
1235 char *_kwnames
[] = { "self","spec","flags", NULL
};
1238 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxFileSystem_FindFirst",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
1241 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1242 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFileSystem_p")) {
1243 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileSystem_FindFirst. Expected _wxFileSystem_p.");
1248 _arg1
= wxString_in_helper(_obj1
);
1253 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1254 _result
= new wxString (wxFileSystem_FindFirst(_arg0
,*_arg1
,_arg2
));
1256 wxPyEndAllowThreads(__tstate
);
1257 if (PyErr_Occurred()) return NULL
;
1260 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
1262 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1275 #define wxFileSystem_FindNext(_swigobj) (_swigobj->FindNext())
1276 static PyObject
*_wrap_wxFileSystem_FindNext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1277 PyObject
* _resultobj
;
1279 wxFileSystem
* _arg0
;
1280 PyObject
* _argo0
= 0;
1281 char *_kwnames
[] = { "self", NULL
};
1284 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFileSystem_FindNext",_kwnames
,&_argo0
))
1287 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1288 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFileSystem_p")) {
1289 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileSystem_FindNext. Expected _wxFileSystem_p.");
1294 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1295 _result
= new wxString (wxFileSystem_FindNext(_arg0
));
1297 wxPyEndAllowThreads(__tstate
);
1298 if (PyErr_Occurred()) return NULL
;
1301 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
1303 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1312 static PyObject
*_wrap_wxFileSystem_AddHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1313 PyObject
* _resultobj
;
1314 wxFileSystemHandler
* _arg0
;
1315 PyObject
* _argo0
= 0;
1316 char *_kwnames
[] = { "handler", NULL
};
1319 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFileSystem_AddHandler",_kwnames
,&_argo0
))
1322 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1323 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFileSystemHandler_p")) {
1324 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileSystem_AddHandler. Expected _wxFileSystemHandler_p.");
1329 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1330 wxFileSystem::AddHandler(_arg0
);
1332 wxPyEndAllowThreads(__tstate
);
1333 if (PyErr_Occurred()) return NULL
;
1334 } Py_INCREF(Py_None
);
1335 _resultobj
= Py_None
;
1339 static PyObject
*_wrap_wxFileSystem_CleanUpHandlers(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1340 PyObject
* _resultobj
;
1341 char *_kwnames
[] = { NULL
};
1344 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxFileSystem_CleanUpHandlers",_kwnames
))
1347 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1348 wxFileSystem::CleanUpHandlers();
1350 wxPyEndAllowThreads(__tstate
);
1351 if (PyErr_Occurred()) return NULL
;
1352 } Py_INCREF(Py_None
);
1353 _resultobj
= Py_None
;
1357 static PyObject
*_wrap_wxFileSystem_FileNameToURL(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1358 PyObject
* _resultobj
;
1361 PyObject
* _obj0
= 0;
1362 char *_kwnames
[] = { "filename", NULL
};
1365 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFileSystem_FileNameToURL",_kwnames
,&_obj0
))
1368 _arg0
= wxString_in_helper(_obj0
);
1373 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1374 _result
= new wxString (wxFileSystem::FileNameToURL(*_arg0
));
1376 wxPyEndAllowThreads(__tstate
);
1377 if (PyErr_Occurred()) return NULL
;
1380 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
1382 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1395 static void *SwigwxInternetFSHandlerTowxFileSystemHandler(void *ptr
) {
1396 wxInternetFSHandler
*src
;
1397 wxFileSystemHandler
*dest
;
1398 src
= (wxInternetFSHandler
*) ptr
;
1399 dest
= (wxFileSystemHandler
*) src
;
1400 return (void *) dest
;
1403 static void *SwigwxInternetFSHandlerTowxObject(void *ptr
) {
1404 wxInternetFSHandler
*src
;
1406 src
= (wxInternetFSHandler
*) ptr
;
1407 dest
= (wxObject
*) src
;
1408 return (void *) dest
;
1411 #define new_wxInternetFSHandler() (new wxInternetFSHandler())
1412 static PyObject
*_wrap_new_wxInternetFSHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1413 PyObject
* _resultobj
;
1414 wxInternetFSHandler
* _result
;
1415 char *_kwnames
[] = { NULL
};
1419 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxInternetFSHandler",_kwnames
))
1422 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1423 _result
= (wxInternetFSHandler
*)new_wxInternetFSHandler();
1425 wxPyEndAllowThreads(__tstate
);
1426 if (PyErr_Occurred()) return NULL
;
1428 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxInternetFSHandler_p");
1429 _resultobj
= Py_BuildValue("s",_ptemp
);
1432 _resultobj
= Py_None
;
1437 #define wxInternetFSHandler_CanOpen(_swigobj,_swigarg0) (_swigobj->CanOpen(_swigarg0))
1438 static PyObject
*_wrap_wxInternetFSHandler_CanOpen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1439 PyObject
* _resultobj
;
1441 wxInternetFSHandler
* _arg0
;
1443 PyObject
* _argo0
= 0;
1444 PyObject
* _obj1
= 0;
1445 char *_kwnames
[] = { "self","location", NULL
};
1448 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxInternetFSHandler_CanOpen",_kwnames
,&_argo0
,&_obj1
))
1451 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1452 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxInternetFSHandler_p")) {
1453 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxInternetFSHandler_CanOpen. Expected _wxInternetFSHandler_p.");
1458 _arg1
= wxString_in_helper(_obj1
);
1463 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1464 _result
= (bool )wxInternetFSHandler_CanOpen(_arg0
,*_arg1
);
1466 wxPyEndAllowThreads(__tstate
);
1467 if (PyErr_Occurred()) return NULL
;
1468 } _resultobj
= Py_BuildValue("i",_result
);
1476 #define wxInternetFSHandler_OpenFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->OpenFile(_swigarg0,_swigarg1))
1477 static PyObject
*_wrap_wxInternetFSHandler_OpenFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1478 PyObject
* _resultobj
;
1480 wxInternetFSHandler
* _arg0
;
1481 wxFileSystem
* _arg1
;
1483 PyObject
* _argo0
= 0;
1484 PyObject
* _argo1
= 0;
1485 PyObject
* _obj2
= 0;
1486 char *_kwnames
[] = { "self","fs","location", NULL
};
1489 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxInternetFSHandler_OpenFile",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
1492 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1493 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxInternetFSHandler_p")) {
1494 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxInternetFSHandler_OpenFile. Expected _wxInternetFSHandler_p.");
1499 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFileSystem_p")) {
1500 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxInternetFSHandler_OpenFile. Expected _wxFileSystem_p.");
1505 _arg2
= wxString_in_helper(_obj2
);
1510 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1511 _result
= (wxFSFile
*)wxInternetFSHandler_OpenFile(_arg0
,*_arg1
,*_arg2
);
1513 wxPyEndAllowThreads(__tstate
);
1514 if (PyErr_Occurred()) return NULL
;
1515 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1523 static void *SwigwxZipFSHandlerTowxFileSystemHandler(void *ptr
) {
1524 wxZipFSHandler
*src
;
1525 wxFileSystemHandler
*dest
;
1526 src
= (wxZipFSHandler
*) ptr
;
1527 dest
= (wxFileSystemHandler
*) src
;
1528 return (void *) dest
;
1531 static void *SwigwxZipFSHandlerTowxObject(void *ptr
) {
1532 wxZipFSHandler
*src
;
1534 src
= (wxZipFSHandler
*) ptr
;
1535 dest
= (wxObject
*) src
;
1536 return (void *) dest
;
1539 #define new_wxZipFSHandler() (new wxZipFSHandler())
1540 static PyObject
*_wrap_new_wxZipFSHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1541 PyObject
* _resultobj
;
1542 wxZipFSHandler
* _result
;
1543 char *_kwnames
[] = { NULL
};
1547 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxZipFSHandler",_kwnames
))
1550 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1551 _result
= (wxZipFSHandler
*)new_wxZipFSHandler();
1553 wxPyEndAllowThreads(__tstate
);
1554 if (PyErr_Occurred()) return NULL
;
1556 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxZipFSHandler_p");
1557 _resultobj
= Py_BuildValue("s",_ptemp
);
1560 _resultobj
= Py_None
;
1565 #define wxZipFSHandler_CanOpen(_swigobj,_swigarg0) (_swigobj->CanOpen(_swigarg0))
1566 static PyObject
*_wrap_wxZipFSHandler_CanOpen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1567 PyObject
* _resultobj
;
1569 wxZipFSHandler
* _arg0
;
1571 PyObject
* _argo0
= 0;
1572 PyObject
* _obj1
= 0;
1573 char *_kwnames
[] = { "self","location", NULL
};
1576 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxZipFSHandler_CanOpen",_kwnames
,&_argo0
,&_obj1
))
1579 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1580 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxZipFSHandler_p")) {
1581 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxZipFSHandler_CanOpen. Expected _wxZipFSHandler_p.");
1586 _arg1
= wxString_in_helper(_obj1
);
1591 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1592 _result
= (bool )wxZipFSHandler_CanOpen(_arg0
,*_arg1
);
1594 wxPyEndAllowThreads(__tstate
);
1595 if (PyErr_Occurred()) return NULL
;
1596 } _resultobj
= Py_BuildValue("i",_result
);
1604 #define wxZipFSHandler_OpenFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->OpenFile(_swigarg0,_swigarg1))
1605 static PyObject
*_wrap_wxZipFSHandler_OpenFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1606 PyObject
* _resultobj
;
1608 wxZipFSHandler
* _arg0
;
1609 wxFileSystem
* _arg1
;
1611 PyObject
* _argo0
= 0;
1612 PyObject
* _argo1
= 0;
1613 PyObject
* _obj2
= 0;
1614 char *_kwnames
[] = { "self","fs","location", NULL
};
1617 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxZipFSHandler_OpenFile",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
1620 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1621 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxZipFSHandler_p")) {
1622 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxZipFSHandler_OpenFile. Expected _wxZipFSHandler_p.");
1627 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFileSystem_p")) {
1628 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxZipFSHandler_OpenFile. Expected _wxFileSystem_p.");
1633 _arg2
= wxString_in_helper(_obj2
);
1638 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1639 _result
= (wxFSFile
*)wxZipFSHandler_OpenFile(_arg0
,*_arg1
,*_arg2
);
1641 wxPyEndAllowThreads(__tstate
);
1642 if (PyErr_Occurred()) return NULL
;
1643 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1651 #define wxZipFSHandler_FindFirst(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindFirst(_swigarg0,_swigarg1))
1652 static PyObject
*_wrap_wxZipFSHandler_FindFirst(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1653 PyObject
* _resultobj
;
1655 wxZipFSHandler
* _arg0
;
1657 int _arg2
= (int ) 0;
1658 PyObject
* _argo0
= 0;
1659 PyObject
* _obj1
= 0;
1660 char *_kwnames
[] = { "self","spec","flags", NULL
};
1663 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxZipFSHandler_FindFirst",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
1666 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1667 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxZipFSHandler_p")) {
1668 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxZipFSHandler_FindFirst. Expected _wxZipFSHandler_p.");
1673 _arg1
= wxString_in_helper(_obj1
);
1678 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1679 _result
= new wxString (wxZipFSHandler_FindFirst(_arg0
,*_arg1
,_arg2
));
1681 wxPyEndAllowThreads(__tstate
);
1682 if (PyErr_Occurred()) return NULL
;
1685 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
1687 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1700 #define wxZipFSHandler_FindNext(_swigobj) (_swigobj->FindNext())
1701 static PyObject
*_wrap_wxZipFSHandler_FindNext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1702 PyObject
* _resultobj
;
1704 wxZipFSHandler
* _arg0
;
1705 PyObject
* _argo0
= 0;
1706 char *_kwnames
[] = { "self", NULL
};
1709 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxZipFSHandler_FindNext",_kwnames
,&_argo0
))
1712 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1713 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxZipFSHandler_p")) {
1714 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxZipFSHandler_FindNext. Expected _wxZipFSHandler_p.");
1719 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1720 _result
= new wxString (wxZipFSHandler_FindNext(_arg0
));
1722 wxPyEndAllowThreads(__tstate
);
1723 if (PyErr_Occurred()) return NULL
;
1726 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
1728 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1737 static void *SwigwxMemoryFSHandlerTowxFileSystemHandler(void *ptr
) {
1738 wxMemoryFSHandler
*src
;
1739 wxFileSystemHandler
*dest
;
1740 src
= (wxMemoryFSHandler
*) ptr
;
1741 dest
= (wxFileSystemHandler
*) src
;
1742 return (void *) dest
;
1745 static void *SwigwxMemoryFSHandlerTowxObject(void *ptr
) {
1746 wxMemoryFSHandler
*src
;
1748 src
= (wxMemoryFSHandler
*) ptr
;
1749 dest
= (wxObject
*) src
;
1750 return (void *) dest
;
1753 #define new_wxMemoryFSHandler() (new wxMemoryFSHandler())
1754 static PyObject
*_wrap_new_wxMemoryFSHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1755 PyObject
* _resultobj
;
1756 wxMemoryFSHandler
* _result
;
1757 char *_kwnames
[] = { NULL
};
1761 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxMemoryFSHandler",_kwnames
))
1764 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1765 _result
= (wxMemoryFSHandler
*)new_wxMemoryFSHandler();
1767 wxPyEndAllowThreads(__tstate
);
1768 if (PyErr_Occurred()) return NULL
;
1770 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMemoryFSHandler_p");
1771 _resultobj
= Py_BuildValue("s",_ptemp
);
1774 _resultobj
= Py_None
;
1779 static PyObject
*_wrap_wxMemoryFSHandler_RemoveFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1780 PyObject
* _resultobj
;
1782 PyObject
* _obj0
= 0;
1783 char *_kwnames
[] = { "filename", NULL
};
1786 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMemoryFSHandler_RemoveFile",_kwnames
,&_obj0
))
1789 _arg0
= wxString_in_helper(_obj0
);
1794 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1795 wxMemoryFSHandler::RemoveFile(*_arg0
);
1797 wxPyEndAllowThreads(__tstate
);
1798 if (PyErr_Occurred()) return NULL
;
1799 } Py_INCREF(Py_None
);
1800 _resultobj
= Py_None
;
1808 #define wxMemoryFSHandler_CanOpen(_swigobj,_swigarg0) (_swigobj->CanOpen(_swigarg0))
1809 static PyObject
*_wrap_wxMemoryFSHandler_CanOpen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1810 PyObject
* _resultobj
;
1812 wxMemoryFSHandler
* _arg0
;
1814 PyObject
* _argo0
= 0;
1815 PyObject
* _obj1
= 0;
1816 char *_kwnames
[] = { "self","location", NULL
};
1819 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMemoryFSHandler_CanOpen",_kwnames
,&_argo0
,&_obj1
))
1822 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1823 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMemoryFSHandler_p")) {
1824 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryFSHandler_CanOpen. Expected _wxMemoryFSHandler_p.");
1829 _arg1
= wxString_in_helper(_obj1
);
1834 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1835 _result
= (bool )wxMemoryFSHandler_CanOpen(_arg0
,*_arg1
);
1837 wxPyEndAllowThreads(__tstate
);
1838 if (PyErr_Occurred()) return NULL
;
1839 } _resultobj
= Py_BuildValue("i",_result
);
1847 #define wxMemoryFSHandler_OpenFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->OpenFile(_swigarg0,_swigarg1))
1848 static PyObject
*_wrap_wxMemoryFSHandler_OpenFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1849 PyObject
* _resultobj
;
1851 wxMemoryFSHandler
* _arg0
;
1852 wxFileSystem
* _arg1
;
1854 PyObject
* _argo0
= 0;
1855 PyObject
* _argo1
= 0;
1856 PyObject
* _obj2
= 0;
1857 char *_kwnames
[] = { "self","fs","location", NULL
};
1860 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxMemoryFSHandler_OpenFile",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
1863 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1864 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMemoryFSHandler_p")) {
1865 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryFSHandler_OpenFile. Expected _wxMemoryFSHandler_p.");
1870 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFileSystem_p")) {
1871 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMemoryFSHandler_OpenFile. Expected _wxFileSystem_p.");
1876 _arg2
= wxString_in_helper(_obj2
);
1881 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1882 _result
= (wxFSFile
*)wxMemoryFSHandler_OpenFile(_arg0
,*_arg1
,*_arg2
);
1884 wxPyEndAllowThreads(__tstate
);
1885 if (PyErr_Occurred()) return NULL
;
1886 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1894 #define wxMemoryFSHandler_FindFirst(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindFirst(_swigarg0,_swigarg1))
1895 static PyObject
*_wrap_wxMemoryFSHandler_FindFirst(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1896 PyObject
* _resultobj
;
1898 wxMemoryFSHandler
* _arg0
;
1900 int _arg2
= (int ) 0;
1901 PyObject
* _argo0
= 0;
1902 PyObject
* _obj1
= 0;
1903 char *_kwnames
[] = { "self","spec","flags", NULL
};
1906 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxMemoryFSHandler_FindFirst",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
1909 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1910 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMemoryFSHandler_p")) {
1911 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryFSHandler_FindFirst. Expected _wxMemoryFSHandler_p.");
1916 _arg1
= wxString_in_helper(_obj1
);
1921 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1922 _result
= new wxString (wxMemoryFSHandler_FindFirst(_arg0
,*_arg1
,_arg2
));
1924 wxPyEndAllowThreads(__tstate
);
1925 if (PyErr_Occurred()) return NULL
;
1928 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
1930 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1943 #define wxMemoryFSHandler_FindNext(_swigobj) (_swigobj->FindNext())
1944 static PyObject
*_wrap_wxMemoryFSHandler_FindNext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1945 PyObject
* _resultobj
;
1947 wxMemoryFSHandler
* _arg0
;
1948 PyObject
* _argo0
= 0;
1949 char *_kwnames
[] = { "self", NULL
};
1952 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMemoryFSHandler_FindNext",_kwnames
,&_argo0
))
1955 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1956 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMemoryFSHandler_p")) {
1957 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryFSHandler_FindNext. Expected _wxMemoryFSHandler_p.");
1962 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1963 _result
= new wxString (wxMemoryFSHandler_FindNext(_arg0
));
1965 wxPyEndAllowThreads(__tstate
);
1966 if (PyErr_Occurred()) return NULL
;
1969 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
1971 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1980 static PyMethodDef filesyscMethods
[] = {
1981 { "wxMemoryFSHandler_FindNext", (PyCFunction
) _wrap_wxMemoryFSHandler_FindNext
, METH_VARARGS
| METH_KEYWORDS
},
1982 { "wxMemoryFSHandler_FindFirst", (PyCFunction
) _wrap_wxMemoryFSHandler_FindFirst
, METH_VARARGS
| METH_KEYWORDS
},
1983 { "wxMemoryFSHandler_OpenFile", (PyCFunction
) _wrap_wxMemoryFSHandler_OpenFile
, METH_VARARGS
| METH_KEYWORDS
},
1984 { "wxMemoryFSHandler_CanOpen", (PyCFunction
) _wrap_wxMemoryFSHandler_CanOpen
, METH_VARARGS
| METH_KEYWORDS
},
1985 { "wxMemoryFSHandler_RemoveFile", (PyCFunction
) _wrap_wxMemoryFSHandler_RemoveFile
, METH_VARARGS
| METH_KEYWORDS
},
1986 { "new_wxMemoryFSHandler", (PyCFunction
) _wrap_new_wxMemoryFSHandler
, METH_VARARGS
| METH_KEYWORDS
},
1987 { "wxZipFSHandler_FindNext", (PyCFunction
) _wrap_wxZipFSHandler_FindNext
, METH_VARARGS
| METH_KEYWORDS
},
1988 { "wxZipFSHandler_FindFirst", (PyCFunction
) _wrap_wxZipFSHandler_FindFirst
, METH_VARARGS
| METH_KEYWORDS
},
1989 { "wxZipFSHandler_OpenFile", (PyCFunction
) _wrap_wxZipFSHandler_OpenFile
, METH_VARARGS
| METH_KEYWORDS
},
1990 { "wxZipFSHandler_CanOpen", (PyCFunction
) _wrap_wxZipFSHandler_CanOpen
, METH_VARARGS
| METH_KEYWORDS
},
1991 { "new_wxZipFSHandler", (PyCFunction
) _wrap_new_wxZipFSHandler
, METH_VARARGS
| METH_KEYWORDS
},
1992 { "wxInternetFSHandler_OpenFile", (PyCFunction
) _wrap_wxInternetFSHandler_OpenFile
, METH_VARARGS
| METH_KEYWORDS
},
1993 { "wxInternetFSHandler_CanOpen", (PyCFunction
) _wrap_wxInternetFSHandler_CanOpen
, METH_VARARGS
| METH_KEYWORDS
},
1994 { "new_wxInternetFSHandler", (PyCFunction
) _wrap_new_wxInternetFSHandler
, METH_VARARGS
| METH_KEYWORDS
},
1995 { "wxFileSystem_FileNameToURL", (PyCFunction
) _wrap_wxFileSystem_FileNameToURL
, METH_VARARGS
| METH_KEYWORDS
},
1996 { "wxFileSystem_CleanUpHandlers", (PyCFunction
) _wrap_wxFileSystem_CleanUpHandlers
, METH_VARARGS
| METH_KEYWORDS
},
1997 { "wxFileSystem_AddHandler", (PyCFunction
) _wrap_wxFileSystem_AddHandler
, METH_VARARGS
| METH_KEYWORDS
},
1998 { "wxFileSystem_FindNext", (PyCFunction
) _wrap_wxFileSystem_FindNext
, METH_VARARGS
| METH_KEYWORDS
},
1999 { "wxFileSystem_FindFirst", (PyCFunction
) _wrap_wxFileSystem_FindFirst
, METH_VARARGS
| METH_KEYWORDS
},
2000 { "wxFileSystem_OpenFile", (PyCFunction
) _wrap_wxFileSystem_OpenFile
, METH_VARARGS
| METH_KEYWORDS
},
2001 { "wxFileSystem_GetPath", (PyCFunction
) _wrap_wxFileSystem_GetPath
, METH_VARARGS
| METH_KEYWORDS
},
2002 { "wxFileSystem_ChangePathTo", (PyCFunction
) _wrap_wxFileSystem_ChangePathTo
, METH_VARARGS
| METH_KEYWORDS
},
2003 { "new_wxFileSystem", (PyCFunction
) _wrap_new_wxFileSystem
, METH_VARARGS
| METH_KEYWORDS
},
2004 { "wxFileSystemHandler_GetMimeTypeFromExt", (PyCFunction
) _wrap_wxFileSystemHandler_GetMimeTypeFromExt
, METH_VARARGS
| METH_KEYWORDS
},
2005 { "wxFileSystemHandler_GetRightLocation", (PyCFunction
) _wrap_wxFileSystemHandler_GetRightLocation
, METH_VARARGS
| METH_KEYWORDS
},
2006 { "wxFileSystemHandler_GetAnchor", (PyCFunction
) _wrap_wxFileSystemHandler_GetAnchor
, METH_VARARGS
| METH_KEYWORDS
},
2007 { "wxFileSystemHandler_GetLeftLocation", (PyCFunction
) _wrap_wxFileSystemHandler_GetLeftLocation
, METH_VARARGS
| METH_KEYWORDS
},
2008 { "wxFileSystemHandler_GetProtocol", (PyCFunction
) _wrap_wxFileSystemHandler_GetProtocol
, METH_VARARGS
| METH_KEYWORDS
},
2009 { "wxFileSystemHandler_FindNext", (PyCFunction
) _wrap_wxFileSystemHandler_FindNext
, METH_VARARGS
| METH_KEYWORDS
},
2010 { "wxFileSystemHandler_FindFirst", (PyCFunction
) _wrap_wxFileSystemHandler_FindFirst
, METH_VARARGS
| METH_KEYWORDS
},
2011 { "wxFileSystemHandler_OpenFile", (PyCFunction
) _wrap_wxFileSystemHandler_OpenFile
, METH_VARARGS
| METH_KEYWORDS
},
2012 { "wxFileSystemHandler_CanOpen", (PyCFunction
) _wrap_wxFileSystemHandler_CanOpen
, METH_VARARGS
| METH_KEYWORDS
},
2013 { "wxFileSystemHandler__setCallbackInfo", (PyCFunction
) _wrap_wxFileSystemHandler__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
2014 { "new_wxFileSystemHandler", (PyCFunction
) _wrap_new_wxFileSystemHandler
, METH_VARARGS
| METH_KEYWORDS
},
2015 { "wxFSFile_GetModificationTime", (PyCFunction
) _wrap_wxFSFile_GetModificationTime
, METH_VARARGS
| METH_KEYWORDS
},
2016 { "wxFSFile_GetAnchor", (PyCFunction
) _wrap_wxFSFile_GetAnchor
, METH_VARARGS
| METH_KEYWORDS
},
2017 { "wxFSFile_GetLocation", (PyCFunction
) _wrap_wxFSFile_GetLocation
, METH_VARARGS
| METH_KEYWORDS
},
2018 { "wxFSFile_GetMimeType", (PyCFunction
) _wrap_wxFSFile_GetMimeType
, METH_VARARGS
| METH_KEYWORDS
},
2019 { "wxFSFile_GetStream", (PyCFunction
) _wrap_wxFSFile_GetStream
, METH_VARARGS
| METH_KEYWORDS
},
2020 { "new_wxFSFile", (PyCFunction
) _wrap_new_wxFSFile
, METH_VARARGS
| METH_KEYWORDS
},
2021 { "__wxMemoryFSHandler_AddFile_Data", (PyCFunction
) _wrap___wxMemoryFSHandler_AddFile_Data
, METH_VARARGS
| METH_KEYWORDS
},
2022 { "__wxMemoryFSHandler_AddFile_wxBitmap", (PyCFunction
) _wrap___wxMemoryFSHandler_AddFile_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
2023 { "__wxMemoryFSHandler_AddFile_wxImage", (PyCFunction
) _wrap___wxMemoryFSHandler_AddFile_wxImage
, METH_VARARGS
| METH_KEYWORDS
},
2024 { "wxFileSystem_URLToFileName", (PyCFunction
) _wrap_wxFileSystem_URLToFileName
, METH_VARARGS
| METH_KEYWORDS
},
2031 * This table is used by the pointer type-checker
2033 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
2034 { "_signed_long","_long",0},
2035 { "_wxPrintQuality","_wxCoord",0},
2036 { "_wxPrintQuality","_int",0},
2037 { "_wxPrintQuality","_signed_int",0},
2038 { "_wxPrintQuality","_unsigned_int",0},
2039 { "_wxPrintQuality","_wxWindowID",0},
2040 { "_wxPrintQuality","_uint",0},
2041 { "_wxPrintQuality","_EBool",0},
2042 { "_wxPrintQuality","_size_t",0},
2043 { "_wxPrintQuality","_time_t",0},
2044 { "_byte","_unsigned_char",0},
2045 { "_long","_unsigned_long",0},
2046 { "_long","_signed_long",0},
2047 { "_size_t","_wxCoord",0},
2048 { "_size_t","_wxPrintQuality",0},
2049 { "_size_t","_time_t",0},
2050 { "_size_t","_unsigned_int",0},
2051 { "_size_t","_int",0},
2052 { "_size_t","_wxWindowID",0},
2053 { "_size_t","_uint",0},
2054 { "_uint","_wxCoord",0},
2055 { "_uint","_wxPrintQuality",0},
2056 { "_uint","_time_t",0},
2057 { "_uint","_size_t",0},
2058 { "_uint","_unsigned_int",0},
2059 { "_uint","_int",0},
2060 { "_uint","_wxWindowID",0},
2061 { "_wxChar","_char",0},
2062 { "_char","_wxChar",0},
2063 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
2064 { "_EBool","_wxCoord",0},
2065 { "_EBool","_wxPrintQuality",0},
2066 { "_EBool","_signed_int",0},
2067 { "_EBool","_int",0},
2068 { "_EBool","_wxWindowID",0},
2069 { "_unsigned_long","_long",0},
2070 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
2071 { "_signed_int","_wxCoord",0},
2072 { "_signed_int","_wxPrintQuality",0},
2073 { "_signed_int","_EBool",0},
2074 { "_signed_int","_wxWindowID",0},
2075 { "_signed_int","_int",0},
2076 { "_WXTYPE","_wxDateTime_t",0},
2077 { "_WXTYPE","_short",0},
2078 { "_WXTYPE","_signed_short",0},
2079 { "_WXTYPE","_unsigned_short",0},
2080 { "_unsigned_short","_wxDateTime_t",0},
2081 { "_unsigned_short","_WXTYPE",0},
2082 { "_unsigned_short","_short",0},
2083 { "_wxObject","_wxMemoryFSHandler",SwigwxMemoryFSHandlerTowxObject
},
2084 { "_wxObject","_wxZipFSHandler",SwigwxZipFSHandlerTowxObject
},
2085 { "_wxObject","_wxInternetFSHandler",SwigwxInternetFSHandlerTowxObject
},
2086 { "_wxObject","_wxFileSystem",SwigwxFileSystemTowxObject
},
2087 { "_wxObject","_wxPyFileSystemHandler",SwigwxPyFileSystemHandlerTowxObject
},
2088 { "_wxObject","_wxFileSystemHandler",SwigwxFileSystemHandlerTowxObject
},
2089 { "_wxObject","_wxFSFile",SwigwxFSFileTowxObject
},
2090 { "_signed_short","_WXTYPE",0},
2091 { "_signed_short","_short",0},
2092 { "_unsigned_char","_byte",0},
2093 { "_unsigned_int","_wxCoord",0},
2094 { "_unsigned_int","_wxPrintQuality",0},
2095 { "_unsigned_int","_time_t",0},
2096 { "_unsigned_int","_size_t",0},
2097 { "_unsigned_int","_uint",0},
2098 { "_unsigned_int","_wxWindowID",0},
2099 { "_unsigned_int","_int",0},
2100 { "_short","_wxDateTime_t",0},
2101 { "_short","_WXTYPE",0},
2102 { "_short","_unsigned_short",0},
2103 { "_short","_signed_short",0},
2104 { "_wxFileSystemHandler","_wxMemoryFSHandler",SwigwxMemoryFSHandlerTowxFileSystemHandler
},
2105 { "_wxFileSystemHandler","_wxZipFSHandler",SwigwxZipFSHandlerTowxFileSystemHandler
},
2106 { "_wxFileSystemHandler","_wxInternetFSHandler",SwigwxInternetFSHandlerTowxFileSystemHandler
},
2107 { "_wxFileSystemHandler","_wxPyFileSystemHandler",SwigwxPyFileSystemHandlerTowxFileSystemHandler
},
2108 { "_wxWindowID","_wxCoord",0},
2109 { "_wxWindowID","_wxPrintQuality",0},
2110 { "_wxWindowID","_time_t",0},
2111 { "_wxWindowID","_size_t",0},
2112 { "_wxWindowID","_EBool",0},
2113 { "_wxWindowID","_uint",0},
2114 { "_wxWindowID","_int",0},
2115 { "_wxWindowID","_signed_int",0},
2116 { "_wxWindowID","_unsigned_int",0},
2117 { "_int","_wxCoord",0},
2118 { "_int","_wxPrintQuality",0},
2119 { "_int","_time_t",0},
2120 { "_int","_size_t",0},
2121 { "_int","_EBool",0},
2122 { "_int","_uint",0},
2123 { "_int","_wxWindowID",0},
2124 { "_int","_unsigned_int",0},
2125 { "_int","_signed_int",0},
2126 { "_wxDateTime_t","_unsigned_short",0},
2127 { "_wxDateTime_t","_short",0},
2128 { "_wxDateTime_t","_WXTYPE",0},
2129 { "_time_t","_wxCoord",0},
2130 { "_time_t","_wxPrintQuality",0},
2131 { "_time_t","_unsigned_int",0},
2132 { "_time_t","_int",0},
2133 { "_time_t","_wxWindowID",0},
2134 { "_time_t","_uint",0},
2135 { "_time_t","_size_t",0},
2136 { "_wxCoord","_int",0},
2137 { "_wxCoord","_signed_int",0},
2138 { "_wxCoord","_unsigned_int",0},
2139 { "_wxCoord","_wxWindowID",0},
2140 { "_wxCoord","_uint",0},
2141 { "_wxCoord","_EBool",0},
2142 { "_wxCoord","_size_t",0},
2143 { "_wxCoord","_time_t",0},
2144 { "_wxCoord","_wxPrintQuality",0},
2147 static PyObject
*SWIG_globals
;
2151 SWIGEXPORT(void) initfilesysc() {
2153 SWIG_globals
= SWIG_newvarlink();
2154 m
= Py_InitModule("filesysc", filesyscMethods
);
2155 d
= PyModule_GetDict(m
);
2157 wxPyPtrTypeMap_Add("wxFileSystemHandler", "wxPyFileSystemHandler");
2160 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
2161 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);