Kgapi

accountinfofetchjob.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 "kgapicore_export.h"
13
14namespace KGAPI2
15{
16
17/**
18 * @brief A job to fetch AccountInfo
19 *
20 * AccountInfo provides basic information about user authenticated by given
21 * Account.
22 *
23 * @author Daniel Vrátil <dvratil@redhat.com>
24 * @since: 2.0
25 */
26class KGAPICORE_EXPORT AccountInfoFetchJob : public KGAPI2::FetchJob
27{
28 Q_OBJECT
29
30public:
31 /**
32 * @brief Constructs a new AccountInfoFetchJob
33 *
34 * @param account Account for which to retrieve the info
35 * @param parent
36 */
37 explicit AccountInfoFetchJob(const AccountPtr &account, QObject *parent = nullptr);
38
39 /**
40 * @brief Destructor
41 */
42 ~AccountInfoFetchJob() override;
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;
60 Private *const d;
61 friend class Private;
62};
63
64} // namespace KGAPI2
A job to fetch AccountInfo.
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:41 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.