]> git.saurik.com Git - wxWidgets.git/blame - include/wx/unix/evtloopsrc.h
Rename wxFileSystemWatcherBase::DoAdd() to AddAny() and make it public.
[wxWidgets.git] / include / wx / unix / evtloopsrc.h
CommitLineData
5cd99866
VZ
1///////////////////////////////////////////////////////////////////////////////
2// Name: wx/unix/evtloopsrc.h
3// Purpose: wxUnixEventLoopSource class
4// Author: Vadim Zeitlin
5// Created: 2009-10-21
b1153ed6 6// RCS-ID: $Id$
5cd99866
VZ
7// Copyright: (c) 2009 Vadim Zeitlin <vadim@wxwidgets.org>
8// Licence: wxWindows licence
9///////////////////////////////////////////////////////////////////////////////
10
11#ifndef _WX_UNIX_EVTLOOPSRC_H_
12#define _WX_UNIX_EVTLOOPSRC_H_
13
14class wxFDIODispatcher;
15class wxFDIOHandler;
16
17// ----------------------------------------------------------------------------
18// wxUnixEventLoopSource: wxEventLoopSource for Unix-like toolkits using fds
19// ----------------------------------------------------------------------------
20
21class wxUnixEventLoopSource : public wxEventLoopSource
22{
23public:
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,
28 int fd,
29 wxEventLoopSourceHandler *handler,
30 int flags)
31 : wxEventLoopSource(handler, flags),
32 m_dispatcher(dispatcher),
33 m_fdioHandler(fdioHandler),
34 m_fd(fd)
35 {
36 }
37
38 virtual ~wxUnixEventLoopSource();
39
40private:
41 wxFDIODispatcher * const m_dispatcher;
42 wxFDIOHandler * const m_fdioHandler;
43 const int m_fd;
44
45 wxDECLARE_NO_COPY_CLASS(wxUnixEventLoopSource);
46};
47
48#endif // _WX_UNIX_EVTLOOPSRC_H_
49