AmdaProvider.h
38 lines
| 999 B
| text/x-c
|
CLexer
|
r377 | #ifndef SCIQLOP_AMDAPROVIDER_H | ||
#define SCIQLOP_AMDAPROVIDER_H | ||||
#include "AmdaGlobal.h" | ||||
#include <Common/spimpl.h> | ||||
#include <Data/IDataProvider.h> | ||||
#include <QLoggingCategory> | ||||
Q_DECLARE_LOGGING_CATEGORY(LOG_AmdaProvider) | ||||
r388 | class QNetworkReply; | |||
|
r377 | /** | ||
* @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(); | ||||
|
r408 | void requestDataLoading(QUuid token, const DataProviderParameters ¶meters) override; | ||
|
r377 | |||
private: | ||||
|
r408 | void retrieveData(QUuid token, const SqpDateTime &dateTime); | ||
|
r377 | |||
class AmdaProviderPrivate; | ||||
spimpl::unique_impl_ptr<AmdaProviderPrivate> impl; | ||||
|
r378 | |||
r388 | // private slots: | |||
// void httpFinished(QNetworkReply *reply, QUuid dataId) noexcept; | ||||
// void httpDownloadFinished(QNetworkReply *reply, QUuid dataId) noexcept; | ||||
// void httpDownloadReadyRead(QNetworkReply *reply, QUuid dataId) noexcept; | ||||
|
r377 | }; | ||
#endif // SCIQLOP_AMDAPROVIDER_H | ||||