X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5526e819eca4465ed5520d49bccfebc6a28045e0..0ce742cf092c9244f27957e308c16f3c2631042d:/include/wx/filesys.h?ds=sidebyside diff --git a/include/wx/filesys.h b/include/wx/filesys.h index 5ff10cb25e..d381956e29 100644 --- a/include/wx/filesys.h +++ b/include/wx/filesys.h @@ -13,9 +13,13 @@ #pragma interface #endif -#include -#include -#include +#include "wx/setup.h" + +#if (wxUSE_FS_INET || wxUSE_FS_ZIP) && wxUSE_STREAMS + +#include "wx/stream.h" +#include "wx/mimetype.h" +#include "wx/url.h" class wxFSFile; @@ -112,10 +116,16 @@ class WXDLLEXPORT wxFileSystemHandler : public wxObject // Returns MIME type of the file - w/o need to open it // (default behaviour is that it returns type based on extension) + public: + static void CleanUpStatics(); + // deletes static members (m_MimeMng). It can be called + // as many times as you wish because m_MimeMng is created + // on demand + private: - static wxMimeTypesManager m_MimeMng; + static wxMimeTypesManager *m_MimeMng; // MIME manager - // (it's static and thus shared by all instances and derived classes) + // (it's static and thus shared by all instances and derived classes) }; @@ -191,4 +201,8 @@ special characters : */ -#endif // __FILESYS_H__ +#endif + // (wxUSE_FS_INET || wxUSE_FS_ZIP) && wxUSE_STREAMS + +#endif + // __FILESYS_H__