X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0fccda2ced58ad3cef3d272777725f6f0ff3a442..3b4b952d42608ff90b03c85f961ba10b93bde916:/interface/wx/fswatcher.h?ds=inline diff --git a/interface/wx/fswatcher.h b/interface/wx/fswatcher.h index 5041acc37b..5857d69260 100644 --- a/interface/wx/fswatcher.h +++ b/interface/wx/fswatcher.h @@ -68,6 +68,7 @@ public: The name of the path to watch. @param events An optional filter to receive only events of particular types. + This is currently implemented only for GTK. */ virtual bool Add(const wxFileName& path, int events = wxFSW_EVENT_ALL); @@ -247,6 +248,27 @@ enum wxFSWFlags */ wxFSW_EVENT_ACCESS = 0x10, + /** + The item's metadata was changed, e.g.\ its permissions or timestamps. + + This event is currently only detected under Linux. + + @since 2.9.5 + */ + wxFSW_EVENT_ATTRIB = 0x20, + + /** + The file system containing a watched item was unmounted. + + wxFSW_EVENT_UNMOUNT cannot be set; unmount events are produced automatically. This flag + is therefore not included in wxFSW_EVENT_ALL. + + This event is currently only detected under Linux. + + @since 2.9.5 + */ + wxFSW_EVENT_UNMOUNT = 0x2000, + /** A warning condition arose. @@ -256,7 +278,7 @@ enum wxFSWFlags more events will still be coming in the future, unlike for the error condition below. */ - wxFSW_EVENT_WARNING = 0x20, + wxFSW_EVENT_WARNING = 0x40, /** An error condition arose. @@ -265,11 +287,11 @@ enum wxFSWFlags and the program can stop watching the directories currently being monitored. */ - wxFSW_EVENT_ERROR = 0x40, + wxFSW_EVENT_ERROR = 0x80, wxFSW_EVENT_ALL = wxFSW_EVENT_CREATE | wxFSW_EVENT_DELETE | wxFSW_EVENT_RENAME | wxFSW_EVENT_MODIFY | - wxFSW_EVENT_ACCESS | + wxFSW_EVENT_ACCESS | wxFSW_EVENT_ATTRIB | wxFSW_EVENT_WARNING | wxFSW_EVENT_ERROR };