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
11class Event;
12
14
18{
19public:
21 explicit FunctionEventJob(void (*func)(const Event &, void *), void *arg = nullptr);
22 ~FunctionEventJob() = default;
23 void run(const Event &);
24
25private:
26 void (*m_func)(const Event &, void *);
27 void *m_arg;
28};
Event.
Definition Event.h:29
~FunctionEventJob()=default
void run(const Event &)
Definition FunctionEventJob.cpp:19
FunctionEventJob(void(*func)(const Event &, void *), void *arg=nullptr)
run() invokes func(arg)
Definition FunctionEventJob.cpp:14