Kgapi

calendarmodifyjob.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 "kgapicalendar_export.h"
12#include "modifyjob.h"
13
14#include <QScopedPointer>
15
16namespace KGAPI2
17{
18
19/**
20 * @brief A job to modify calendars on user's Google Calendar account.
21 *
22 * @author Daniel Vrátil <dvratil@redhat.com>
23 * @since 2.0
24 */
25class KGAPICALENDAR_EXPORT CalendarModifyJob : public KGAPI2::ModifyJob
26{
27 Q_OBJECT
28
29public:
30 /**
31 * @brief Constructs a job that will write changes in given @p calendar to
32 * corresponding calendar on user's Google Calendar account
33 *
34 * @param calendar Calendar to modify
35 * @param account Account to authenticate the request
36 * @param parent
37 */
38 explicit CalendarModifyJob(const CalendarPtr &calendar, const AccountPtr &account, QObject *parent = nullptr);
39
40 /**
41 * @brief Constructs a job that will write changes in given @p calendars to
42 * corresponding calendars on user's Google Calendar account
43 *
44 * @param calendars Calendars to modify
45 * @param account Account to authenticate requests
46 * @param parent
47 */
48 explicit CalendarModifyJob(const CalendarsList &calendars, const AccountPtr &account, QObject *parent = nullptr);
49
50 /**
51 * @brief Destructor
52 */
54
55protected:
56 /**
57 * @brief KGAPI2::Job::start implementation
58 */
59 void start() override;
60
61 /**
62 * @brief KGAPI2::ModifyJob::handleReplyWithItems implementation
63 *
64 * @param reply
65 * @param rawData
66 */
67 ObjectsList handleReplyWithItems(const QNetworkReply *reply, const QByteArray &rawData) override;
68
69private:
70 class Private;
72 friend class Private;
73};
74
75} // namespace KGAPI2
A job to modify calendars on user's Google Calendar account.
~CalendarModifyJob() override
Destructor.
Abstract superclass for all jobs that somehow modify resources on Google.
Definition modifyjob.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 Fri Jul 19 2024 11:58:17 by doxygen 1.11.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.