]> git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/fswatcher.h
Don't create multiple parent-less top level frames in layout sample.
[wxWidgets.git] / include / wx / msw / fswatcher.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/msw/fswatcher.h
3 // Purpose: wxMSWFileSystemWatcher
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_MSW_H_
12 #define _WX_FSWATCHER_MSW_H_
13
14 #include "wx/defs.h"
15
16 #if wxUSE_FSWATCHER
17
18 class WXDLLIMPEXP_BASE wxMSWFileSystemWatcher : public wxFileSystemWatcherBase
19 {
20 public:
21 wxMSWFileSystemWatcher();
22
23 wxMSWFileSystemWatcher(const wxFileName& path,
24 int events = wxFSW_EVENT_ALL);
25
26 // Override the base class function to provide a much more efficient
27 // implementation for it using the platform native support for watching the
28 // entire directory trees.
29 virtual bool AddTree(const wxFileName& path, int events = wxFSW_EVENT_ALL,
30 const wxString& filter = wxEmptyString);
31
32 protected:
33 bool Init();
34 };
35
36 #endif // wxUSE_FSWATCHER
37
38 #endif /* _WX_FSWATCHER_MSW_H_ */