X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b77bb705dd090bbb674cebb29c167598f978c4a4..d3fa4bc22e84e3ca4d88cc1772f2d414140a1017:/interface/wx/fswatcher.h?ds=inline diff --git a/interface/wx/fswatcher.h b/interface/wx/fswatcher.h index 77f2e15a17..fde8902515 100644 --- a/interface/wx/fswatcher.h +++ b/interface/wx/fswatcher.h @@ -157,7 +157,7 @@ public: class wxFileSystemWatcherEvent : public wxEvent { public: - wxFileSystemWatcherEvent(int changeType, int watchid = wxID_ANY); + wxFileSystemWatcherEvent(int changeType = 0, int watchid = wxID_ANY); wxFileSystemWatcherEvent(int changeType, const wxString& errorMsg, int watchid = wxID_ANY); wxFileSystemWatcherEvent(int changeType, @@ -248,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. @@ -257,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. @@ -266,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 };