~brian-sidebotham/wxwidgets-cmake/wxpython-2.9.4

« back to all changes in this revision

Viewing changes to include/wx/msw/fswatcher.h

  • Committer: Brian Sidebotham
  • Date: 2013-08-03 14:30:08 UTC
  • Revision ID: brian.sidebotham@gmail.com-20130803143008-c7806tkych1tp6fc
Initial import into Bazaar

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/////////////////////////////////////////////////////////////////////////////
 
2
// Name:        wx/msw/fswatcher.h
 
3
// Purpose:     wxMSWFileSystemWatcher
 
4
// Author:      Bartosz Bekier
 
5
// Created:     2009-05-26
 
6
// RCS-ID:      $Id: fswatcher.h 67693 2011-05-03 23:31:39Z VZ $
 
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_ */