Coverage Report

Created: 2026-09-20 06:25

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/wxwidgets/include/wx/private/fdioeventloopsourcehandler.h
Line
Count
Source
1
///////////////////////////////////////////////////////////////////////////////
2
// Name:        wx/private/fdioeventloopsourcehandler.h
3
// Purpose:     declares wxFDIOEventLoopSourceHandler class
4
// Author:      Rob Bresalier, Vadim Zeitlin
5
// Created:     2013-06-13 (extracted from src/unix/evtloopunix.cpp)
6
// Copyright:   (c) 2009 Vadim Zeitlin <vadim@wxwidgets.org>
7
//              (c) 2013 Rob Bresalier
8
// Licence:     wxWindows licence
9
///////////////////////////////////////////////////////////////////////////////
10
11
#ifndef _WX_PRIVATE_FDIO_EVENT_LOOP_SOURCE_HANDLER_H
12
#define _WX_PRIVATE_FDIO_EVENT_LOOP_SOURCE_HANDLER_H
13
14
#include "wx/evtloopsrc.h"
15
16
// This class is a temporary bridge between event loop sources and
17
// FDIODispatcher. It is going to be removed soon, when all subject interfaces
18
// are modified
19
class wxFDIOEventLoopSourceHandler : public wxFDIOHandler
20
{
21
public:
22
    explicit wxFDIOEventLoopSourceHandler(wxEventLoopSourceHandler* handler)
23
0
        : m_handler(handler)
24
0
    {
25
0
    }
26
27
    // Just forward to the real handler.
28
0
    virtual void OnReadWaiting() override { m_handler->OnReadWaiting(); }
29
0
    virtual void OnWriteWaiting() override { m_handler->OnWriteWaiting(); }
30
0
    virtual void OnExceptionWaiting() override { m_handler->OnExceptionWaiting(); }
31
32
protected:
33
    wxEventLoopSourceHandler* const m_handler;
34
35
    wxDECLARE_NO_COPY_CLASS(wxFDIOEventLoopSourceHandler);
36
};
37
38
#endif // _WX_PRIVATE_FDIO_EVENT_LOOP_SOURCE_HANDLER_H