| 1 | #pragma once |
|---|---|
| 2 | |
| 3 | #include <IFetcher.h> |
| 4 | #include <JenkinsJobInfo.h> |
| 5 | |
| 6 | namespace Jenkins |
| 7 | { |
| 8 | |
| 9 | class StageFetcher : public IFetcher |
| 10 | { |
| 11 | Q_OBJECT |
| 12 | |
| 13 | signals: |
| 14 | void signalStagesReceived(const QVector<JenkinsStageInfo> stages); |
| 15 | |
| 16 | public: |
| 17 | StageFetcher(const IFetcher::Config &config, const JenkinsJobBuildInfo &build, QObject *parent = nullptr); |
| 18 | |
| 19 | void triggerFetch() override; |
| 20 | |
| 21 | private: |
| 22 | JenkinsJobBuildInfo mBuild; |
| 23 | |
| 24 | void processData(const QJsonDocument &json) override; |
| 25 | }; |
| 26 | |
| 27 | } |
| 28 |