Kgapi

personphotoupdatejob.h
1/*
2 * This file is part of LibKGAPI library
3 *
4 * SPDX-FileCopyrightText: 2023 Claudio Cambra <claudio.cambra@kde.org>
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 "modifyjob.h"
12#include "kgapipeople_export.h"
13
14namespace KGAPI2::People
15{
16
17class KGAPIPEOPLE_EXPORT PersonPhotoUpdateJob : public KGAPI2::ModifyJob
18{
19 Q_OBJECT
20
21public:
22 explicit PersonPhotoUpdateJob(const QString &personResourceName, const QByteArray &photoRawData, const AccountPtr &account, QObject* parent = nullptr);
23 ~PersonPhotoUpdateJob();
24
25protected:
26 void start() override;
27
28 void dispatchRequest(QNetworkAccessManager *accessManager,
29 const QNetworkRequest &request,
30 const QByteArray &data,
31 const QString &contentType) override;
32 ObjectsList handleReplyWithItems(const QNetworkReply *reply,
33 const QByteArray &rawData) override;
34
35private:
36 class Private;
37 std::unique_ptr<Private> d;
38 friend class Private;
39};
40
41}
Abstract superclass for all jobs that somehow modify resources on Google.
Definition modifyjob.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 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.