Debian Codegraph @

xbmc/peripherals/events/EventPollHandle.cpp

raw
1 /*
2 * Copyright (C) 2016-2024 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
4 *
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
8
9 #include "EventPollHandle.h"
10
11 using namespace PERIPHERALS;
12
13 CEventPollHandle::CEventPollHandle(IEventPollCallback& callback) : m_callback(callback)
14 {
15 }
16
17 CEventPollHandle::~CEventPollHandle(void)
18 {
19 m_callback.Release(*this);
20 }
21
22 void CEventPollHandle::Activate()
23 {
24 m_callback.Activate(*this);
25 }
26
27 void CEventPollHandle::Deactivate()
28 {
29 m_callback.Deactivate(*this);
30 }
31
32 void CEventPollHandle::HandleEvents(bool bWait)
33 {
34 m_callback.HandleEvents(bWait);
35 }