##// END OF EJS Templates
Pass variable metadata as parameters of a request in a provider
Alexandre Leroux -
r411:1232f5544b57
parent child
Show More
@@ -9,7 +9,10
9 9 * @sa IDataProvider
10 10 */
11 11 struct DataProviderParameters {
12 /// Times for which retrieve data
12 13 QVector<SqpDateTime> m_Times;
14 /// Extra data that can be used by the provider to retrieve data
15 QVariantHash m_Data;
13 16 };
14 17
15 18 #endif // SCIQLOP_DATAPROVIDERPARAMETERS_H
@@ -187,7 +187,8 void VariableController::onRequestDataLoading(std::shared_ptr<Variable> variable
187 187 // Ask the provider for each data on the dateTimeListNotInCache
188 188 auto identifier = impl->m_VariableToIdentifier.at(variable);
189 189 impl->m_VariableToProviderMap.at(variable)->requestDataLoading(
190 identifier, DataProviderParameters{std::move(dateTimeListNotInCache)});
190 identifier,
191 DataProviderParameters{std::move(dateTimeListNotInCache), variable->metadata()});
191 192 }
192 193 else {
193 194 emit variable->updated();
General Comments 0
You need to be logged in to leave comments. Login now