X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/76cfd1bf95045676ab0078c45e8b5c9f2c021632..1948ff5f89188afabbe0d538ab33545e3c94cbac:/include/wx/private/fswatcher.h diff --git a/include/wx/private/fswatcher.h b/include/wx/private/fswatcher.h index abdc8e244c..cfffba4a89 100644 --- a/include/wx/private/fswatcher.h +++ b/include/wx/private/fswatcher.h @@ -3,7 +3,6 @@ // Purpose: File system watcher impl classes // Author: Bartosz Bekier // Created: 2009-05-26 -// RCS-ID: $Id$ // Copyright: (c) 2009 Bartosz Bekier // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -89,6 +88,12 @@ public: return true; } + // Check whether any filespec matches the file's ext (if present) + bool MatchesFilespec(const wxFileName& fn, const wxString& filespec) const + { + return filespec.empty() || wxMatchWild(filespec, fn.GetFullName()); + } + protected: virtual bool DoAdd(wxSharedPtr watch) = 0;