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