Kgapi

postsearchjob.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{
14namespace Blogger
15{
16
17class KGAPIBLOGGER_EXPORT PostSearchJob : public KGAPI2::FetchJob
18{
19 Q_OBJECT
20
21 Q_PROPERTY(bool fetchBodies READ fetchBodies WRITE setFetchBodies)
22public:
23 explicit PostSearchJob(const QString &blogId, const QString &query, const AccountPtr &account = AccountPtr(), QObject *parent = nullptr);
24 ~PostSearchJob() override;
25
26 bool fetchBodies() const;
27 void setFetchBodies(bool fetchBodies);
28
29protected:
30 void start() override;
31 ObjectsList handleReplyWithItems(const QNetworkReply *reply, const QByteArray &rawData) override;
32
33private:
34 class Private;
35 Private *const d;
36 friend class Private;
37};
38}
39}
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 Tue Mar 26 2024 11:19:51 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.