kodi
xbmc
peripherals
events
EventLockHandle.h
1
/*
2
* Copyright (C) 2018-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
#pragma once
10
11
namespace
PERIPHERALS
12
{
13
class
CEventLockHandle;
14
20
class
IEventLockCallback
21
{
22
public
:
23
virtual
~
IEventLockCallback
(
void
) =
default
;
24
25
virtual
void
ReleaseLock(
CEventLockHandle
& handle) = 0;
26
};
27
33
class
CEventLockHandle
34
{
35
public
:
39
CEventLockHandle
(
IEventLockCallback
& callback);
40
44
~
CEventLockHandle
(
void
);
45
46
private
:
47
// Construction parameters
48
IEventLockCallback
& m_callback;
49
};
50
}
// namespace PERIPHERALS
PERIPHERALS
Definition:
RetroPlayerInput.h:15
PERIPHERALS::CEventLockHandle
Handle returned by the event scanner to disable event processing.
Definition:
EventLockHandle.h:33
PERIPHERALS::IEventLockCallback
Callback implemented by event scanner.
Definition:
EventLockHandle.h:20
Generated by
1.8.13