]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/unix/private/fswatcher_inotify.h
249450eb509cb3dde2537ec84fc8f9c520aa3271
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/unix/private/fswatcher_inotify.h
3 // Purpose: File system watcher impl classes
4 // Author: Bartosz Bekier
6 // Copyright: (c) 2009 Bartosz Bekier <bartosz.bekier@gmail.com>
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 #ifndef WX_UNIX_PRIVATE_FSWATCHER_INOTIFY_H_
11 #define WX_UNIX_PRIVATE_FSWATCHER_INOTIFY_H_
13 #include "wx/filename.h"
14 #include "wx/evtloopsrc.h"
16 // ============================================================================
17 // wxFSWatcherEntry implementation & helper declarations
18 // ============================================================================
20 class wxFSWatcherImplUNIX
;
22 class wxFSWatchEntry
: public wxFSWatchInfo
25 wxFSWatchEntry(const wxFSWatchInfo
& winfo
) :
30 int GetWatchDescriptor() const
35 void SetWatchDescriptor(int wd
)
43 wxDECLARE_NO_COPY_CLASS(wxFSWatchEntry
);
47 // ============================================================================
48 // wxFSWSourceHandler helper class
49 // ============================================================================
51 class wxFSWatcherImplUnix
;
54 * Handler for handling i/o from inotify descriptor
56 class wxFSWSourceHandler
: public wxEventLoopSourceHandler
59 wxFSWSourceHandler(wxFSWatcherImplUnix
* service
) :
63 virtual void OnReadWaiting();
64 virtual void OnWriteWaiting();
65 virtual void OnExceptionWaiting();
68 wxFSWatcherImplUnix
* m_service
;
71 #endif /* WX_UNIX_PRIVATE_FSWATCHER_INOTIFY_H_ */