xbmc
xbmc
peripherals
EventLockHandle.h
1
/*
2
* Copyright (C) 2018 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
18
class
IEventLockCallback
19
{
20
public
:
21
virtual
~
IEventLockCallback
(
void
) =
default
;
22
23
virtual
void
ReleaseLock(
CEventLockHandle
& handle) = 0;
24
};
25
31
class
CEventLockHandle
32
{
33
public
:
37
CEventLockHandle
(
IEventLockCallback
& callback);
38
42
~
CEventLockHandle
(
void
);
43
44
private
:
45
// Construction parameters
46
IEventLockCallback
& m_callback;
47
};
48
}
// namespace PERIPHERALS
PERIPHERALS
Definition:
RetroPlayerInput.h:15
PERIPHERALS::CEventLockHandle
Handle returned by the event scanner to disable event processing.
Definition:
EventLockHandle.h:31
PERIPHERALS::IEventLockCallback
Callback implemented by event scanner.
Definition:
EventLockHandle.h:18
Generated by
1.8.13