Now its possible to run wxHTML without wxSockets
[wxWidgets.git] / include / wx / fs_inet.h
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
11 REMARKS :
12
13 This FS creates local cache (in /tmp directory). The cache is freed
14 on program exit.
15
16 Size of cache is limited to cca 1000 items (due to GetTempFileName
17 limitation)
18
19
20 */
21
22 #ifdef __GNUG__
23 #pragma implementation
24 #endif
25
26 #include <wx/wxprec.h>
27
28 #ifdef __BORDLANDC__
29 #pragma hdrstop
30 #endif
31
32 #if wxUSE_FS_INET && wxUSE_STREAMS && wxUSE_SOCKETS
33
34 #ifndef WXPRECOMP
35 #include <wx/wx.h>
36 #endif
37
38 #include <wx/filesys.h>
39
40
41
42 //--------------------------------------------------------------------------------
43 // wxInternetFSHandler
44 //--------------------------------------------------------------------------------
45
46 class wxInternetFSHandler : public wxFileSystemHandler
47 {
48 private:
49 wxHashTable m_Cache;
50
51 public:
52 virtual bool CanOpen(const wxString& location);
53 virtual wxFSFile* OpenFile(wxFileSystem& fs, const wxString& location);
54 ~wxInternetFSHandler();
55 };
56
57 #endif
58 // wxUSE_FS_INET && wxUSE_STREAMS && wxUSE_SOCKETS
59