fswatcher.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/msw/fswatcher.h
  3. // Purpose: wxMSWFileSystemWatcher
  4. // Author: Bartosz Bekier
  5. // Created: 2009-05-26
  6. // Copyright: (c) 2009 Bartosz Bekier <bartosz.bekier@gmail.com>
  7. // Licence: wxWindows licence
  8. /////////////////////////////////////////////////////////////////////////////
  9. #ifndef _WX_FSWATCHER_MSW_H_
  10. #define _WX_FSWATCHER_MSW_H_
  11. #include "wx/defs.h"
  12. #if wxUSE_FSWATCHER
  13. class WXDLLIMPEXP_BASE wxMSWFileSystemWatcher : public wxFileSystemWatcherBase
  14. {
  15. public:
  16. wxMSWFileSystemWatcher();
  17. wxMSWFileSystemWatcher(const wxFileName& path,
  18. int events = wxFSW_EVENT_ALL);
  19. // Override the base class function to provide a much more efficient
  20. // implementation for it using the platform native support for watching the
  21. // entire directory trees.
  22. virtual bool AddTree(const wxFileName& path, int events = wxFSW_EVENT_ALL,
  23. const wxString& filter = wxEmptyString);
  24. protected:
  25. bool Init();
  26. };
  27. #endif // wxUSE_FSWATCHER
  28. #endif /* _WX_FSWATCHER_MSW_H_ */