1 #############################################################################
2 ## Name: ext/filesys/XS/FileSystemHandler.xs
3 ## Purpose: XS for Wx::FileSystemhandler
4 ## Author: Mattia Barbon
7 ## RCS-ID: $Id: FileSystemHandler.xs 2393 2008-05-14 20:54:52Z mbarbon $
8 ## Copyright: (c) 2001-2008 Mattia Barbon
9 ## Licence: This program is free software; you can redistribute it and/or
10 ## modify it under the same terms as Perl itself
11 #############################################################################
13 #include <wx/filesys.h>
14 #include <wx/fs_inet.h>
15 #include <wx/fs_zip.h>
16 #include <wx/fs_mem.h>
20 MODULE=Wx PACKAGE=Wx::FileSystemHandler
25 wxFileSystemHandler::GetAnchor( location )
29 wxFileSystemHandler::GetLeftLocation( location )
33 wxFileSystemHandler::GetMimeTypeFromExt( location )
37 wxFileSystemHandler::GetProtocol( location )
41 wxFileSystemHandler::GetRightLocation( location )
46 MODULE=Wx PACKAGE=Wx::InternetFSHandler
51 wxInternetFSHandler::new()
55 MODULE=Wx PACKAGE=Wx::ZipFSHandler
60 MODULE=Wx PACKAGE=Wx::ArchiveFSHandler
62 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
65 wxArchiveFSHandler::new()
69 MODULE=Wx PACKAGE=Wx::MemoryFSHandler
72 wxMemoryFSHandler::new()
75 AddImageFile( name, image, type )
80 wxMemoryFSHandler::AddFile( name, *image, type );
83 AddBitmapFile( name, bitmap, type )
88 wxMemoryFSHandler::AddFile( name, *bitmap, type );
91 AddTextFile( name, string )
95 wxMemoryFSHandler::AddFile( name, string );
98 AddBinaryFile( name, scalar )
103 char* data = SvPV( scalar, len );
105 wxMemoryFSHandler::AddFile( name, data, len );
107 #if WXPERL_W_VERSION_GE( 2, 8, 5 )
110 AddTextFileWithMimeType( name, string, mimetype )
115 wxMemoryFSHandler::AddFileWithMimeType( name, string, mimetype );
118 AddBinaryFileWithMimeType( name, scalar, mimetype )
124 char* data = SvPV( scalar, len );
126 wxMemoryFSHandler::AddFileWithMimeType( name, data, len, mimetype );
134 wxMemoryFSHandler::RemoveFile( name );
136 MODULE=Wx PACKAGE=Wx::PlFileSystemHandler
138 #include "cpp/fshandler.h"
140 wxPlFileSystemHandler*
141 wxPlFileSystemhandler::new()
143 RETVAL = new wxPlFileSystemHandler( CLASS );