]>
Commit | Line | Data |
---|---|---|
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 | ||
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__ | |
c3f4609e | 23 | #pragma interface "fs_inet.h" |
5526e819 VS |
24 | #endif |
25 | ||
ed58dbea | 26 | #include "wx/wxprec.h" |
5526e819 VS |
27 | |
28 | #ifdef __BORDLANDC__ | |
29 | #pragma hdrstop | |
30 | #endif | |
31 | ||
24528b0c | 32 | #if wxUSE_FILESYSTEM && wxUSE_FS_INET && wxUSE_STREAMS && wxUSE_SOCKETS |
8a4df159 | 33 | |
5526e819 | 34 | #ifndef WXPRECOMP |
ed58dbea | 35 | #include "wx/wx.h" |
5526e819 VS |
36 | #endif |
37 | ||
ed58dbea | 38 | #include "wx/filesys.h" |
5526e819 VS |
39 | |
40 | ||
41 | //-------------------------------------------------------------------------------- | |
42 | // wxInternetFSHandler | |
43 | //-------------------------------------------------------------------------------- | |
44 | ||
d674cf6d | 45 | class WXDLLEXPORT wxInternetFSHandler : public wxFileSystemHandler |
5526e819 VS |
46 | { |
47 | private: | |
48 | wxHashTable m_Cache; | |
49 | ||
50 | public: | |
51 | virtual bool CanOpen(const wxString& location); | |
52 | virtual wxFSFile* OpenFile(wxFileSystem& fs, const wxString& location); | |
53 | ~wxInternetFSHandler(); | |
54 | }; | |
55 | ||
8a4df159 | 56 | #endif |
24528b0c | 57 | // wxUSE_FILESYSTEM && wxUSE_FS_INET && wxUSE_STREAMS && wxUSE_SOCKETS |
5526e819 | 58 |