##// END OF EJS Templates
Implementation of progression
Implementation of progression

File last commit:

r606:7ea0025fca62 feature/SynchroIm...
r606:7ea0025fca62 feature/SynchroIm...
Show More
AmdaProvider.h
41 lines | 1.1 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
r606 #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
r606 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 {
public:
explicit AmdaProvider();
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
r606 private slots:
void onReplyDownloadProgress(QUuid, const QNetworkRequest &, double progress);
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
r606
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