2 * FILE : src/mac/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 */
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
32 # define SWIGEXPORT(a) a
36 # define SWIGEXPORT(a) a
45 extern void SWIG_MakePtr(char *, void *, char *);
46 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47 extern char *SWIG_GetPtr(char *, void **, char *);
48 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
49 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
50 extern PyObject
*SWIG_newvarlink(void);
54 #define SWIG_init initfilesysc
56 #define SWIG_name "filesysc"
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 #if PYTHON_API_VERSION >= 1009
92 static char* wxStringErrorMsg
= "String or Unicode type required";
94 static char* wxStringErrorMsg
= "String type required";
97 // wxPyFileSystemHandler will be the Python class wxFileSystemHandler and handling
98 // the callback functions
99 class wxPyFileSystemHandler
: public wxFileSystemHandler
{
101 wxPyFileSystemHandler() : wxFileSystemHandler() {}
103 DEC_PYCALLBACK_BOOL_STRING_pure(CanOpen
);
104 DEC_PYCALLBACK_FSF_FSSTRING_pure(OpenFile
);
105 DEC_PYCALLBACK_STRING_STRINGINT_pure(FindFirst
);
106 DEC_PYCALLBACK_STRING__pure(FindNext
);
108 wxString
GetProtocol(const wxString
& location
) {
109 return wxFileSystemHandler::GetProtocol(location
);
112 wxString
GetLeftLocation(const wxString
& location
) {
113 return wxFileSystemHandler::GetLeftLocation(location
);
116 wxString
GetAnchor(const wxString
& location
) {
117 return wxFileSystemHandler::GetAnchor(location
);
120 wxString
GetRightLocation(const wxString
& location
) {
121 return wxFileSystemHandler::GetRightLocation(location
);
124 wxString
GetMimeTypeFromExt(const wxString
& location
){
125 return wxFileSystemHandler::GetMimeTypeFromExt(location
);
132 IMP_PYCALLBACK_BOOL_STRING_pure(wxPyFileSystemHandler
, wxFileSystemHandler
, CanOpen
);
133 IMP_PYCALLBACK_FSF_FSSTRING_pure(wxPyFileSystemHandler
, wxFileSystemHandler
, OpenFile
);
134 IMP_PYCALLBACK_STRING_STRINGINT_pure(wxPyFileSystemHandler
, wxFileSystemHandler
, FindFirst
);
135 IMP_PYCALLBACK_STRING__pure(wxPyFileSystemHandler
, wxFileSystemHandler
, FindNext
);
137 void __wxMemoryFSHandler_AddFile_wxImage(const wxString
& filename
,
140 wxMemoryFSHandler::AddFile(filename
, image
, type
);
143 void __wxMemoryFSHandler_AddFile_wxBitmap(const wxString
& filename
,
144 const wxBitmap
& bitmap
,
146 wxMemoryFSHandler::AddFile(filename
, bitmap
, type
);
149 // void __wxMemoryFSHandler_AddFile_wxString(const wxString& filename,
150 // const wxString& textdata) {
151 // wxMemoryFSHandler::AddFile(filename, textdata);
154 void __wxMemoryFSHandler_AddFile_Data(const wxString
& filename
,
157 wxMemoryFSHandler::AddFile(filename
,
158 (void*)PyString_AsString(data
),
159 (size_t)PyString_Size(data
));
164 static PyObject
*_wrap___wxMemoryFSHandler_AddFile_wxImage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
165 PyObject
* _resultobj
;
169 PyObject
* _obj0
= 0;
170 PyObject
* _argo1
= 0;
171 char *_kwnames
[] = { "filename","image","type", NULL
};
174 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOl:__wxMemoryFSHandler_AddFile_wxImage",_kwnames
,&_obj0
,&_argo1
,&_arg2
))
177 #if PYTHON_API_VERSION >= 1009
178 char* tmpPtr
; int tmpSize
;
179 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
180 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
183 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
185 _arg0
= new wxString(tmpPtr
, tmpSize
);
187 if (!PyString_Check(_obj0
)) {
188 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
191 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
195 if (_argo1
== Py_None
) { _arg1
= NULL
; }
196 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxImage_p")) {
197 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of __wxMemoryFSHandler_AddFile_wxImage. Expected _wxImage_p.");
202 wxPy_BEGIN_ALLOW_THREADS
;
203 __wxMemoryFSHandler_AddFile_wxImage(*_arg0
,*_arg1
,_arg2
);
205 wxPy_END_ALLOW_THREADS
;
206 } Py_INCREF(Py_None
);
207 _resultobj
= Py_None
;
215 static PyObject
*_wrap___wxMemoryFSHandler_AddFile_wxBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
216 PyObject
* _resultobj
;
220 PyObject
* _obj0
= 0;
221 PyObject
* _argo1
= 0;
222 char *_kwnames
[] = { "filename","bitmap","type", NULL
};
225 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOl:__wxMemoryFSHandler_AddFile_wxBitmap",_kwnames
,&_obj0
,&_argo1
,&_arg2
))
228 #if PYTHON_API_VERSION >= 1009
229 char* tmpPtr
; int tmpSize
;
230 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
231 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
234 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
236 _arg0
= new wxString(tmpPtr
, tmpSize
);
238 if (!PyString_Check(_obj0
)) {
239 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
242 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
246 if (_argo1
== Py_None
) { _arg1
= NULL
; }
247 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
248 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of __wxMemoryFSHandler_AddFile_wxBitmap. Expected _wxBitmap_p.");
253 wxPy_BEGIN_ALLOW_THREADS
;
254 __wxMemoryFSHandler_AddFile_wxBitmap(*_arg0
,*_arg1
,_arg2
);
256 wxPy_END_ALLOW_THREADS
;
257 } Py_INCREF(Py_None
);
258 _resultobj
= Py_None
;
266 static PyObject
*_wrap___wxMemoryFSHandler_AddFile_Data(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
267 PyObject
* _resultobj
;
270 PyObject
* _obj0
= 0;
271 PyObject
* _obj1
= 0;
272 char *_kwnames
[] = { "filename","data", NULL
};
275 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:__wxMemoryFSHandler_AddFile_Data",_kwnames
,&_obj0
,&_obj1
))
278 #if PYTHON_API_VERSION >= 1009
279 char* tmpPtr
; int tmpSize
;
280 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
281 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
284 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
286 _arg0
= new wxString(tmpPtr
, tmpSize
);
288 if (!PyString_Check(_obj0
)) {
289 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
292 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
299 wxPy_BEGIN_ALLOW_THREADS
;
300 __wxMemoryFSHandler_AddFile_Data(*_arg0
,_arg1
);
302 wxPy_END_ALLOW_THREADS
;
303 } Py_INCREF(Py_None
);
304 _resultobj
= Py_None
;
312 static void *SwigwxFSFileTowxObject(void *ptr
) {
315 src
= (wxFSFile
*) ptr
;
316 dest
= (wxObject
*) src
;
317 return (void *) dest
;
320 #define new_wxFSFile(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxFSFile(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
321 static PyObject
*_wrap_new_wxFSFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
322 PyObject
* _resultobj
;
324 wxInputStream
* _arg0
;
329 PyObject
* _obj0
= 0;
330 PyObject
* _obj1
= 0;
331 PyObject
* _obj2
= 0;
332 PyObject
* _obj3
= 0;
333 PyObject
* _argo4
= 0;
334 char *_kwnames
[] = { "stream","loc","mimetype","anchor","modif", NULL
};
338 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOOO:new_wxFSFile",_kwnames
,&_obj0
,&_obj1
,&_obj2
,&_obj3
,&_argo4
))
341 if (PyInstance_Check(_obj0
)) {
342 wxPyInputStream
* ptr
;
343 if (SWIG_GetPtrObj(_obj0
, (void **) &ptr
,"_wxPyInputStream_p")) {
344 PyErr_SetString(PyExc_TypeError
,"Expected _wxInputStream_p.");
349 PyErr_SetString(PyExc_TypeError
,"Expected _wxInputStream_p.");
354 #if PYTHON_API_VERSION >= 1009
355 char* tmpPtr
; int tmpSize
;
356 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
357 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
360 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
362 _arg1
= new wxString(tmpPtr
, tmpSize
);
364 if (!PyString_Check(_obj1
)) {
365 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
368 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
372 #if PYTHON_API_VERSION >= 1009
373 char* tmpPtr
; int tmpSize
;
374 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
375 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
378 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
380 _arg2
= new wxString(tmpPtr
, tmpSize
);
382 if (!PyString_Check(_obj2
)) {
383 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
386 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
390 #if PYTHON_API_VERSION >= 1009
391 char* tmpPtr
; int tmpSize
;
392 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
393 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
396 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
398 _arg3
= new wxString(tmpPtr
, tmpSize
);
400 if (!PyString_Check(_obj3
)) {
401 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
404 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
408 if (_argo4
== Py_None
) { _arg4
= NULL
; }
409 else if (SWIG_GetPtrObj(_argo4
,(void **) &_arg4
,"_wxDateTime_p")) {
410 PyErr_SetString(PyExc_TypeError
,"Type error in argument 5 of new_wxFSFile. Expected _wxDateTime_p.");
415 wxPy_BEGIN_ALLOW_THREADS
;
416 _result
= (wxFSFile
*)new_wxFSFile(_arg0
,*_arg1
,*_arg2
,*_arg3
,*_arg4
);
418 wxPy_END_ALLOW_THREADS
;
420 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFSFile_p");
421 _resultobj
= Py_BuildValue("s",_ptemp
);
424 _resultobj
= Py_None
;
441 #define wxFSFile_GetStream(_swigobj) (_swigobj->GetStream())
442 static PyObject
*_wrap_wxFSFile_GetStream(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
443 PyObject
* _resultobj
;
444 wxInputStream
* _result
;
446 PyObject
* _argo0
= 0;
447 char *_kwnames
[] = { "self", NULL
};
450 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFSFile_GetStream",_kwnames
,&_argo0
))
453 if (_argo0
== Py_None
) { _arg0
= NULL
; }
454 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFSFile_p")) {
455 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFSFile_GetStream. Expected _wxFSFile_p.");
460 wxPy_BEGIN_ALLOW_THREADS
;
461 _result
= (wxInputStream
*)wxFSFile_GetStream(_arg0
);
463 wxPy_END_ALLOW_THREADS
;
465 wxPyInputStream
* _ptr
= NULL
;
468 _ptr
= new wxPyInputStream(_result
);
470 _resultobj
= wxPyConstructObject(_ptr
, "wxInputStream", TRUE
);
475 #define wxFSFile_GetMimeType(_swigobj) (_swigobj->GetMimeType())
476 static PyObject
*_wrap_wxFSFile_GetMimeType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
477 PyObject
* _resultobj
;
480 PyObject
* _argo0
= 0;
481 char *_kwnames
[] = { "self", NULL
};
484 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFSFile_GetMimeType",_kwnames
,&_argo0
))
487 if (_argo0
== Py_None
) { _arg0
= NULL
; }
488 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFSFile_p")) {
489 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFSFile_GetMimeType. Expected _wxFSFile_p.");
494 wxPy_BEGIN_ALLOW_THREADS
;
495 const wxString
& _result_ref
= wxFSFile_GetMimeType(_arg0
);
496 _result
= (wxString
*) &_result_ref
;
498 wxPy_END_ALLOW_THREADS
;
500 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
505 #define wxFSFile_GetLocation(_swigobj) (_swigobj->GetLocation())
506 static PyObject
*_wrap_wxFSFile_GetLocation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
507 PyObject
* _resultobj
;
510 PyObject
* _argo0
= 0;
511 char *_kwnames
[] = { "self", NULL
};
514 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFSFile_GetLocation",_kwnames
,&_argo0
))
517 if (_argo0
== Py_None
) { _arg0
= NULL
; }
518 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFSFile_p")) {
519 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFSFile_GetLocation. Expected _wxFSFile_p.");
524 wxPy_BEGIN_ALLOW_THREADS
;
525 const wxString
& _result_ref
= wxFSFile_GetLocation(_arg0
);
526 _result
= (wxString
*) &_result_ref
;
528 wxPy_END_ALLOW_THREADS
;
530 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
535 #define wxFSFile_GetAnchor(_swigobj) (_swigobj->GetAnchor())
536 static PyObject
*_wrap_wxFSFile_GetAnchor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
537 PyObject
* _resultobj
;
540 PyObject
* _argo0
= 0;
541 char *_kwnames
[] = { "self", NULL
};
544 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFSFile_GetAnchor",_kwnames
,&_argo0
))
547 if (_argo0
== Py_None
) { _arg0
= NULL
; }
548 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFSFile_p")) {
549 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFSFile_GetAnchor. Expected _wxFSFile_p.");
554 wxPy_BEGIN_ALLOW_THREADS
;
555 const wxString
& _result_ref
= wxFSFile_GetAnchor(_arg0
);
556 _result
= (wxString
*) &_result_ref
;
558 wxPy_END_ALLOW_THREADS
;
560 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
565 #define wxFSFile_GetModificationTime(_swigobj) (_swigobj->GetModificationTime())
566 static PyObject
*_wrap_wxFSFile_GetModificationTime(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
567 PyObject
* _resultobj
;
568 wxDateTime
* _result
;
570 PyObject
* _argo0
= 0;
571 char *_kwnames
[] = { "self", NULL
};
575 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFSFile_GetModificationTime",_kwnames
,&_argo0
))
578 if (_argo0
== Py_None
) { _arg0
= NULL
; }
579 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFSFile_p")) {
580 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFSFile_GetModificationTime. Expected _wxFSFile_p.");
585 wxPy_BEGIN_ALLOW_THREADS
;
586 _result
= new wxDateTime (wxFSFile_GetModificationTime(_arg0
));
588 wxPy_END_ALLOW_THREADS
;
589 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxDateTime_p");
590 _resultobj
= Py_BuildValue("s",_ptemp
);
594 static void *SwigwxFileSystemHandlerTowxObject(void *ptr
) {
595 wxFileSystemHandler
*src
;
597 src
= (wxFileSystemHandler
*) ptr
;
598 dest
= (wxObject
*) src
;
599 return (void *) dest
;
602 static void *SwigwxPyFileSystemHandlerTowxFileSystemHandler(void *ptr
) {
603 wxPyFileSystemHandler
*src
;
604 wxFileSystemHandler
*dest
;
605 src
= (wxPyFileSystemHandler
*) ptr
;
606 dest
= (wxFileSystemHandler
*) src
;
607 return (void *) dest
;
610 static void *SwigwxPyFileSystemHandlerTowxObject(void *ptr
) {
611 wxPyFileSystemHandler
*src
;
613 src
= (wxPyFileSystemHandler
*) ptr
;
614 dest
= (wxObject
*) src
;
615 return (void *) dest
;
618 #define new_wxFileSystemHandler() (new wxPyFileSystemHandler())
619 static PyObject
*_wrap_new_wxFileSystemHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
620 PyObject
* _resultobj
;
621 wxPyFileSystemHandler
* _result
;
622 char *_kwnames
[] = { NULL
};
626 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxFileSystemHandler",_kwnames
))
629 wxPy_BEGIN_ALLOW_THREADS
;
630 _result
= (wxPyFileSystemHandler
*)new_wxFileSystemHandler();
632 wxPy_END_ALLOW_THREADS
;
634 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyFileSystemHandler_p");
635 _resultobj
= Py_BuildValue("s",_ptemp
);
638 _resultobj
= Py_None
;
643 #define wxFileSystemHandler__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
644 static PyObject
*_wrap_wxFileSystemHandler__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
645 PyObject
* _resultobj
;
646 wxPyFileSystemHandler
* _arg0
;
649 PyObject
* _argo0
= 0;
650 PyObject
* _obj1
= 0;
651 PyObject
* _obj2
= 0;
652 char *_kwnames
[] = { "self","self","_class", NULL
};
655 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxFileSystemHandler__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
658 if (_argo0
== Py_None
) { _arg0
= NULL
; }
659 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileSystemHandler_p")) {
660 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileSystemHandler__setCallbackInfo. Expected _wxPyFileSystemHandler_p.");
671 wxPy_BEGIN_ALLOW_THREADS
;
672 wxFileSystemHandler__setCallbackInfo(_arg0
,_arg1
,_arg2
);
674 wxPy_END_ALLOW_THREADS
;
675 } Py_INCREF(Py_None
);
676 _resultobj
= Py_None
;
680 #define wxFileSystemHandler_CanOpen(_swigobj,_swigarg0) (_swigobj->CanOpen(_swigarg0))
681 static PyObject
*_wrap_wxFileSystemHandler_CanOpen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
682 PyObject
* _resultobj
;
684 wxPyFileSystemHandler
* _arg0
;
686 PyObject
* _argo0
= 0;
687 PyObject
* _obj1
= 0;
688 char *_kwnames
[] = { "self","location", NULL
};
691 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFileSystemHandler_CanOpen",_kwnames
,&_argo0
,&_obj1
))
694 if (_argo0
== Py_None
) { _arg0
= NULL
; }
695 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileSystemHandler_p")) {
696 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileSystemHandler_CanOpen. Expected _wxPyFileSystemHandler_p.");
701 #if PYTHON_API_VERSION >= 1009
702 char* tmpPtr
; int tmpSize
;
703 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
704 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
707 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
709 _arg1
= new wxString(tmpPtr
, tmpSize
);
711 if (!PyString_Check(_obj1
)) {
712 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
715 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
719 wxPy_BEGIN_ALLOW_THREADS
;
720 _result
= (bool )wxFileSystemHandler_CanOpen(_arg0
,*_arg1
);
722 wxPy_END_ALLOW_THREADS
;
723 } _resultobj
= Py_BuildValue("i",_result
);
731 #define wxFileSystemHandler_OpenFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->OpenFile(_swigarg0,_swigarg1))
732 static PyObject
*_wrap_wxFileSystemHandler_OpenFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
733 PyObject
* _resultobj
;
735 wxPyFileSystemHandler
* _arg0
;
736 wxFileSystem
* _arg1
;
738 PyObject
* _argo0
= 0;
739 PyObject
* _argo1
= 0;
740 PyObject
* _obj2
= 0;
741 char *_kwnames
[] = { "self","fs","location", NULL
};
744 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxFileSystemHandler_OpenFile",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
747 if (_argo0
== Py_None
) { _arg0
= NULL
; }
748 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileSystemHandler_p")) {
749 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileSystemHandler_OpenFile. Expected _wxPyFileSystemHandler_p.");
754 if (_argo1
== Py_None
) { _arg1
= NULL
; }
755 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFileSystem_p")) {
756 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFileSystemHandler_OpenFile. Expected _wxFileSystem_p.");
761 #if PYTHON_API_VERSION >= 1009
762 char* tmpPtr
; int tmpSize
;
763 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
764 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
767 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
769 _arg2
= new wxString(tmpPtr
, tmpSize
);
771 if (!PyString_Check(_obj2
)) {
772 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
775 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
779 wxPy_BEGIN_ALLOW_THREADS
;
780 _result
= (wxFSFile
*)wxFileSystemHandler_OpenFile(_arg0
,*_arg1
,*_arg2
);
782 wxPy_END_ALLOW_THREADS
;
783 }{ _resultobj
= wxPyMake_wxObject(_result
); }
791 #define wxFileSystemHandler_FindFirst(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindFirst(_swigarg0,_swigarg1))
792 static PyObject
*_wrap_wxFileSystemHandler_FindFirst(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
793 PyObject
* _resultobj
;
795 wxPyFileSystemHandler
* _arg0
;
797 int _arg2
= (int ) 0;
798 PyObject
* _argo0
= 0;
799 PyObject
* _obj1
= 0;
800 char *_kwnames
[] = { "self","spec","flags", NULL
};
803 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxFileSystemHandler_FindFirst",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
806 if (_argo0
== Py_None
) { _arg0
= NULL
; }
807 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileSystemHandler_p")) {
808 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileSystemHandler_FindFirst. Expected _wxPyFileSystemHandler_p.");
813 #if PYTHON_API_VERSION >= 1009
814 char* tmpPtr
; int tmpSize
;
815 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
816 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
819 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
821 _arg1
= new wxString(tmpPtr
, tmpSize
);
823 if (!PyString_Check(_obj1
)) {
824 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
827 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
831 wxPy_BEGIN_ALLOW_THREADS
;
832 _result
= new wxString (wxFileSystemHandler_FindFirst(_arg0
,*_arg1
,_arg2
));
834 wxPy_END_ALLOW_THREADS
;
836 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
848 #define wxFileSystemHandler_FindNext(_swigobj) (_swigobj->FindNext())
849 static PyObject
*_wrap_wxFileSystemHandler_FindNext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
850 PyObject
* _resultobj
;
852 wxPyFileSystemHandler
* _arg0
;
853 PyObject
* _argo0
= 0;
854 char *_kwnames
[] = { "self", NULL
};
857 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFileSystemHandler_FindNext",_kwnames
,&_argo0
))
860 if (_argo0
== Py_None
) { _arg0
= NULL
; }
861 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileSystemHandler_p")) {
862 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileSystemHandler_FindNext. Expected _wxPyFileSystemHandler_p.");
867 wxPy_BEGIN_ALLOW_THREADS
;
868 _result
= new wxString (wxFileSystemHandler_FindNext(_arg0
));
870 wxPy_END_ALLOW_THREADS
;
872 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
880 #define wxFileSystemHandler_GetProtocol(_swigobj,_swigarg0) (_swigobj->GetProtocol(_swigarg0))
881 static PyObject
*_wrap_wxFileSystemHandler_GetProtocol(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
882 PyObject
* _resultobj
;
884 wxPyFileSystemHandler
* _arg0
;
886 PyObject
* _argo0
= 0;
887 PyObject
* _obj1
= 0;
888 char *_kwnames
[] = { "self","location", NULL
};
891 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFileSystemHandler_GetProtocol",_kwnames
,&_argo0
,&_obj1
))
894 if (_argo0
== Py_None
) { _arg0
= NULL
; }
895 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileSystemHandler_p")) {
896 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileSystemHandler_GetProtocol. Expected _wxPyFileSystemHandler_p.");
901 #if PYTHON_API_VERSION >= 1009
902 char* tmpPtr
; int tmpSize
;
903 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
904 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
907 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
909 _arg1
= new wxString(tmpPtr
, tmpSize
);
911 if (!PyString_Check(_obj1
)) {
912 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
915 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
919 wxPy_BEGIN_ALLOW_THREADS
;
920 _result
= new wxString (wxFileSystemHandler_GetProtocol(_arg0
,*_arg1
));
922 wxPy_END_ALLOW_THREADS
;
924 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
936 #define wxFileSystemHandler_GetLeftLocation(_swigobj,_swigarg0) (_swigobj->GetLeftLocation(_swigarg0))
937 static PyObject
*_wrap_wxFileSystemHandler_GetLeftLocation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
938 PyObject
* _resultobj
;
940 wxPyFileSystemHandler
* _arg0
;
942 PyObject
* _argo0
= 0;
943 PyObject
* _obj1
= 0;
944 char *_kwnames
[] = { "self","location", NULL
};
947 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFileSystemHandler_GetLeftLocation",_kwnames
,&_argo0
,&_obj1
))
950 if (_argo0
== Py_None
) { _arg0
= NULL
; }
951 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileSystemHandler_p")) {
952 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileSystemHandler_GetLeftLocation. Expected _wxPyFileSystemHandler_p.");
957 #if PYTHON_API_VERSION >= 1009
958 char* tmpPtr
; int tmpSize
;
959 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
960 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
963 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
965 _arg1
= new wxString(tmpPtr
, tmpSize
);
967 if (!PyString_Check(_obj1
)) {
968 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
971 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
975 wxPy_BEGIN_ALLOW_THREADS
;
976 _result
= new wxString (wxFileSystemHandler_GetLeftLocation(_arg0
,*_arg1
));
978 wxPy_END_ALLOW_THREADS
;
980 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
992 #define wxFileSystemHandler_GetAnchor(_swigobj,_swigarg0) (_swigobj->GetAnchor(_swigarg0))
993 static PyObject
*_wrap_wxFileSystemHandler_GetAnchor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
994 PyObject
* _resultobj
;
996 wxPyFileSystemHandler
* _arg0
;
998 PyObject
* _argo0
= 0;
999 PyObject
* _obj1
= 0;
1000 char *_kwnames
[] = { "self","location", NULL
};
1003 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFileSystemHandler_GetAnchor",_kwnames
,&_argo0
,&_obj1
))
1006 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1007 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileSystemHandler_p")) {
1008 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileSystemHandler_GetAnchor. Expected _wxPyFileSystemHandler_p.");
1013 #if PYTHON_API_VERSION >= 1009
1014 char* tmpPtr
; int tmpSize
;
1015 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1016 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1019 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1021 _arg1
= new wxString(tmpPtr
, tmpSize
);
1023 if (!PyString_Check(_obj1
)) {
1024 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1027 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1031 wxPy_BEGIN_ALLOW_THREADS
;
1032 _result
= new wxString (wxFileSystemHandler_GetAnchor(_arg0
,*_arg1
));
1034 wxPy_END_ALLOW_THREADS
;
1036 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1048 #define wxFileSystemHandler_GetRightLocation(_swigobj,_swigarg0) (_swigobj->GetRightLocation(_swigarg0))
1049 static PyObject
*_wrap_wxFileSystemHandler_GetRightLocation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1050 PyObject
* _resultobj
;
1052 wxPyFileSystemHandler
* _arg0
;
1054 PyObject
* _argo0
= 0;
1055 PyObject
* _obj1
= 0;
1056 char *_kwnames
[] = { "self","location", NULL
};
1059 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFileSystemHandler_GetRightLocation",_kwnames
,&_argo0
,&_obj1
))
1062 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1063 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileSystemHandler_p")) {
1064 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileSystemHandler_GetRightLocation. Expected _wxPyFileSystemHandler_p.");
1069 #if PYTHON_API_VERSION >= 1009
1070 char* tmpPtr
; int tmpSize
;
1071 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1072 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1075 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1077 _arg1
= new wxString(tmpPtr
, tmpSize
);
1079 if (!PyString_Check(_obj1
)) {
1080 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1083 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1087 wxPy_BEGIN_ALLOW_THREADS
;
1088 _result
= new wxString (wxFileSystemHandler_GetRightLocation(_arg0
,*_arg1
));
1090 wxPy_END_ALLOW_THREADS
;
1092 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1104 #define wxFileSystemHandler_GetMimeTypeFromExt(_swigobj,_swigarg0) (_swigobj->GetMimeTypeFromExt(_swigarg0))
1105 static PyObject
*_wrap_wxFileSystemHandler_GetMimeTypeFromExt(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1106 PyObject
* _resultobj
;
1108 wxPyFileSystemHandler
* _arg0
;
1110 PyObject
* _argo0
= 0;
1111 PyObject
* _obj1
= 0;
1112 char *_kwnames
[] = { "self","location", NULL
};
1115 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFileSystemHandler_GetMimeTypeFromExt",_kwnames
,&_argo0
,&_obj1
))
1118 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1119 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileSystemHandler_p")) {
1120 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileSystemHandler_GetMimeTypeFromExt. Expected _wxPyFileSystemHandler_p.");
1125 #if PYTHON_API_VERSION >= 1009
1126 char* tmpPtr
; int tmpSize
;
1127 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1128 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1131 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1133 _arg1
= new wxString(tmpPtr
, tmpSize
);
1135 if (!PyString_Check(_obj1
)) {
1136 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1139 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1143 wxPy_BEGIN_ALLOW_THREADS
;
1144 _result
= new wxString (wxFileSystemHandler_GetMimeTypeFromExt(_arg0
,*_arg1
));
1146 wxPy_END_ALLOW_THREADS
;
1148 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1160 static void *SwigwxFileSystemTowxObject(void *ptr
) {
1163 src
= (wxFileSystem
*) ptr
;
1164 dest
= (wxObject
*) src
;
1165 return (void *) dest
;
1168 #define new_wxFileSystem() (new wxFileSystem())
1169 static PyObject
*_wrap_new_wxFileSystem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1170 PyObject
* _resultobj
;
1171 wxFileSystem
* _result
;
1172 char *_kwnames
[] = { NULL
};
1176 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxFileSystem",_kwnames
))
1179 wxPy_BEGIN_ALLOW_THREADS
;
1180 _result
= (wxFileSystem
*)new_wxFileSystem();
1182 wxPy_END_ALLOW_THREADS
;
1184 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFileSystem_p");
1185 _resultobj
= Py_BuildValue("s",_ptemp
);
1188 _resultobj
= Py_None
;
1193 #define wxFileSystem_ChangePathTo(_swigobj,_swigarg0,_swigarg1) (_swigobj->ChangePathTo(_swigarg0,_swigarg1))
1194 static PyObject
*_wrap_wxFileSystem_ChangePathTo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1195 PyObject
* _resultobj
;
1196 wxFileSystem
* _arg0
;
1198 bool _arg2
= (bool ) FALSE
;
1199 PyObject
* _argo0
= 0;
1200 PyObject
* _obj1
= 0;
1201 int tempbool2
= (int) FALSE
;
1202 char *_kwnames
[] = { "self","location","is_dir", NULL
};
1205 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxFileSystem_ChangePathTo",_kwnames
,&_argo0
,&_obj1
,&tempbool2
))
1208 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1209 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFileSystem_p")) {
1210 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileSystem_ChangePathTo. Expected _wxFileSystem_p.");
1215 #if PYTHON_API_VERSION >= 1009
1216 char* tmpPtr
; int tmpSize
;
1217 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1218 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1221 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1223 _arg1
= new wxString(tmpPtr
, tmpSize
);
1225 if (!PyString_Check(_obj1
)) {
1226 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1229 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1232 _arg2
= (bool ) tempbool2
;
1234 wxPy_BEGIN_ALLOW_THREADS
;
1235 wxFileSystem_ChangePathTo(_arg0
,*_arg1
,_arg2
);
1237 wxPy_END_ALLOW_THREADS
;
1238 } Py_INCREF(Py_None
);
1239 _resultobj
= Py_None
;
1247 #define wxFileSystem_GetPath(_swigobj) (_swigobj->GetPath())
1248 static PyObject
*_wrap_wxFileSystem_GetPath(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1249 PyObject
* _resultobj
;
1251 wxFileSystem
* _arg0
;
1252 PyObject
* _argo0
= 0;
1253 char *_kwnames
[] = { "self", NULL
};
1256 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFileSystem_GetPath",_kwnames
,&_argo0
))
1259 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1260 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFileSystem_p")) {
1261 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileSystem_GetPath. Expected _wxFileSystem_p.");
1266 wxPy_BEGIN_ALLOW_THREADS
;
1267 _result
= new wxString (wxFileSystem_GetPath(_arg0
));
1269 wxPy_END_ALLOW_THREADS
;
1271 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1279 #define wxFileSystem_OpenFile(_swigobj,_swigarg0) (_swigobj->OpenFile(_swigarg0))
1280 static PyObject
*_wrap_wxFileSystem_OpenFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1281 PyObject
* _resultobj
;
1283 wxFileSystem
* _arg0
;
1285 PyObject
* _argo0
= 0;
1286 PyObject
* _obj1
= 0;
1287 char *_kwnames
[] = { "self","location", NULL
};
1290 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFileSystem_OpenFile",_kwnames
,&_argo0
,&_obj1
))
1293 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1294 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFileSystem_p")) {
1295 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileSystem_OpenFile. Expected _wxFileSystem_p.");
1300 #if PYTHON_API_VERSION >= 1009
1301 char* tmpPtr
; int tmpSize
;
1302 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1303 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1306 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1308 _arg1
= new wxString(tmpPtr
, tmpSize
);
1310 if (!PyString_Check(_obj1
)) {
1311 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1314 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1318 wxPy_BEGIN_ALLOW_THREADS
;
1319 _result
= (wxFSFile
*)wxFileSystem_OpenFile(_arg0
,*_arg1
);
1321 wxPy_END_ALLOW_THREADS
;
1322 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1330 #define wxFileSystem_FindFirst(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindFirst(_swigarg0,_swigarg1))
1331 static PyObject
*_wrap_wxFileSystem_FindFirst(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1332 PyObject
* _resultobj
;
1334 wxFileSystem
* _arg0
;
1336 int _arg2
= (int ) 0;
1337 PyObject
* _argo0
= 0;
1338 PyObject
* _obj1
= 0;
1339 char *_kwnames
[] = { "self","spec","flags", NULL
};
1342 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxFileSystem_FindFirst",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
1345 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1346 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFileSystem_p")) {
1347 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileSystem_FindFirst. Expected _wxFileSystem_p.");
1352 #if PYTHON_API_VERSION >= 1009
1353 char* tmpPtr
; int tmpSize
;
1354 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1355 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1358 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1360 _arg1
= new wxString(tmpPtr
, tmpSize
);
1362 if (!PyString_Check(_obj1
)) {
1363 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1366 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1370 wxPy_BEGIN_ALLOW_THREADS
;
1371 _result
= new wxString (wxFileSystem_FindFirst(_arg0
,*_arg1
,_arg2
));
1373 wxPy_END_ALLOW_THREADS
;
1375 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1387 #define wxFileSystem_FindNext(_swigobj) (_swigobj->FindNext())
1388 static PyObject
*_wrap_wxFileSystem_FindNext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1389 PyObject
* _resultobj
;
1391 wxFileSystem
* _arg0
;
1392 PyObject
* _argo0
= 0;
1393 char *_kwnames
[] = { "self", NULL
};
1396 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFileSystem_FindNext",_kwnames
,&_argo0
))
1399 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1400 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFileSystem_p")) {
1401 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileSystem_FindNext. Expected _wxFileSystem_p.");
1406 wxPy_BEGIN_ALLOW_THREADS
;
1407 _result
= new wxString (wxFileSystem_FindNext(_arg0
));
1409 wxPy_END_ALLOW_THREADS
;
1411 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1419 static PyObject
*_wrap_wxFileSystem_AddHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1420 PyObject
* _resultobj
;
1421 wxFileSystemHandler
* _arg0
;
1422 PyObject
* _argo0
= 0;
1423 char *_kwnames
[] = { "handler", NULL
};
1426 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFileSystem_AddHandler",_kwnames
,&_argo0
))
1429 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1430 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFileSystemHandler_p")) {
1431 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileSystem_AddHandler. Expected _wxFileSystemHandler_p.");
1436 wxPy_BEGIN_ALLOW_THREADS
;
1437 wxFileSystem::AddHandler(_arg0
);
1439 wxPy_END_ALLOW_THREADS
;
1440 } Py_INCREF(Py_None
);
1441 _resultobj
= Py_None
;
1445 static PyObject
*_wrap_wxFileSystem_CleanUpHandlers(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1446 PyObject
* _resultobj
;
1447 char *_kwnames
[] = { NULL
};
1450 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxFileSystem_CleanUpHandlers",_kwnames
))
1453 wxPy_BEGIN_ALLOW_THREADS
;
1454 wxFileSystem::CleanUpHandlers();
1456 wxPy_END_ALLOW_THREADS
;
1457 } Py_INCREF(Py_None
);
1458 _resultobj
= Py_None
;
1462 static void *SwigwxInternetFSHandlerTowxFileSystemHandler(void *ptr
) {
1463 wxInternetFSHandler
*src
;
1464 wxFileSystemHandler
*dest
;
1465 src
= (wxInternetFSHandler
*) ptr
;
1466 dest
= (wxFileSystemHandler
*) src
;
1467 return (void *) dest
;
1470 static void *SwigwxInternetFSHandlerTowxObject(void *ptr
) {
1471 wxInternetFSHandler
*src
;
1473 src
= (wxInternetFSHandler
*) ptr
;
1474 dest
= (wxObject
*) src
;
1475 return (void *) dest
;
1478 #define new_wxInternetFSHandler() (new wxInternetFSHandler())
1479 static PyObject
*_wrap_new_wxInternetFSHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1480 PyObject
* _resultobj
;
1481 wxInternetFSHandler
* _result
;
1482 char *_kwnames
[] = { NULL
};
1486 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxInternetFSHandler",_kwnames
))
1489 wxPy_BEGIN_ALLOW_THREADS
;
1490 _result
= (wxInternetFSHandler
*)new_wxInternetFSHandler();
1492 wxPy_END_ALLOW_THREADS
;
1494 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxInternetFSHandler_p");
1495 _resultobj
= Py_BuildValue("s",_ptemp
);
1498 _resultobj
= Py_None
;
1503 #define wxInternetFSHandler_CanOpen(_swigobj,_swigarg0) (_swigobj->CanOpen(_swigarg0))
1504 static PyObject
*_wrap_wxInternetFSHandler_CanOpen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1505 PyObject
* _resultobj
;
1507 wxInternetFSHandler
* _arg0
;
1509 PyObject
* _argo0
= 0;
1510 PyObject
* _obj1
= 0;
1511 char *_kwnames
[] = { "self","location", NULL
};
1514 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxInternetFSHandler_CanOpen",_kwnames
,&_argo0
,&_obj1
))
1517 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1518 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxInternetFSHandler_p")) {
1519 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxInternetFSHandler_CanOpen. Expected _wxInternetFSHandler_p.");
1524 #if PYTHON_API_VERSION >= 1009
1525 char* tmpPtr
; int tmpSize
;
1526 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1527 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1530 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1532 _arg1
= new wxString(tmpPtr
, tmpSize
);
1534 if (!PyString_Check(_obj1
)) {
1535 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1538 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1542 wxPy_BEGIN_ALLOW_THREADS
;
1543 _result
= (bool )wxInternetFSHandler_CanOpen(_arg0
,*_arg1
);
1545 wxPy_END_ALLOW_THREADS
;
1546 } _resultobj
= Py_BuildValue("i",_result
);
1554 #define wxInternetFSHandler_OpenFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->OpenFile(_swigarg0,_swigarg1))
1555 static PyObject
*_wrap_wxInternetFSHandler_OpenFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1556 PyObject
* _resultobj
;
1558 wxInternetFSHandler
* _arg0
;
1559 wxFileSystem
* _arg1
;
1561 PyObject
* _argo0
= 0;
1562 PyObject
* _argo1
= 0;
1563 PyObject
* _obj2
= 0;
1564 char *_kwnames
[] = { "self","fs","location", NULL
};
1567 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxInternetFSHandler_OpenFile",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
1570 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1571 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxInternetFSHandler_p")) {
1572 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxInternetFSHandler_OpenFile. Expected _wxInternetFSHandler_p.");
1577 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1578 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFileSystem_p")) {
1579 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxInternetFSHandler_OpenFile. Expected _wxFileSystem_p.");
1584 #if PYTHON_API_VERSION >= 1009
1585 char* tmpPtr
; int tmpSize
;
1586 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
1587 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1590 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
1592 _arg2
= new wxString(tmpPtr
, tmpSize
);
1594 if (!PyString_Check(_obj2
)) {
1595 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1598 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
1602 wxPy_BEGIN_ALLOW_THREADS
;
1603 _result
= (wxFSFile
*)wxInternetFSHandler_OpenFile(_arg0
,*_arg1
,*_arg2
);
1605 wxPy_END_ALLOW_THREADS
;
1606 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1614 static void *SwigwxZipFSHandlerTowxFileSystemHandler(void *ptr
) {
1615 wxZipFSHandler
*src
;
1616 wxFileSystemHandler
*dest
;
1617 src
= (wxZipFSHandler
*) ptr
;
1618 dest
= (wxFileSystemHandler
*) src
;
1619 return (void *) dest
;
1622 static void *SwigwxZipFSHandlerTowxObject(void *ptr
) {
1623 wxZipFSHandler
*src
;
1625 src
= (wxZipFSHandler
*) ptr
;
1626 dest
= (wxObject
*) src
;
1627 return (void *) dest
;
1630 #define new_wxZipFSHandler() (new wxZipFSHandler())
1631 static PyObject
*_wrap_new_wxZipFSHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1632 PyObject
* _resultobj
;
1633 wxZipFSHandler
* _result
;
1634 char *_kwnames
[] = { NULL
};
1638 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxZipFSHandler",_kwnames
))
1641 wxPy_BEGIN_ALLOW_THREADS
;
1642 _result
= (wxZipFSHandler
*)new_wxZipFSHandler();
1644 wxPy_END_ALLOW_THREADS
;
1646 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxZipFSHandler_p");
1647 _resultobj
= Py_BuildValue("s",_ptemp
);
1650 _resultobj
= Py_None
;
1655 #define wxZipFSHandler_CanOpen(_swigobj,_swigarg0) (_swigobj->CanOpen(_swigarg0))
1656 static PyObject
*_wrap_wxZipFSHandler_CanOpen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1657 PyObject
* _resultobj
;
1659 wxZipFSHandler
* _arg0
;
1661 PyObject
* _argo0
= 0;
1662 PyObject
* _obj1
= 0;
1663 char *_kwnames
[] = { "self","location", NULL
};
1666 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxZipFSHandler_CanOpen",_kwnames
,&_argo0
,&_obj1
))
1669 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1670 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxZipFSHandler_p")) {
1671 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxZipFSHandler_CanOpen. Expected _wxZipFSHandler_p.");
1676 #if PYTHON_API_VERSION >= 1009
1677 char* tmpPtr
; int tmpSize
;
1678 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1679 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1682 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1684 _arg1
= new wxString(tmpPtr
, tmpSize
);
1686 if (!PyString_Check(_obj1
)) {
1687 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1690 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1694 wxPy_BEGIN_ALLOW_THREADS
;
1695 _result
= (bool )wxZipFSHandler_CanOpen(_arg0
,*_arg1
);
1697 wxPy_END_ALLOW_THREADS
;
1698 } _resultobj
= Py_BuildValue("i",_result
);
1706 #define wxZipFSHandler_OpenFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->OpenFile(_swigarg0,_swigarg1))
1707 static PyObject
*_wrap_wxZipFSHandler_OpenFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1708 PyObject
* _resultobj
;
1710 wxZipFSHandler
* _arg0
;
1711 wxFileSystem
* _arg1
;
1713 PyObject
* _argo0
= 0;
1714 PyObject
* _argo1
= 0;
1715 PyObject
* _obj2
= 0;
1716 char *_kwnames
[] = { "self","fs","location", NULL
};
1719 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxZipFSHandler_OpenFile",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
1722 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1723 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxZipFSHandler_p")) {
1724 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxZipFSHandler_OpenFile. Expected _wxZipFSHandler_p.");
1729 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1730 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFileSystem_p")) {
1731 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxZipFSHandler_OpenFile. Expected _wxFileSystem_p.");
1736 #if PYTHON_API_VERSION >= 1009
1737 char* tmpPtr
; int tmpSize
;
1738 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
1739 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1742 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
1744 _arg2
= new wxString(tmpPtr
, tmpSize
);
1746 if (!PyString_Check(_obj2
)) {
1747 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1750 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
1754 wxPy_BEGIN_ALLOW_THREADS
;
1755 _result
= (wxFSFile
*)wxZipFSHandler_OpenFile(_arg0
,*_arg1
,*_arg2
);
1757 wxPy_END_ALLOW_THREADS
;
1758 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1766 #define wxZipFSHandler_FindFirst(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindFirst(_swigarg0,_swigarg1))
1767 static PyObject
*_wrap_wxZipFSHandler_FindFirst(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1768 PyObject
* _resultobj
;
1770 wxZipFSHandler
* _arg0
;
1772 int _arg2
= (int ) 0;
1773 PyObject
* _argo0
= 0;
1774 PyObject
* _obj1
= 0;
1775 char *_kwnames
[] = { "self","spec","flags", NULL
};
1778 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxZipFSHandler_FindFirst",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
1781 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1782 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxZipFSHandler_p")) {
1783 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxZipFSHandler_FindFirst. Expected _wxZipFSHandler_p.");
1788 #if PYTHON_API_VERSION >= 1009
1789 char* tmpPtr
; int tmpSize
;
1790 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1791 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1794 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1796 _arg1
= new wxString(tmpPtr
, tmpSize
);
1798 if (!PyString_Check(_obj1
)) {
1799 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1802 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1806 wxPy_BEGIN_ALLOW_THREADS
;
1807 _result
= new wxString (wxZipFSHandler_FindFirst(_arg0
,*_arg1
,_arg2
));
1809 wxPy_END_ALLOW_THREADS
;
1811 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1823 #define wxZipFSHandler_FindNext(_swigobj) (_swigobj->FindNext())
1824 static PyObject
*_wrap_wxZipFSHandler_FindNext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1825 PyObject
* _resultobj
;
1827 wxZipFSHandler
* _arg0
;
1828 PyObject
* _argo0
= 0;
1829 char *_kwnames
[] = { "self", NULL
};
1832 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxZipFSHandler_FindNext",_kwnames
,&_argo0
))
1835 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1836 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxZipFSHandler_p")) {
1837 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxZipFSHandler_FindNext. Expected _wxZipFSHandler_p.");
1842 wxPy_BEGIN_ALLOW_THREADS
;
1843 _result
= new wxString (wxZipFSHandler_FindNext(_arg0
));
1845 wxPy_END_ALLOW_THREADS
;
1847 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1855 static void *SwigwxMemoryFSHandlerTowxFileSystemHandler(void *ptr
) {
1856 wxMemoryFSHandler
*src
;
1857 wxFileSystemHandler
*dest
;
1858 src
= (wxMemoryFSHandler
*) ptr
;
1859 dest
= (wxFileSystemHandler
*) src
;
1860 return (void *) dest
;
1863 static void *SwigwxMemoryFSHandlerTowxObject(void *ptr
) {
1864 wxMemoryFSHandler
*src
;
1866 src
= (wxMemoryFSHandler
*) ptr
;
1867 dest
= (wxObject
*) src
;
1868 return (void *) dest
;
1871 #define new_wxMemoryFSHandler() (new wxMemoryFSHandler())
1872 static PyObject
*_wrap_new_wxMemoryFSHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1873 PyObject
* _resultobj
;
1874 wxMemoryFSHandler
* _result
;
1875 char *_kwnames
[] = { NULL
};
1879 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxMemoryFSHandler",_kwnames
))
1882 wxPy_BEGIN_ALLOW_THREADS
;
1883 _result
= (wxMemoryFSHandler
*)new_wxMemoryFSHandler();
1885 wxPy_END_ALLOW_THREADS
;
1887 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMemoryFSHandler_p");
1888 _resultobj
= Py_BuildValue("s",_ptemp
);
1891 _resultobj
= Py_None
;
1896 static PyObject
*_wrap_wxMemoryFSHandler_RemoveFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1897 PyObject
* _resultobj
;
1899 PyObject
* _obj0
= 0;
1900 char *_kwnames
[] = { "filename", NULL
};
1903 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMemoryFSHandler_RemoveFile",_kwnames
,&_obj0
))
1906 #if PYTHON_API_VERSION >= 1009
1907 char* tmpPtr
; int tmpSize
;
1908 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
1909 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1912 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
1914 _arg0
= new wxString(tmpPtr
, tmpSize
);
1916 if (!PyString_Check(_obj0
)) {
1917 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1920 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
1924 wxPy_BEGIN_ALLOW_THREADS
;
1925 wxMemoryFSHandler::RemoveFile(*_arg0
);
1927 wxPy_END_ALLOW_THREADS
;
1928 } Py_INCREF(Py_None
);
1929 _resultobj
= Py_None
;
1937 #define wxMemoryFSHandler_CanOpen(_swigobj,_swigarg0) (_swigobj->CanOpen(_swigarg0))
1938 static PyObject
*_wrap_wxMemoryFSHandler_CanOpen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1939 PyObject
* _resultobj
;
1941 wxMemoryFSHandler
* _arg0
;
1943 PyObject
* _argo0
= 0;
1944 PyObject
* _obj1
= 0;
1945 char *_kwnames
[] = { "self","location", NULL
};
1948 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMemoryFSHandler_CanOpen",_kwnames
,&_argo0
,&_obj1
))
1951 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1952 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMemoryFSHandler_p")) {
1953 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryFSHandler_CanOpen. Expected _wxMemoryFSHandler_p.");
1958 #if PYTHON_API_VERSION >= 1009
1959 char* tmpPtr
; int tmpSize
;
1960 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1961 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1964 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1966 _arg1
= new wxString(tmpPtr
, tmpSize
);
1968 if (!PyString_Check(_obj1
)) {
1969 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1972 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1976 wxPy_BEGIN_ALLOW_THREADS
;
1977 _result
= (bool )wxMemoryFSHandler_CanOpen(_arg0
,*_arg1
);
1979 wxPy_END_ALLOW_THREADS
;
1980 } _resultobj
= Py_BuildValue("i",_result
);
1988 #define wxMemoryFSHandler_OpenFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->OpenFile(_swigarg0,_swigarg1))
1989 static PyObject
*_wrap_wxMemoryFSHandler_OpenFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1990 PyObject
* _resultobj
;
1992 wxMemoryFSHandler
* _arg0
;
1993 wxFileSystem
* _arg1
;
1995 PyObject
* _argo0
= 0;
1996 PyObject
* _argo1
= 0;
1997 PyObject
* _obj2
= 0;
1998 char *_kwnames
[] = { "self","fs","location", NULL
};
2001 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxMemoryFSHandler_OpenFile",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
2004 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2005 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMemoryFSHandler_p")) {
2006 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryFSHandler_OpenFile. Expected _wxMemoryFSHandler_p.");
2011 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2012 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFileSystem_p")) {
2013 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMemoryFSHandler_OpenFile. Expected _wxFileSystem_p.");
2018 #if PYTHON_API_VERSION >= 1009
2019 char* tmpPtr
; int tmpSize
;
2020 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
2021 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2024 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
2026 _arg2
= new wxString(tmpPtr
, tmpSize
);
2028 if (!PyString_Check(_obj2
)) {
2029 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2032 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
2036 wxPy_BEGIN_ALLOW_THREADS
;
2037 _result
= (wxFSFile
*)wxMemoryFSHandler_OpenFile(_arg0
,*_arg1
,*_arg2
);
2039 wxPy_END_ALLOW_THREADS
;
2040 }{ _resultobj
= wxPyMake_wxObject(_result
); }
2048 #define wxMemoryFSHandler_FindFirst(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindFirst(_swigarg0,_swigarg1))
2049 static PyObject
*_wrap_wxMemoryFSHandler_FindFirst(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2050 PyObject
* _resultobj
;
2052 wxMemoryFSHandler
* _arg0
;
2054 int _arg2
= (int ) 0;
2055 PyObject
* _argo0
= 0;
2056 PyObject
* _obj1
= 0;
2057 char *_kwnames
[] = { "self","spec","flags", NULL
};
2060 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxMemoryFSHandler_FindFirst",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
2063 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2064 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMemoryFSHandler_p")) {
2065 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryFSHandler_FindFirst. Expected _wxMemoryFSHandler_p.");
2070 #if PYTHON_API_VERSION >= 1009
2071 char* tmpPtr
; int tmpSize
;
2072 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2073 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2076 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2078 _arg1
= new wxString(tmpPtr
, tmpSize
);
2080 if (!PyString_Check(_obj1
)) {
2081 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2084 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2088 wxPy_BEGIN_ALLOW_THREADS
;
2089 _result
= new wxString (wxMemoryFSHandler_FindFirst(_arg0
,*_arg1
,_arg2
));
2091 wxPy_END_ALLOW_THREADS
;
2093 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2105 #define wxMemoryFSHandler_FindNext(_swigobj) (_swigobj->FindNext())
2106 static PyObject
*_wrap_wxMemoryFSHandler_FindNext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2107 PyObject
* _resultobj
;
2109 wxMemoryFSHandler
* _arg0
;
2110 PyObject
* _argo0
= 0;
2111 char *_kwnames
[] = { "self", NULL
};
2114 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMemoryFSHandler_FindNext",_kwnames
,&_argo0
))
2117 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2118 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMemoryFSHandler_p")) {
2119 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryFSHandler_FindNext. Expected _wxMemoryFSHandler_p.");
2124 wxPy_BEGIN_ALLOW_THREADS
;
2125 _result
= new wxString (wxMemoryFSHandler_FindNext(_arg0
));
2127 wxPy_END_ALLOW_THREADS
;
2129 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2137 static PyMethodDef filesyscMethods
[] = {
2138 { "wxMemoryFSHandler_FindNext", (PyCFunction
) _wrap_wxMemoryFSHandler_FindNext
, METH_VARARGS
| METH_KEYWORDS
},
2139 { "wxMemoryFSHandler_FindFirst", (PyCFunction
) _wrap_wxMemoryFSHandler_FindFirst
, METH_VARARGS
| METH_KEYWORDS
},
2140 { "wxMemoryFSHandler_OpenFile", (PyCFunction
) _wrap_wxMemoryFSHandler_OpenFile
, METH_VARARGS
| METH_KEYWORDS
},
2141 { "wxMemoryFSHandler_CanOpen", (PyCFunction
) _wrap_wxMemoryFSHandler_CanOpen
, METH_VARARGS
| METH_KEYWORDS
},
2142 { "wxMemoryFSHandler_RemoveFile", (PyCFunction
) _wrap_wxMemoryFSHandler_RemoveFile
, METH_VARARGS
| METH_KEYWORDS
},
2143 { "new_wxMemoryFSHandler", (PyCFunction
) _wrap_new_wxMemoryFSHandler
, METH_VARARGS
| METH_KEYWORDS
},
2144 { "wxZipFSHandler_FindNext", (PyCFunction
) _wrap_wxZipFSHandler_FindNext
, METH_VARARGS
| METH_KEYWORDS
},
2145 { "wxZipFSHandler_FindFirst", (PyCFunction
) _wrap_wxZipFSHandler_FindFirst
, METH_VARARGS
| METH_KEYWORDS
},
2146 { "wxZipFSHandler_OpenFile", (PyCFunction
) _wrap_wxZipFSHandler_OpenFile
, METH_VARARGS
| METH_KEYWORDS
},
2147 { "wxZipFSHandler_CanOpen", (PyCFunction
) _wrap_wxZipFSHandler_CanOpen
, METH_VARARGS
| METH_KEYWORDS
},
2148 { "new_wxZipFSHandler", (PyCFunction
) _wrap_new_wxZipFSHandler
, METH_VARARGS
| METH_KEYWORDS
},
2149 { "wxInternetFSHandler_OpenFile", (PyCFunction
) _wrap_wxInternetFSHandler_OpenFile
, METH_VARARGS
| METH_KEYWORDS
},
2150 { "wxInternetFSHandler_CanOpen", (PyCFunction
) _wrap_wxInternetFSHandler_CanOpen
, METH_VARARGS
| METH_KEYWORDS
},
2151 { "new_wxInternetFSHandler", (PyCFunction
) _wrap_new_wxInternetFSHandler
, METH_VARARGS
| METH_KEYWORDS
},
2152 { "wxFileSystem_CleanUpHandlers", (PyCFunction
) _wrap_wxFileSystem_CleanUpHandlers
, METH_VARARGS
| METH_KEYWORDS
},
2153 { "wxFileSystem_AddHandler", (PyCFunction
) _wrap_wxFileSystem_AddHandler
, METH_VARARGS
| METH_KEYWORDS
},
2154 { "wxFileSystem_FindNext", (PyCFunction
) _wrap_wxFileSystem_FindNext
, METH_VARARGS
| METH_KEYWORDS
},
2155 { "wxFileSystem_FindFirst", (PyCFunction
) _wrap_wxFileSystem_FindFirst
, METH_VARARGS
| METH_KEYWORDS
},
2156 { "wxFileSystem_OpenFile", (PyCFunction
) _wrap_wxFileSystem_OpenFile
, METH_VARARGS
| METH_KEYWORDS
},
2157 { "wxFileSystem_GetPath", (PyCFunction
) _wrap_wxFileSystem_GetPath
, METH_VARARGS
| METH_KEYWORDS
},
2158 { "wxFileSystem_ChangePathTo", (PyCFunction
) _wrap_wxFileSystem_ChangePathTo
, METH_VARARGS
| METH_KEYWORDS
},
2159 { "new_wxFileSystem", (PyCFunction
) _wrap_new_wxFileSystem
, METH_VARARGS
| METH_KEYWORDS
},
2160 { "wxFileSystemHandler_GetMimeTypeFromExt", (PyCFunction
) _wrap_wxFileSystemHandler_GetMimeTypeFromExt
, METH_VARARGS
| METH_KEYWORDS
},
2161 { "wxFileSystemHandler_GetRightLocation", (PyCFunction
) _wrap_wxFileSystemHandler_GetRightLocation
, METH_VARARGS
| METH_KEYWORDS
},
2162 { "wxFileSystemHandler_GetAnchor", (PyCFunction
) _wrap_wxFileSystemHandler_GetAnchor
, METH_VARARGS
| METH_KEYWORDS
},
2163 { "wxFileSystemHandler_GetLeftLocation", (PyCFunction
) _wrap_wxFileSystemHandler_GetLeftLocation
, METH_VARARGS
| METH_KEYWORDS
},
2164 { "wxFileSystemHandler_GetProtocol", (PyCFunction
) _wrap_wxFileSystemHandler_GetProtocol
, METH_VARARGS
| METH_KEYWORDS
},
2165 { "wxFileSystemHandler_FindNext", (PyCFunction
) _wrap_wxFileSystemHandler_FindNext
, METH_VARARGS
| METH_KEYWORDS
},
2166 { "wxFileSystemHandler_FindFirst", (PyCFunction
) _wrap_wxFileSystemHandler_FindFirst
, METH_VARARGS
| METH_KEYWORDS
},
2167 { "wxFileSystemHandler_OpenFile", (PyCFunction
) _wrap_wxFileSystemHandler_OpenFile
, METH_VARARGS
| METH_KEYWORDS
},
2168 { "wxFileSystemHandler_CanOpen", (PyCFunction
) _wrap_wxFileSystemHandler_CanOpen
, METH_VARARGS
| METH_KEYWORDS
},
2169 { "wxFileSystemHandler__setCallbackInfo", (PyCFunction
) _wrap_wxFileSystemHandler__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
2170 { "new_wxFileSystemHandler", (PyCFunction
) _wrap_new_wxFileSystemHandler
, METH_VARARGS
| METH_KEYWORDS
},
2171 { "wxFSFile_GetModificationTime", (PyCFunction
) _wrap_wxFSFile_GetModificationTime
, METH_VARARGS
| METH_KEYWORDS
},
2172 { "wxFSFile_GetAnchor", (PyCFunction
) _wrap_wxFSFile_GetAnchor
, METH_VARARGS
| METH_KEYWORDS
},
2173 { "wxFSFile_GetLocation", (PyCFunction
) _wrap_wxFSFile_GetLocation
, METH_VARARGS
| METH_KEYWORDS
},
2174 { "wxFSFile_GetMimeType", (PyCFunction
) _wrap_wxFSFile_GetMimeType
, METH_VARARGS
| METH_KEYWORDS
},
2175 { "wxFSFile_GetStream", (PyCFunction
) _wrap_wxFSFile_GetStream
, METH_VARARGS
| METH_KEYWORDS
},
2176 { "new_wxFSFile", (PyCFunction
) _wrap_new_wxFSFile
, METH_VARARGS
| METH_KEYWORDS
},
2177 { "__wxMemoryFSHandler_AddFile_Data", (PyCFunction
) _wrap___wxMemoryFSHandler_AddFile_Data
, METH_VARARGS
| METH_KEYWORDS
},
2178 { "__wxMemoryFSHandler_AddFile_wxBitmap", (PyCFunction
) _wrap___wxMemoryFSHandler_AddFile_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
2179 { "__wxMemoryFSHandler_AddFile_wxImage", (PyCFunction
) _wrap___wxMemoryFSHandler_AddFile_wxImage
, METH_VARARGS
| METH_KEYWORDS
},
2186 * This table is used by the pointer type-checker
2188 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
2189 { "_signed_long","_long",0},
2190 { "_wxPrintQuality","_wxCoord",0},
2191 { "_wxPrintQuality","_int",0},
2192 { "_wxPrintQuality","_signed_int",0},
2193 { "_wxPrintQuality","_unsigned_int",0},
2194 { "_wxPrintQuality","_wxWindowID",0},
2195 { "_wxPrintQuality","_uint",0},
2196 { "_wxPrintQuality","_EBool",0},
2197 { "_wxPrintQuality","_size_t",0},
2198 { "_wxPrintQuality","_time_t",0},
2199 { "_byte","_unsigned_char",0},
2200 { "_long","_unsigned_long",0},
2201 { "_long","_signed_long",0},
2202 { "_size_t","_wxCoord",0},
2203 { "_size_t","_wxPrintQuality",0},
2204 { "_size_t","_time_t",0},
2205 { "_size_t","_unsigned_int",0},
2206 { "_size_t","_int",0},
2207 { "_size_t","_wxWindowID",0},
2208 { "_size_t","_uint",0},
2209 { "_uint","_wxCoord",0},
2210 { "_uint","_wxPrintQuality",0},
2211 { "_uint","_time_t",0},
2212 { "_uint","_size_t",0},
2213 { "_uint","_unsigned_int",0},
2214 { "_uint","_int",0},
2215 { "_uint","_wxWindowID",0},
2216 { "_wxChar","_char",0},
2217 { "_char","_wxChar",0},
2218 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
2219 { "_EBool","_wxCoord",0},
2220 { "_EBool","_wxPrintQuality",0},
2221 { "_EBool","_signed_int",0},
2222 { "_EBool","_int",0},
2223 { "_EBool","_wxWindowID",0},
2224 { "_unsigned_long","_long",0},
2225 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
2226 { "_signed_int","_wxCoord",0},
2227 { "_signed_int","_wxPrintQuality",0},
2228 { "_signed_int","_EBool",0},
2229 { "_signed_int","_wxWindowID",0},
2230 { "_signed_int","_int",0},
2231 { "_WXTYPE","_wxDateTime_t",0},
2232 { "_WXTYPE","_short",0},
2233 { "_WXTYPE","_signed_short",0},
2234 { "_WXTYPE","_unsigned_short",0},
2235 { "_unsigned_short","_wxDateTime_t",0},
2236 { "_unsigned_short","_WXTYPE",0},
2237 { "_unsigned_short","_short",0},
2238 { "_wxObject","_wxMemoryFSHandler",SwigwxMemoryFSHandlerTowxObject
},
2239 { "_wxObject","_wxZipFSHandler",SwigwxZipFSHandlerTowxObject
},
2240 { "_wxObject","_wxInternetFSHandler",SwigwxInternetFSHandlerTowxObject
},
2241 { "_wxObject","_wxFileSystem",SwigwxFileSystemTowxObject
},
2242 { "_wxObject","_wxPyFileSystemHandler",SwigwxPyFileSystemHandlerTowxObject
},
2243 { "_wxObject","_wxFileSystemHandler",SwigwxFileSystemHandlerTowxObject
},
2244 { "_wxObject","_wxFSFile",SwigwxFSFileTowxObject
},
2245 { "_signed_short","_WXTYPE",0},
2246 { "_signed_short","_short",0},
2247 { "_unsigned_char","_byte",0},
2248 { "_unsigned_int","_wxCoord",0},
2249 { "_unsigned_int","_wxPrintQuality",0},
2250 { "_unsigned_int","_time_t",0},
2251 { "_unsigned_int","_size_t",0},
2252 { "_unsigned_int","_uint",0},
2253 { "_unsigned_int","_wxWindowID",0},
2254 { "_unsigned_int","_int",0},
2255 { "_short","_wxDateTime_t",0},
2256 { "_short","_WXTYPE",0},
2257 { "_short","_unsigned_short",0},
2258 { "_short","_signed_short",0},
2259 { "_wxFileSystemHandler","_wxMemoryFSHandler",SwigwxMemoryFSHandlerTowxFileSystemHandler
},
2260 { "_wxFileSystemHandler","_wxZipFSHandler",SwigwxZipFSHandlerTowxFileSystemHandler
},
2261 { "_wxFileSystemHandler","_wxInternetFSHandler",SwigwxInternetFSHandlerTowxFileSystemHandler
},
2262 { "_wxFileSystemHandler","_wxPyFileSystemHandler",SwigwxPyFileSystemHandlerTowxFileSystemHandler
},
2263 { "_wxWindowID","_wxCoord",0},
2264 { "_wxWindowID","_wxPrintQuality",0},
2265 { "_wxWindowID","_time_t",0},
2266 { "_wxWindowID","_size_t",0},
2267 { "_wxWindowID","_EBool",0},
2268 { "_wxWindowID","_uint",0},
2269 { "_wxWindowID","_int",0},
2270 { "_wxWindowID","_signed_int",0},
2271 { "_wxWindowID","_unsigned_int",0},
2272 { "_int","_wxCoord",0},
2273 { "_int","_wxPrintQuality",0},
2274 { "_int","_time_t",0},
2275 { "_int","_size_t",0},
2276 { "_int","_EBool",0},
2277 { "_int","_uint",0},
2278 { "_int","_wxWindowID",0},
2279 { "_int","_unsigned_int",0},
2280 { "_int","_signed_int",0},
2281 { "_wxDateTime_t","_unsigned_short",0},
2282 { "_wxDateTime_t","_short",0},
2283 { "_wxDateTime_t","_WXTYPE",0},
2284 { "_time_t","_wxCoord",0},
2285 { "_time_t","_wxPrintQuality",0},
2286 { "_time_t","_unsigned_int",0},
2287 { "_time_t","_int",0},
2288 { "_time_t","_wxWindowID",0},
2289 { "_time_t","_uint",0},
2290 { "_time_t","_size_t",0},
2291 { "_wxCoord","_int",0},
2292 { "_wxCoord","_signed_int",0},
2293 { "_wxCoord","_unsigned_int",0},
2294 { "_wxCoord","_wxWindowID",0},
2295 { "_wxCoord","_uint",0},
2296 { "_wxCoord","_EBool",0},
2297 { "_wxCoord","_size_t",0},
2298 { "_wxCoord","_time_t",0},
2299 { "_wxCoord","_wxPrintQuality",0},
2302 static PyObject
*SWIG_globals
;
2306 SWIGEXPORT(void) initfilesysc() {
2308 SWIG_globals
= SWIG_newvarlink();
2309 m
= Py_InitModule("filesysc", filesyscMethods
);
2310 d
= PyModule_GetDict(m
);
2312 wxPyPtrTypeMap_Add("wxFileSystemHandler", "wxPyFileSystemHandler");
2315 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
2316 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);