mirror of
https://github.com/NohamR/RMHook-Win.git
synced 2026-05-26 13:30:12 +00:00
Add Qt libs and headers
This commit is contained in:
30
paho-mqtt3as-proxy/Qt/include/QtCore/qrunnable.h
Normal file
30
paho-mqtt3as-proxy/Qt/include/QtCore/qrunnable.h
Normal file
@@ -0,0 +1,30 @@
|
||||
// Copyright (C) 2016 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
#ifndef QRUNNABLE_H
|
||||
#define QRUNNABLE_H
|
||||
|
||||
#include <QtCore/qglobal.h>
|
||||
#include <functional>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class Q_CORE_EXPORT QRunnable
|
||||
{
|
||||
bool m_autoDelete = true;
|
||||
|
||||
Q_DISABLE_COPY(QRunnable)
|
||||
public:
|
||||
virtual void run() = 0;
|
||||
|
||||
constexpr QRunnable() noexcept = default;
|
||||
virtual ~QRunnable();
|
||||
static QRunnable *create(std::function<void()> functionToRun);
|
||||
|
||||
bool autoDelete() const { return m_autoDelete; }
|
||||
void setAutoDelete(bool autoDelete) { m_autoDelete = autoDelete; }
|
||||
};
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user