Deskflow 1.22.0.197
Keyboard and mouse sharing utility
Loading...
Searching...
No Matches
FunctionEventJob Class Reference

Use a function as an event job. More...

#include <FunctionEventJob.h>

Inheritance diagram for FunctionEventJob:
Collaboration diagram for FunctionEventJob:

Public Member Functions

 FunctionEventJob (void(*func)(const Event &, void *), void *arg=nullptr)
 run() invokes func(arg)
 ~FunctionEventJob () override=default
void run (const Event &) override
 Run the job.
Public Member Functions inherited from IInterface
virtual ~IInterface ()=default
 Interface destructor does nothing.

Detailed Description

Use a function as an event job.

An event job class that invokes a function.

Constructor & Destructor Documentation

◆ FunctionEventJob()

FunctionEventJob::FunctionEventJob ( void(* func )(const Event &, void *),
void * arg = nullptr )

run() invokes func(arg)

◆ ~FunctionEventJob()

FunctionEventJob::~FunctionEventJob ( )
overridedefault

Member Function Documentation

◆ run()

void FunctionEventJob::run ( const Event & )
overridevirtual

Run the job.

Implements IEventJob.


The documentation for this class was generated from the following files: