]>
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
7 // Copyright: (c) 2009 Vadim Zeitlin <vadim@wxwidgets.org>
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_UNIX_EVTLOOPSRC_H_
12 #define _WX_UNIX_EVTLOOPSRC_H_
14 class wxFDIODispatcher
;
17 // ----------------------------------------------------------------------------
18 // wxUnixEventLoopSource: wxEventLoopSource for Unix-like toolkits using fds
19 // ----------------------------------------------------------------------------
21 class wxUnixEventLoopSource
: public wxEventLoopSource
24 // dispatcher and fdioHandler are only used here to allow us to unregister
25 // from the event loop when we're destroyed
26 wxUnixEventLoopSource(wxFDIODispatcher
*dispatcher
,
27 wxFDIOHandler
*fdioHandler
,
29 wxEventLoopSourceHandler
*handler
,
31 : wxEventLoopSource(handler
, flags
),
32 m_dispatcher(dispatcher
),
33 m_fdioHandler(fdioHandler
),
38 virtual ~wxUnixEventLoopSource();
41 wxFDIODispatcher
* const m_dispatcher
;
42 wxFDIOHandler
* const m_fdioHandler
;
45 wxDECLARE_NO_COPY_CLASS(wxUnixEventLoopSource
);
48 #endif // _WX_UNIX_EVTLOOPSRC_H_