diff --git a/core/include/Data/DataProviderParameters.h b/core/include/Data/DataProviderParameters.h index 6e68dda..1ffc96b 100644 --- a/core/include/Data/DataProviderParameters.h +++ b/core/include/Data/DataProviderParameters.h @@ -9,7 +9,10 @@ * @sa IDataProvider */ struct DataProviderParameters { + /// Times for which retrieve data QVector m_Times; + /// Extra data that can be used by the provider to retrieve data + QVariantHash m_Data; }; #endif // SCIQLOP_DATAPROVIDERPARAMETERS_H diff --git a/core/src/Variable/VariableController.cpp b/core/src/Variable/VariableController.cpp index 6242bc9..d034d23 100644 --- a/core/src/Variable/VariableController.cpp +++ b/core/src/Variable/VariableController.cpp @@ -187,7 +187,8 @@ void VariableController::onRequestDataLoading(std::shared_ptr variable // Ask the provider for each data on the dateTimeListNotInCache auto identifier = impl->m_VariableToIdentifier.at(variable); impl->m_VariableToProviderMap.at(variable)->requestDataLoading( - identifier, DataProviderParameters{std::move(dateTimeListNotInCache)}); + identifier, + DataProviderParameters{std::move(dateTimeListNotInCache), variable->metadata()}); } else { emit variable->updated();