]> git.saurik.com Git - wxWidgets.git/blob - include/wx/unix/fswatcher_inotify.h
6641430d37c58961007cba26dc51cf0c15a8c6e6
[wxWidgets.git] / include / wx / unix / fswatcher_inotify.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/unix/fswatcher_inotify.h
3 // Purpose: wxInotifyFileSystemWatcher
4 // Author: Bartosz Bekier
5 // Created: 2009-05-26
6 // RCS-ID: $Id$
7 // Copyright: (c) 2009 Bartosz Bekier <bartosz.bekier@gmail.com>
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11 #ifndef _WX_FSWATCHER_UNIX_H_
12 #define _WX_FSWATCHER_UNIX_H_
13
14 #include "wx/defs.h"
15
16 #if wxUSE_FSWATCHER
17
18 class WXDLLIMPEXP_BASE wxInotifyFileSystemWatcher :
19 public wxFileSystemWatcherBase
20 {
21 public:
22 wxInotifyFileSystemWatcher();
23
24 wxInotifyFileSystemWatcher(const wxFileName& path,
25 int events = wxFSW_EVENT_ALL);
26
27 virtual ~wxInotifyFileSystemWatcher();
28
29 void OnDirDeleted(const wxString& path);
30
31 protected:
32 bool Init();
33 };
34
35 #endif
36
37 #endif /* _WX_FSWATCHER_UNIX_H_ */