#ifndef SCIQLOP_AMDAPROVIDER_H #define SCIQLOP_AMDAPROVIDER_H #include "AmdaGlobal.h" #include #include #include Q_DECLARE_LOGGING_CATEGORY(LOG_AmdaProvider) class QNetworkReply; class QNetworkRequest; /** * @brief The AmdaProvider class is an example of how a data provider can generate data */ class SCIQLOP_AMDA_EXPORT AmdaProvider : public IDataProvider { public: explicit AmdaProvider(); void requestDataLoading(QUuid acqIdentifier, const DataProviderParameters ¶meters) override; void requestDataAborting(QUuid acqIdentifier) override; private slots: void onReplyDownloadProgress(QUuid, const QNetworkRequest &, double progress); private: void retrieveData(QUuid token, const SqpRange &dateTime, const QVariantHash &data); void updateRequestProgress(QUuid acqIdentifier, std::shared_ptr request, double progress); std::map, double> > m_AcqIdToRequestProgressMap; }; #endif // SCIQLOP_AMDAPROVIDER_H