refs #395, removed worker from interpolator

It was planned to do all interpolation calculations at once in background,
this concept is not used anymore
This commit is contained in:
Klaus Basan
2015-05-06 02:48:13 +02:00
committed by Mathew Sutcliffe
parent 66075ca0d0
commit bbd5ad2cbc
2 changed files with 5 additions and 4 deletions

View File

@@ -19,11 +19,12 @@ using namespace BlackMisc::Simulation;
namespace BlackCore
{
IInterpolator::IInterpolator(IRemoteAircraftProvider *provider, const QString &workerName, QObject *parent) :
CContinuousWorker(parent, workerName),
IInterpolator::IInterpolator(IRemoteAircraftProvider *provider, const QString &objectName, QObject *parent) :
QObject(parent),
CRemoteAircraftAware(provider)
{
Q_ASSERT_X(provider, Q_FUNC_INFO, "missing provider");
this->setObjectName(objectName);
}
CAircraftPartsList IInterpolator::getPartsBeforeTime(const CCallsign &callsign, qint64 cutoffTime, BlackCore::IInterpolator::PartsStatus &partsStatus)

View File

@@ -23,7 +23,7 @@ namespace BlackCore
{
//! Interpolator, calculation inbetween positions
class BLACKCORE_EXPORT IInterpolator :
public BlackMisc::CContinuousWorker,
public QObject,
public BlackMisc::Simulation::CRemoteAircraftAware
{
Q_OBJECT
@@ -80,7 +80,7 @@ namespace BlackCore
protected:
//! Constructor
IInterpolator(BlackMisc::Simulation::IRemoteAircraftProvider *provider, const QString &workerName, QObject *parent = nullptr);
IInterpolator(BlackMisc::Simulation::IRemoteAircraftProvider *provider, const QString &objectName, QObject *parent);
bool m_withDebugMsg = false; //!< allows to disable debug messages
};