##// END OF EJS Templates
Sets the name of the plugin for products and components...
Sets the name of the plugin for products and components Since there is only one common root in the data source widget, it is no longer possible to retrieve on the fly the name of the plugin in which a component or product is located. This name is therefore attached to their creation.

File last commit:

r752:22c6ca1df132
r1036:9c3bb5e93c54
Show More
AmdaProvider.h
44 lines | 1.2 KiB | text/x-c | CLexer
Alexandre Leroux
Inits Amda provider
r377 #ifndef SCIQLOP_AMDAPROVIDER_H
#define SCIQLOP_AMDAPROVIDER_H
#include "AmdaGlobal.h"
#include <Data/IDataProvider.h>
#include <QLoggingCategory>
Implementation of progression
r750 #include <map>
Alexandre Leroux
Inits Amda provider
r377
Q_DECLARE_LOGGING_CATEGORY(LOG_AmdaProvider)
Modify the AmdaProvider to remove from it all network controller...
r388 class QNetworkReply;
Implementation of progression
r750 class QNetworkRequest;
Modify the AmdaProvider to remove from it all network controller...
r388
Alexandre Leroux
Inits Amda provider
r377 /**
* @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.
r752 Q_OBJECT
Alexandre Leroux
Inits Amda provider
r377 public:
explicit AmdaProvider();
Alexandre Leroux
Generates and registers clone provider
r712 std::shared_ptr<IDataProvider> clone() const override;
Alexandre Leroux
Inits Amda provider
r377
Implementation of V5 acquisition
r539 void requestDataLoading(QUuid acqIdentifier, const DataProviderParameters &parameters) override;
Alexandre Leroux
Inits Amda provider
r377
Implementation of V5 acquisition
r539 void requestDataAborting(QUuid acqIdentifier) override;
Implement of the abort download process
r422
Implementation of progression
r750 private slots:
Implement progression for AmdaProvider.
r752 void onReplyDownloadProgress(QUuid acqIdentifier,
std::shared_ptr<QNetworkRequest> networkRequest, double progress);
Implementation of progression
r750
Alexandre Leroux
Inits Amda provider
r377 private:
Change SqpRange for SqpDateTime
r512 void retrieveData(QUuid token, const SqpRange &dateTime, const QVariantHash &data);
Implementation of progression
r750
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
r377 };
#endif // SCIQLOP_AMDAPROVIDER_H