##// END OF EJS Templates
AmdaProvider.h
44 lines | 1.2 KiB | text/x-c | CLexer
Alexandre Leroux
Inits Amda provider
r348 #ifndef SCIQLOP_AMDAPROVIDER_H
#define SCIQLOP_AMDAPROVIDER_H
#include "AmdaGlobal.h"
#include <Data/IDataProvider.h>
#include <QLoggingCategory>
Implementation of progression
r693 #include <map>
Alexandre Leroux
Inits Amda provider
r348
Q_DECLARE_LOGGING_CATEGORY(LOG_AmdaProvider)
Modify the AmdaProvider to remove from it all network controller...
r358 class QNetworkReply;
Implementation of progression
r693 class QNetworkRequest;
Modify the AmdaProvider to remove from it all network controller...
r358
Alexandre Leroux
Inits Amda provider
r348 /**
* @brief The AmdaProvider class is an example of how a data provider can generate data
*/
class SCIQLOP_AMDA_EXPORT AmdaProvider : public IDataProvider {
Implement progression for AmdaProvider.
r695 Q_OBJECT
Alexandre Leroux
Inits Amda provider
r348 public:
explicit AmdaProvider();
Alexandre Leroux
Generates and registers clone provider
r656 std::shared_ptr<IDataProvider> clone() const override;
Alexandre Leroux
Inits Amda provider
r348
Implementation of V5 acquisition
r510 void requestDataLoading(QUuid acqIdentifier, const DataProviderParameters &parameters) override;
Alexandre Leroux
Inits Amda provider
r348
Implementation of V5 acquisition
r510 void requestDataAborting(QUuid acqIdentifier) override;
Implement of the abort download process
r388
Implementation of progression
r693 private slots:
Implement progression for AmdaProvider.
r695 void onReplyDownloadProgress(QUuid acqIdentifier,
std::shared_ptr<QNetworkRequest> networkRequest, double progress);
Implementation of progression
r693
Alexandre Leroux
Inits Amda provider
r348 private:
Change SqpRange for SqpDateTime
r471 void retrieveData(QUuid token, const SqpRange &dateTime, const QVariantHash &data);
Implementation of progression
r693
void updateRequestProgress(QUuid acqIdentifier, std::shared_ptr<QNetworkRequest> request,
double progress);
std::map<QUuid, std::map<std::shared_ptr<QNetworkRequest>, double> >
m_AcqIdToRequestProgressMap;
Alexandre Leroux
Inits Amda provider
r348 };
#endif // SCIQLOP_AMDAPROVIDER_H