]> git.saurik.com Git - wxWidgets.git/blame - include/wx/fs_inet.h
long long for DJGPP
[wxWidgets.git] / include / wx / fs_inet.h
CommitLineData
5526e819
VS
1/////////////////////////////////////////////////////////////////////////////
2// Name: fs_inet.h
3// Purpose: HTTP and FTP file system
4// Author: Vaclav Slavik
5// Copyright: (c) 1999 Vaclav Slavik
6// Licence: wxWindows Licence
7/////////////////////////////////////////////////////////////////////////////
8
9/*
10
04dbb646 11REMARKS :
5526e819
VS
12
13This FS creates local cache (in /tmp directory). The cache is freed
14on program exit.
15
16Size of cache is limited to cca 1000 items (due to GetTempFileName
17limitation)
18
19
20*/
21
22#ifdef __GNUG__
c3f4609e 23#pragma interface "fs_inet.h"
5526e819
VS
24#endif
25
8b70ca26 26#include "wx/defs.h"
5526e819 27
24528b0c 28#if wxUSE_FILESYSTEM && wxUSE_FS_INET && wxUSE_STREAMS && wxUSE_SOCKETS
8a4df159 29
8b70ca26
VZ
30#ifndef WXPRECOMP
31 #include "wx/hash.h"
32#endif
33
ed58dbea 34#include "wx/filesys.h"
5526e819 35
5526e819
VS
36//--------------------------------------------------------------------------------
37// wxInternetFSHandler
38//--------------------------------------------------------------------------------
39
d674cf6d 40class WXDLLEXPORT wxInternetFSHandler : public wxFileSystemHandler
5526e819
VS
41{
42 private:
43 wxHashTable m_Cache;
44
45 public:
46 virtual bool CanOpen(const wxString& location);
47 virtual wxFSFile* OpenFile(wxFileSystem& fs, const wxString& location);
48 ~wxInternetFSHandler();
49};
50
8a4df159 51#endif
24528b0c 52 // wxUSE_FILESYSTEM && wxUSE_FS_INET && wxUSE_STREAMS && wxUSE_SOCKETS
5526e819 53