Deskflow
1.24.0.365
Keyboard and mouse sharing utility
Loading...
Searching...
No Matches
FunctionEventJob.h
Go to the documentation of this file.
1
/*
2
* Deskflow -- mouse and keyboard sharing utility
3
* SPDX-FileCopyrightText: (C) 2025 Deskflow Developers
4
* SPDX-FileCopyrightText: (C) 2012 - 2016 Symless Ltd.
5
* SPDX-FileCopyrightText: (C) 2004 Chris Schoeneman
6
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
7
*/
8
9
#pragma once
10
11
class
Event
;
12
14
17
class
FunctionEventJob
18
{
19
public
:
21
explicit
FunctionEventJob
(
void
(*func)(
const
Event
&,
void
*),
void
*arg =
nullptr
);
22
~FunctionEventJob
() =
default
;
23
void
run
(
const
Event
&);
24
25
private
:
26
void (*m_func)(
const
Event
&,
void
*);
27
void
*m_arg;
28
};
Event
Event.
Definition
Event.h:29
FunctionEventJob::~FunctionEventJob
~FunctionEventJob()=default
FunctionEventJob::run
void run(const Event &)
Definition
FunctionEventJob.cpp:19
FunctionEventJob::FunctionEventJob
FunctionEventJob(void(*func)(const Event &, void *), void *arg=nullptr)
run() invokes func(arg)
Definition
FunctionEventJob.cpp:14
src
lib
base
FunctionEventJob.h
Generated by
1.15.0