Kgapi

pagefetchjob.h
1/*
2 * <one line to give the library's name and an idea of what it does.>
3 * SPDX-FileCopyrightText: 2014 Daniel Vrátil <dvratil@redhat.com>
4 *
5 * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
6 */
7
8#pragma once
9
10#include "fetchjob.h"
11#include "kgapiblogger_export.h"
12#include "page.h"
13
14namespace KGAPI2
15{
16namespace Blogger
17{
18
19class KGAPIBLOGGER_EXPORT PageFetchJob : public KGAPI2::FetchJob
20{
21 Q_OBJECT
22
23public:
24 enum StatusFilter {
25 Draft = 1,
26 Live = 2,
27 Imported = 4,
28
29 All = Draft | Live | Imported
30 };
31 Q_DECLARE_FLAGS(StatusFilters, StatusFilter)
32
33 explicit PageFetchJob(const QString &blogId, const AccountPtr &account = AccountPtr(), QObject *parent = nullptr);
34 explicit PageFetchJob(const QString &blogId, const QString &pageId, const AccountPtr &account = AccountPtr(), QObject *parent = nullptr);
35 ~PageFetchJob() override;
36
37 bool fetchContent() const;
38 void setFetchContent(bool fetchContent);
39
40 StatusFilters statusFilter() const;
41 void setStatusFilter(StatusFilters status);
42
43protected:
44 void start() override;
45 ObjectsList handleReplyWithItems(const QNetworkReply *reply, const QByteArray &rawData) override;
46
47private:
48 class Private;
49 Private *const d;
50 friend class Private;
51};
52}
53}
Abstract superclass for all jobs that fetch resources from Google.
Definition fetchjob.h:25
Q_SCRIPTABLE CaptureState status()
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 Fri Dec 27 2024 11:55:29 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.