Kgapi

blogfetchjob.h
1/*
2 * SPDX-FileCopyrightText: 2014 Daniel Vrátil <dvratil@redhat.com>
3 *
4 * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5 */
6
7#pragma once
8
9#include "fetchjob.h"
10#include "kgapiblogger_export.h"
11
12namespace KGAPI2
13{
14
15namespace Blogger
16{
17
18class KGAPIBLOGGER_EXPORT BlogFetchJob : public KGAPI2::FetchJob
19{
20 Q_OBJECT
21
22public:
23 enum FetchBy { FetchByBlogId, FetchByBlogUrl, FetchByUserId };
24 explicit BlogFetchJob(const QString &id, FetchBy fetchBy, const AccountPtr &account = AccountPtr(), QObject *parent = nullptr);
25 ~BlogFetchJob() override;
26
27protected:
28 void start() override;
29 ObjectsList handleReplyWithItems(const QNetworkReply *reply, const QByteArray &rawData) override;
30
31private:
32 class Private;
33 Private *const d;
34 friend class Private;
35};
36
37} // namespace Blogger
38} // namespace KGAPI2
Abstract superclass for all jobs that fetch resources from Google.
Definition fetchjob.h:25
Q_SCRIPTABLE Q_NOREPLY void start()
A job to fetch a single map tile described by a StaticMapUrl.
Definition blog.h:16
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:17:40 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.