Coverage Report

Created: 2024-03-18 06:28

/src/wxwidgets/include/wx/unix/evtloopsrc.h
Line
Count
Source (jump to first uncovered line)
1
///////////////////////////////////////////////////////////////////////////////
2
// Name:        wx/unix/evtloopsrc.h
3
// Purpose:     wxUnixEventLoopSource class
4
// Author:      Vadim Zeitlin
5
// Created:     2009-10-21
6
// Copyright:   (c) 2009 Vadim Zeitlin <vadim@wxwidgets.org>
7
// Licence:     wxWindows licence
8
///////////////////////////////////////////////////////////////////////////////
9
10
#ifndef _WX_UNIX_EVTLOOPSRC_H_
11
#define _WX_UNIX_EVTLOOPSRC_H_
12
13
class wxFDIODispatcher;
14
class wxFDIOHandler;
15
16
// ----------------------------------------------------------------------------
17
// wxUnixEventLoopSource: wxEventLoopSource for Unix-like toolkits using fds
18
// ----------------------------------------------------------------------------
19
20
class wxUnixEventLoopSource : public wxEventLoopSource
21
{
22
public:
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,
27
                          int fd,
28
                          wxEventLoopSourceHandler *handler,
29
                          int flags)
30
        : wxEventLoopSource(handler, flags),
31
          m_dispatcher(dispatcher),
32
          m_fdioHandler(fdioHandler),
33
          m_fd(fd)
34
0
    {
35
0
    }
36
37
    virtual ~wxUnixEventLoopSource();
38
39
private:
40
    wxFDIODispatcher * const m_dispatcher;
41
    wxFDIOHandler * const m_fdioHandler;
42
    const int m_fd;
43
44
    wxDECLARE_NO_COPY_CLASS(wxUnixEventLoopSource);
45
};
46
47
#endif // _WX_UNIX_EVTLOOPSRC_H_
48