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