#############################################################################
## Name: ext/filesys/XS/FileSystemHandler.xs
## Purpose: XS for Wx::FileSystemhandler
## Author: Mattia Barbon
## Modified by:
## Created: 28/04/2001
## RCS-ID: $Id: FileSystemHandler.xs 2393 2008-05-14 20:54:52Z mbarbon $
## Copyright: (c) 2001-2008 Mattia Barbon
## Licence: This program is free software; you can redistribute it and/or
## modify it under the same terms as Perl itself
#############################################################################
#include <wx/filesys.h>
#include <wx/fs_inet.h>
#include <wx/fs_zip.h>
#include <wx/fs_mem.h>
#undef THIS
MODULE=Wx PACKAGE=Wx::FileSystemHandler
#if 0 // protected!
wxString
wxFileSystemHandler::GetAnchor( location )
wxString location
wxString
wxFileSystemHandler::GetLeftLocation( location )
wxString location
wxString
wxFileSystemHandler::GetMimeTypeFromExt( location )
wxString location
wxString
wxFileSystemHandler::GetProtocol( location )
wxString location
wxString
wxFileSystemHandler::GetRightLocation( location )
wxString location
#endif
MODULE=Wx PACKAGE=Wx::InternetFSHandler
#if wxUSE_FS_INET
wxInternetFSHandler*
wxInternetFSHandler::new()
#endif
MODULE=Wx PACKAGE=Wx::ZipFSHandler
wxZipFSHandler*
wxZipFSHandler::new()
MODULE=Wx PACKAGE=Wx::ArchiveFSHandler
#if WXPERL_W_VERSION_GE( 2, 7, 2 )
wxArchiveFSHandler*
wxArchiveFSHandler::new()
#endif
MODULE=Wx PACKAGE=Wx::MemoryFSHandler
wxMemoryFSHandler*
wxMemoryFSHandler::new()
void
AddImageFile( name, image, type )
wxString name
wxImage* image
wxBitmapType type
CODE:
wxMemoryFSHandler::AddFile( name, *image, type );
void
AddBitmapFile( name, bitmap, type )
wxString name
wxBitmap* bitmap
wxBitmapType type
CODE:
wxMemoryFSHandler::AddFile( name, *bitmap, type );
void
AddTextFile( name, string )
wxString name
wxString string
CODE:
wxMemoryFSHandler::AddFile( name, string );
void
AddBinaryFile( name, scalar )
wxString name
SV* scalar
PREINIT:
STRLEN len;
char* data = SvPV( scalar, len );
CODE:
wxMemoryFSHandler::AddFile( name, data, len );
#if WXPERL_W_VERSION_GE( 2, 8, 5 )
void
AddTextFileWithMimeType( name, string, mimetype )
wxString name
wxString string
wxString mimetype
CODE:
wxMemoryFSHandler::AddFileWithMimeType( name, string, mimetype );
void
AddBinaryFileWithMimeType( name, scalar, mimetype )
wxString name
SV* scalar
wxString mimetype
PREINIT:
STRLEN len;
char* data = SvPV( scalar, len );
CODE:
wxMemoryFSHandler::AddFileWithMimeType( name, data, len, mimetype );
#endif
void
RemoveFile( name )
wxString name
CODE:
wxMemoryFSHandler::RemoveFile( name );
MODULE=Wx PACKAGE=Wx::PlFileSystemHandler
#include "cpp/fshandler.h"
wxPlFileSystemHandler*
wxPlFileSystemhandler::new()
CODE:
RETVAL = new wxPlFileSystemHandler( CLASS );
OUTPUT:
RETVAL