qpcpp/ports/qt/aothread.hpp

56 lines
1.5 KiB
C++
Raw Normal View History

//============================================================================
2022-08-28 22:12:27 -04:00
// Copyright (C) 2005 Quantum Leaps, LLC <state-machine.com>.
//
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-QL-commercial
//
// This software is dual-licensed under the terms of the open source GNU
// General Public License version 3 (or any later version), or alternatively,
// under the terms of one of the closed source Quantum Leaps commercial
// licenses.
//
// The terms of the open source GNU General Public License version 3
// can be found at: <www.gnu.org/licenses/gpl-3.0>
//
// The terms of the closed source Quantum Leaps commercial licenses
// can be found at: <www.state-machine.com/licensing>
//
// Redistributions in source code must retain this top-level comment block.
// Plagiarizing this software to sidestep the license obligations is illegal.
//
// Contact information:
// <www.state-machine.com/licensing>
// <info@state-machine.com>
//============================================================================
2022-08-28 22:12:27 -04:00
//! @date Last updated on: 2022-08-25
//! @version Last updated for: @ref qpcpp_7_1_0
//!
//! @file
//! @brief QP/C++ port to Qt
2015-05-14 16:05:04 -04:00
2019-10-27 12:26:31 -04:00
#ifndef AOTHREAD_HPP
#define AOTHREAD_HPP
2012-08-14 18:00:48 -04:00
2013-10-10 20:01:51 -04:00
#include <QThread>
2012-08-14 18:00:48 -04:00
2013-12-30 17:41:15 -05:00
namespace QP {
2013-10-10 20:01:51 -04:00
class AOThread : public QThread {
2012-08-14 18:00:48 -04:00
Q_OBJECT
public:
2013-10-10 20:01:51 -04:00
AOThread(void *act)
: m_act(act),
m_isRunning(false)
{}
virtual ~AOThread();
virtual void run();
2012-08-14 18:00:48 -04:00
2013-10-10 20:01:51 -04:00
public:
void *m_act;
bool m_isRunning;
2012-08-14 18:00:48 -04:00
};
2014-04-21 21:48:04 -04:00
} // namespace QP
2013-12-30 17:41:15 -05:00
2019-10-27 12:26:31 -04:00
#endif // AOTHREAD_HPP