fswatcher_inotify.h 926 B

123456789101112131415161718192021222324252627282930313233343536
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/unix/fswatcher_inotify.h
  3. // Purpose: wxInotifyFileSystemWatcher
  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_UNIX_H_
  10. #define _WX_FSWATCHER_UNIX_H_
  11. #include "wx/defs.h"
  12. #if wxUSE_FSWATCHER
  13. class WXDLLIMPEXP_BASE wxInotifyFileSystemWatcher :
  14. public wxFileSystemWatcherBase
  15. {
  16. public:
  17. wxInotifyFileSystemWatcher();
  18. wxInotifyFileSystemWatcher(const wxFileName& path,
  19. int events = wxFSW_EVENT_ALL);
  20. virtual ~wxInotifyFileSystemWatcher();
  21. void OnDirDeleted(const wxString& path);
  22. protected:
  23. bool Init();
  24. };
  25. #endif
  26. #endif /* _WX_FSWATCHER_UNIX_H_ */