mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-15 10:39:13 +01:00
d14efe561b
long become wxWidgets 2.9.2, which in turn is expected to be the last 2.9 release before the 3.0 stable release. Since the full wxWidgets distribution is rather large, I have imported only the parts that we use, on a subdirectory basis: art include/wx/*.* include/wx/aui include/wx/cocoa include/wx/generic include/wx/gtk include/wx/meta include/wx/msw include/wx/osx include/wx/persist include/wx/private include/wx/protocol include/wx/unix src/aui src/common src/generic src/gtk src/msw src/osx src/unix git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7380 8ced0084-cf51-0410-be5f-012b33b47a6e
73 lines
1.8 KiB
C++
73 lines
1.8 KiB
C++
/////////////////////////////////////////////////////////////////////////////
|
|
// Name: wx/unix/private/fswatcher_inotify.h
|
|
// Purpose: File system watcher impl classes
|
|
// Author: Bartosz Bekier
|
|
// Created: 2009-05-26
|
|
// RCS-ID: $Id: fswatcher_inotify.h 62475 2009-10-22 11:36:35Z VZ $
|
|
// Copyright: (c) 2009 Bartosz Bekier <bartosz.bekier@gmail.com>
|
|
// Licence: wxWindows licence
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
#ifndef WX_UNIX_PRIVATE_FSWATCHER_INOTIFY_H_
|
|
#define WX_UNIX_PRIVATE_FSWATCHER_INOTIFY_H_
|
|
|
|
#include "wx/filename.h"
|
|
#include "wx/evtloopsrc.h"
|
|
|
|
// ============================================================================
|
|
// wxFSWatcherEntry implementation & helper declarations
|
|
// ============================================================================
|
|
|
|
class wxFSWatcherImplUNIX;
|
|
|
|
class wxFSWatchEntry : public wxFSWatchInfo
|
|
{
|
|
public:
|
|
wxFSWatchEntry(const wxFSWatchInfo& winfo) :
|
|
wxFSWatchInfo(winfo)
|
|
{
|
|
}
|
|
|
|
int GetWatchDescriptor() const
|
|
{
|
|
return m_wd;
|
|
}
|
|
|
|
void SetWatchDescriptor(int wd)
|
|
{
|
|
m_wd = wd;
|
|
}
|
|
|
|
private:
|
|
int m_wd;
|
|
|
|
wxDECLARE_NO_COPY_CLASS(wxFSWatchEntry);
|
|
};
|
|
|
|
|
|
// ============================================================================
|
|
// wxFSWSourceHandler helper class
|
|
// ============================================================================
|
|
|
|
class wxFSWatcherImplUnix;
|
|
|
|
/**
|
|
* Handler for handling i/o from inotify descriptor
|
|
*/
|
|
class wxFSWSourceHandler : public wxEventLoopSourceHandler
|
|
{
|
|
public:
|
|
wxFSWSourceHandler(wxFSWatcherImplUnix* service) :
|
|
m_service(service)
|
|
{ }
|
|
|
|
virtual void OnReadWaiting();
|
|
virtual void OnWriteWaiting();
|
|
virtual void OnExceptionWaiting();
|
|
|
|
protected:
|
|
wxFSWatcherImplUnix* m_service;
|
|
};
|
|
|
|
#endif /* WX_UNIX_PRIVATE_FSWATCHER_INOTIFY_H_ */
|