]> git.saurik.com Git - wxWidgets.git/blob - include/wx/fs_inet.h
added wx/defs.h include to correct compilation issues under Mac OS X
[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 interface "fs_inet.h"
24 #endif
25
26 #include "wx/defs.h"
27
28 #if wxUSE_FILESYSTEM && wxUSE_FS_INET && wxUSE_STREAMS && wxUSE_SOCKETS
29
30 #ifndef WXPRECOMP
31 #include "wx/hash.h"
32 #endif
33
34 #include "wx/filesys.h"
35
36 //--------------------------------------------------------------------------------
37 // wxInternetFSHandler
38 //--------------------------------------------------------------------------------
39
40 class WXDLLEXPORT wxInternetFSHandler : public wxFileSystemHandler
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
51 #endif
52 // wxUSE_FILESYSTEM && wxUSE_FS_INET && wxUSE_STREAMS && wxUSE_SOCKETS
53