Kgapi

tasklistfetchjob.h
1/*
2 * This file is part of LibKGAPI library
3 *
4 * SPDX-FileCopyrightText: 2013 Daniel Vrátil <dvratil@redhat.com>
5 *
6 * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
7 */
8
9#pragma once
10
11#include "fetchjob.h"
12#include "kgapitasks_export.h"
13
14#include <QScopedPointer>
15
16namespace KGAPI2
17{
18
19/**
20 * @brief A job to fetch all tasklists from user's Google Tasks account.
21 *
22 * @author Daniel Vrátil <dvratil@redhat.com>
23 * @since 2.0
24 */
25class KGAPITASKS_EXPORT TaskListFetchJob : public KGAPI2::FetchJob
26{
27 Q_OBJECT
28
29public:
30 /**
31 * @brief Constructs a job that will fetch all tasklists from user's
32 * Google Tasks account
33 *
34 * @param account Account to authenticate the request
35 * @param parent
36 */
37 explicit TaskListFetchJob(const AccountPtr &account, QObject *parent = nullptr);
38
39 /**
40 * @brief Destructor
41 */
43
44protected:
45 /**
46 * @brief KGAPI2::Job::start implementation
47 */
48 void start() override;
49
50 /**
51 * @brief KGAPI2::FetchJob::handleReplyWithItems implementation
52 *
53 * @param reply
54 * @param rawData
55 */
56 ObjectsList handleReplyWithItems(const QNetworkReply *reply, const QByteArray &rawData) override;
57
58private:
59 class Private;
61 friend class Private;
62};
63
64} // namespace KGAPI2
Abstract superclass for all jobs that fetch resources from Google.
Definition fetchjob.h:25
A job to fetch all tasklists from user's Google Tasks account.
~TaskListFetchJob() override
Destructor.
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 Jul 19 2024 11:58:18 by doxygen 1.11.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.