Kgapi

eventmovejob.h
1 /*
2  * This file is part of LibKGAPI library
3  *
4  * SPDX-FileCopyrightText: 2013 Daniel Vrátil <[email protected]>
5  *
6  * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
7  */
8 
9 #ifndef KGAPI2_EVENTMOVEJOB_H
10 #define KGAPI2_EVENTMOVEJOB_H
11 
12 #include "modifyjob.h"
13 #include "kgapicalendar_export.h"
14 
15 #include <QScopedPointer>
16 
17 namespace KGAPI2
18 {
19 
26 class KGAPICALENDAR_EXPORT EventMoveJob : public KGAPI2::ModifyJob
27 {
28  Q_OBJECT
29 
30  public:
31 
42  explicit EventMoveJob(const EventPtr &event, const QString &sourceCalendarId,
43  const QString &destinationCalendarId,
44  const AccountPtr &account, QObject *parent = nullptr);
45 
56  explicit EventMoveJob(const EventsList &events, const QString &sourceCalendarId,
57  const QString &destinationCalendarId,
58  const AccountPtr &account, QObject *parent = nullptr);
59 
71  explicit EventMoveJob(const QString &eventId, const QString &sourceCalendarId,
72  const QString &destinationCalendarId,
73  const AccountPtr &account, QObject *parent = nullptr);
74 
86  explicit EventMoveJob(const QStringList &eventsIds,
87  const QString &sourceCalendarId,
88  const QString &destinationCalendarId,
89  const AccountPtr &account, QObject *parent = nullptr);
90 
94  ~EventMoveJob() override;
95 
96  protected:
97 
101  void start() override;
102 
111  void dispatchRequest(QNetworkAccessManager *accessManager,
112  const QNetworkRequest &request,
113  const QByteArray &data,
114  const QString &contentType) override;
115 
122  KGAPI2::ObjectsList handleReplyWithItems(const QNetworkReply *reply,
123  const QByteArray &rawData) override;
124 
125  private:
126  class Private;
127  QScopedPointer<Private> const d;
128  friend class Private;
129 
130 };
131 
132 } // namespace KGAPI2
133 
134 #endif // KGAPI2_EVENTMOVEJOB_H
A job that moves events between given calendars.
Definition: eventmovejob.h:26
A job to fetch a single map tile described by a StaticMapUrl.
Definition: blog.h:16
Abstract superclass for all jobs that somehow modify resources on Google.
Definition: modifyjob.h:24
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat Jul 11 2020 23:09:37 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.