File indexing completed on 2024-05-05 05:13:02
0001 /* 0002 This file is part of Akregator. 0003 0004 SPDX-FileCopyrightText: 2018 Daniel Vrátil <dvratil@kde.org> 0005 0006 SPDX-License-Identifier: GPL-2.0-or-later WITH Qt-Commercial-exception-1.0 0007 */ 0008 0009 #pragma once 0010 0011 #include <Syndication/DataRetriever> 0012 0013 class KJob; 0014 0015 namespace Akregator 0016 { 0017 class FeedRetriever : public Syndication::DataRetriever 0018 { 0019 Q_OBJECT 0020 public: 0021 FeedRetriever(); 0022 0023 void retrieveData(const QUrl &url) override; 0024 void abort() override; 0025 [[nodiscard]] int errorCode() const override; 0026 0027 private Q_SLOTS: 0028 void getFinished(KJob *job); 0029 0030 private: 0031 KJob *mJob = nullptr; 0032 int mError = 0; 0033 }; 0034 }