wxFSW_EVENT_RENAME = 0x04,
wxFSW_EVENT_MODIFY = 0x08,
wxFSW_EVENT_ACCESS = 0x10,
+ wxFSW_EVENT_ATTRIB = 0x20, // Currently this is wxGTK-only
// error events
- wxFSW_EVENT_WARNING = 0x20,
- wxFSW_EVENT_ERROR = 0x40,
-
+ wxFSW_EVENT_WARNING = 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
+#ifdef wxHAS_INOTIFY
+ ,wxFSW_EVENT_UNMOUNT = 0x2000
+#endif
};
// Type of the path watched, used only internally for now.
class WXDLLIMPEXP_BASE wxFileSystemWatcherEvent: public wxEvent
{
public:
- wxFileSystemWatcherEvent(int changeType, int watchid = wxID_ANY) :
+ wxFileSystemWatcherEvent(int changeType = 0, int watchid = wxID_ANY) :
wxEvent(watchid, wxEVT_FSWATCHER),
m_changeType(changeType)
{
virtual wxEventCategory GetEventCategory() const
{
- // TODO this has to be merged with "similiar" categories and changed
+ // TODO this has to be merged with "similar" categories and changed
return wxEVT_CATEGORY_UNKNOWN;
}
wxFileName m_path;
wxFileName m_newPath;
wxString m_errorMsg;
+private:
+ DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxFileSystemWatcherEvent)
};
typedef void (wxEvtHandler::*wxFileSystemWatcherEventFunction)