Heart 1.3.842.34c2ab5
Heart is base back end library for your c++ Qt projects.
asynclauncher.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2021-2024 QuasarApp.
3 * Distributed under the lgplv3 software license, see the accompanying
4 * Everyone is permitted to copy and distribute verbatim copies
5 * of this license document, but changing it is not allowed.
6*/
7
8#ifndef ASYNCLAUNCHER_H
9#define ASYNCLAUNCHER_H
10
11#include <async.h>
12
13class QThread;
14
15namespace QH {
16
32{
33 Q_OBJECT
34public:
40 AsyncLauncher(QThread *thread, QObject* ptr = nullptr);
41
48 bool run(const Job &action, bool wait = false);
49
50};
51
52}
53#endif // ASYNCLAUNCHER_H
The AsyncLauncher class is wraper of the Async class for support moving invokes to thread of the curr...
The Async class This is bundle of async templates and async wrappers.
Definition async.h:26
std::function< bool()> Job
Definition async.h:35
#define HEARTSHARED_EXPORT
The QH namespace - QuasarApp Heart namespace. This namespace contains all classes of the Heart librar...
Definition heart.cpp:13