]> git.saurik.com Git - wxWidgets.git/blame - include/wx/fs_inet.h
another compilation fix for over-optimized #includes
[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*/
4e8e18e2
VZ
21#ifndef _WX_FS_INET_H_
22#define _WX_FS_INET_H_
5526e819 23
af49c4b8 24#if defined(__GNUG__) && !defined(__APPLE__)
c3f4609e 25#pragma interface "fs_inet.h"
5526e819
VS
26#endif
27
8b70ca26 28#include "wx/defs.h"
5526e819 29
24528b0c 30#if wxUSE_FILESYSTEM && wxUSE_FS_INET && wxUSE_STREAMS && wxUSE_SOCKETS
8a4df159 31
8b70ca26
VZ
32#ifndef WXPRECOMP
33 #include "wx/hash.h"
34#endif
35
ed58dbea 36#include "wx/filesys.h"
5526e819 37
5526e819
VS
38//--------------------------------------------------------------------------------
39// wxInternetFSHandler
40//--------------------------------------------------------------------------------
41
d674cf6d 42class WXDLLEXPORT wxInternetFSHandler : public wxFileSystemHandler
5526e819
VS
43{
44 private:
45 wxHashTable m_Cache;
46
47 public:
48 virtual bool CanOpen(const wxString& location);
49 virtual wxFSFile* OpenFile(wxFileSystem& fs, const wxString& location);
50 ~wxInternetFSHandler();
51};
52
8a4df159 53#endif
24528b0c 54 // wxUSE_FILESYSTEM && wxUSE_FS_INET && wxUSE_STREAMS && wxUSE_SOCKETS
5526e819 55
4e8e18e2
VZ
56#endif // _WX_FS_INET_H_
57