File indexing completed on 2024-05-12 05:22:25

0001 /*
0002  * This file is part of LibKGAPI library
0003  *
0004  * SPDX-FileCopyrightText: 2023 Claudio Cambra <claudio.cambra@kde.org>
0005  * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0006  *
0007  */
0008 
0009 #pragma once
0010 
0011 #include "createjob.h"
0012 #include "kgapipeople_export.h"
0013 
0014 namespace KGAPI2::People
0015 {
0016 
0017 class KGAPIPEOPLE_EXPORT ContactGroupCreateJob : public KGAPI2::CreateJob
0018 {
0019     Q_OBJECT
0020 
0021 public:
0022     explicit ContactGroupCreateJob(const ContactGroupList &contactGroups, const AccountPtr &account, QObject *parent = nullptr);
0023     explicit ContactGroupCreateJob(const ContactGroupPtr &contactGroup, const AccountPtr &account, QObject* parent = nullptr);
0024     ~ContactGroupCreateJob();
0025 
0026 protected:
0027     void start() override;
0028     ObjectsList handleReplyWithItems(const QNetworkReply *reply,
0029                                      const QByteArray &rawData) override;
0030 
0031 private:
0032     class Private;
0033     std::unique_ptr<Private> d;
0034     friend class Private;
0035 };
0036 
0037 }