]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/unix/evtloopsrc.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/unix/evtloopsrc.h
3 // Purpose: wxUnixEventLoopSource class
4 // Author: Vadim Zeitlin
6 // Copyright: (c) 2009 Vadim Zeitlin <vadim@wxwidgets.org>
7 // Licence: wxWindows licence
8 ///////////////////////////////////////////////////////////////////////////////
10 #ifndef _WX_UNIX_EVTLOOPSRC_H_
11 #define _WX_UNIX_EVTLOOPSRC_H_
13 class wxFDIODispatcher
;
16 // ----------------------------------------------------------------------------
17 // wxUnixEventLoopSource: wxEventLoopSource for Unix-like toolkits using fds
18 // ----------------------------------------------------------------------------
20 class wxUnixEventLoopSource
: public wxEventLoopSource
23 // dispatcher and fdioHandler are only used here to allow us to unregister
24 // from the event loop when we're destroyed
25 wxUnixEventLoopSource(wxFDIODispatcher
*dispatcher
,
26 wxFDIOHandler
*fdioHandler
,
28 wxEventLoopSourceHandler
*handler
,
30 : wxEventLoopSource(handler
, flags
),
31 m_dispatcher(dispatcher
),
32 m_fdioHandler(fdioHandler
),
37 virtual ~wxUnixEventLoopSource();
40 wxFDIODispatcher
* const m_dispatcher
;
41 wxFDIOHandler
* const m_fdioHandler
;
44 wxDECLARE_NO_COPY_CLASS(wxUnixEventLoopSource
);
47 #endif // _WX_UNIX_EVTLOOPSRC_H_