@@ -9,7 +9,10 | |||||
9 | * @sa IDataProvider |
|
9 | * @sa IDataProvider | |
10 | */ |
|
10 | */ | |
11 | struct DataProviderParameters { |
|
11 | struct DataProviderParameters { | |
|
12 | /// Times for which retrieve data | |||
12 | QVector<SqpDateTime> m_Times; |
|
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 | #endif // SCIQLOP_DATAPROVIDERPARAMETERS_H |
|
18 | #endif // SCIQLOP_DATAPROVIDERPARAMETERS_H |
@@ -187,7 +187,8 void VariableController::onRequestDataLoading(std::shared_ptr<Variable> variable | |||||
187 | // Ask the provider for each data on the dateTimeListNotInCache |
|
187 | // Ask the provider for each data on the dateTimeListNotInCache | |
188 | auto identifier = impl->m_VariableToIdentifier.at(variable); |
|
188 | auto identifier = impl->m_VariableToIdentifier.at(variable); | |
189 | impl->m_VariableToProviderMap.at(variable)->requestDataLoading( |
|
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 | else { |
|
193 | else { | |
193 | emit variable->updated(); |
|
194 | emit variable->updated(); |
General Comments 0
You need to be logged in to leave comments.
Login now