#ifndef __FILESYS_H__
#define __FILESYS_H__
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
-#pragma interface "filesys.h"
-#endif
-
#include "wx/defs.h"
#if !wxUSE_STREAMS
wxString FindFirst(const wxString& spec, int flags = 0);
wxString FindNext();
+ // find a file in a list of directories, returns false if not found
+ bool FindFileInPath(wxString *pStr, const wxChar *path, const wxChar *file);
+
// Adds FS handler.
- // In fact, this class is only front-end to the FS hanlers :-)
+ // In fact, this class is only front-end to the FS handlers :-)
static void AddHandler(wxFileSystemHandler *handler);
+ // Returns true if there is a handler which can open the given location.
+ static bool HasHandlerForPath(const wxString& location);
+
// remove all items from the m_Handlers list
static void CleanUpHandlers();