Kgapi

contactgroupfetchjob.h
1/*
2 * This file is part of LibKGAPI library
3 *
4 * SPDX-FileCopyrightText: 2022 Claudio Cambra <claudio.cambra@kde.org>
5 * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
6 *
7 */
8
9#pragma once
10
11#include "fetchjob.h"
12#include "kgapipeople_export.h"
13
14namespace KGAPI2::People
15{
16
17class KGAPIPEOPLE_EXPORT ContactGroupFetchJob : public KGAPI2::FetchJob
18{
19 Q_OBJECT
20
21public:
22 explicit ContactGroupFetchJob(const AccountPtr &account, QObject *parent = nullptr);
23 ContactGroupFetchJob(const QString &resourceName,
24 const AccountPtr &account,
25 QObject* parent = nullptr); // Use the resourceName as an id for the contact group
26 ~ContactGroupFetchJob();
27
28protected:
29 void start() override;
30 ObjectsList handleReplyWithItems(const QNetworkReply *reply,
31 const QByteArray &rawData) override;
32
33private:
34 class Private;
35 std::unique_ptr<Private> 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()
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:54:35 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.