]> git.saurik.com Git - wxWidgets.git/blame - include/wx/unix/private/epolldispatcher.h
Updated translations manual page with latest status given by the website translations...
[wxWidgets.git] / include / wx / unix / private / epolldispatcher.h
CommitLineData
b46b1d59
VZ
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/private/epolldispatcher.h
3// Purpose: wxEpollDispatcher class
4// Authors: Lukasz Michalski
5// Created: April 2007
6// Copyright: (c) Lukasz Michalski
7// RCS-ID: $Id$
8// Licence: wxWindows licence
9/////////////////////////////////////////////////////////////////////////////
10
11#ifndef _WX_PRIVATE_EPOLLDISPATCHER_H_
12#define _WX_PRIVATE_EPOLLDISPATCHER_H_
13
14#include "wx/defs.h"
15
a1873279 16#ifdef wxUSE_EPOLL_DISPATCHER
b46b1d59
VZ
17
18#include "wx/private/fdiodispatcher.h"
19
20class WXDLLIMPEXP_CORE wxEpollDispatcher : public wxFDIODispatcher
21{
22public:
5e1eac14 23 // create a new instance of this class, can return NULL if
b46b1d59
VZ
24 // epoll() is not supported on this system
25 //
5e1eac14
VZ
26 // the caller should delete the returned pointer
27 static wxEpollDispatcher *Create();
b46b1d59 28
d31a4a84
VZ
29 virtual ~wxEpollDispatcher();
30
b46b1d59
VZ
31 // implement base class pure virtual methods
32 virtual bool RegisterFD(int fd, wxFDIOHandler* handler, int flags = wxFDIO_ALL);
33 virtual bool ModifyFD(int fd, wxFDIOHandler* handler, int flags = wxFDIO_ALL);
af57c51a 34 virtual bool UnregisterFD(int fd);
04021d6f 35 virtual bool Dispatch(int timeout = TIMEOUT_INFINITE);
b46b1d59
VZ
36
37private:
5e1eac14
VZ
38 // ctor is private, use Create()
39 wxEpollDispatcher(int epollDescriptor);
b46b1d59
VZ
40
41 int m_epollDescriptor;
42};
43
a1873279 44#endif // wxUSE_EPOLL_DISPATCHER
b46b1d59
VZ
45
46#endif // _WX_PRIVATE_SOCKETEVTDISPATCH_H_