1#pragma once
2
3#include <IFetcher.h>
4#include <JenkinsJobInfo.h>
5
6namespace Jenkins
7{
8
9class JobFetcher final : public IFetcher
10{
11 Q_OBJECT
12
13signals:
14 void signalJobsReceived(const QMultiMap<QString, JenkinsJobInfo> &jobs);
15
16public:
17 explicit JobFetcher(const IFetcher::Config &config, const QString &jobUrl, QObject *parent = nullptr);
18
19 void triggerFetch() override;
20
21private:
22 QString mJobUrl;
23
24 void processData(const QJsonDocument &json) override;
25};
26}
27