]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/unix/private/fswatcher_inotify.h
56ab35892a6b4f06562a58c589fe4ad077fa9bd4
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/unix/private/fswatcher_inotify.h
3 // Purpose: File system watcher impl classes
4 // Author: Bartosz Bekier
7 // Copyright: (c) 2009 Bartosz Bekier <bartosz.bekier@gmail.com>
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef WX_UNIX_PRIVATE_FSWATCHER_INOTIFY_H_
12 #define WX_UNIX_PRIVATE_FSWATCHER_INOTIFY_H_
14 #include "wx/filename.h"
15 #include "wx/evtloopsrc.h"
17 // ============================================================================
18 // wxFSWatcherEntry implementation & helper declarations
19 // ============================================================================
21 class wxFSWatcherImplUNIX
;
23 class wxFSWatchEntry
: public wxFSWatchInfo
26 wxFSWatchEntry(const wxFSWatchInfo
& winfo
) :
31 int GetWatchDescriptor() const
36 void SetWatchDescriptor(int wd
)
44 wxDECLARE_NO_COPY_CLASS(wxFSWatchEntry
);
48 // ============================================================================
49 // wxFSWSourceHandler helper class
50 // ============================================================================
52 class wxFSWatcherImplUnix
;
55 * Handler for handling i/o from inotify descriptor
57 class wxFSWSourceHandler
: public wxEventLoopSourceHandler
60 wxFSWSourceHandler(wxFSWatcherImplUnix
* service
) :
64 virtual void OnReadWaiting();
65 virtual void OnWriteWaiting();
66 virtual void OnExceptionWaiting();
69 wxFSWatcherImplUnix
* m_service
;
72 #endif /* WX_UNIX_PRIVATE_FSWATCHER_INOTIFY_H_ */