Kgapi

eventmodifyjob.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 LIBKGAPI2_EVENTMODIFYJOB_H
10 #define LIBKGAPI2_EVENTMODIFYJOB_H
11 
12 #include "modifyjob.h"
13 #include "enums.h"
14 #include "kgapicalendar_export.h"
15 
16 #include <QScopedPointer>
17 
18 namespace KGAPI2 {
19 
26 class KGAPICALENDAR_EXPORT EventModifyJob : public KGAPI2::ModifyJob
27 {
28  Q_OBJECT
29 
30  Q_PROPERTY(KGAPI2::SendUpdatesPolicy sendUpdates
31  READ sendUpdates
32  WRITE setSendUpdates
33  NOTIFY sendUpdatesChanged)
34  public:
35 
45  explicit EventModifyJob(const EventPtr &event, const QString &calendarId,
46  const AccountPtr &account, QObject* parent = nullptr);
47 
57  explicit EventModifyJob(const EventsList &events, const QString &calendarId,
58  const AccountPtr &account, QObject* parent = nullptr);
59 
63  ~EventModifyJob() override;
64 
65  KGAPI2::SendUpdatesPolicy sendUpdates() const;
66  void setSendUpdates(KGAPI2::SendUpdatesPolicy updatesPolicy);
67 
68  Q_SIGNALS:
69  void sendUpdatesChanged(KGAPI2::SendUpdatesPolicy policy);
70 
71  protected:
72 
76  void start() override;
77 
84  ObjectsList handleReplyWithItems(const QNetworkReply *reply, const QByteArray& rawData) override;
85 
86  private:
87  class Private;
89  friend class Private;
90 
91 };
92 
93 } // namespace KGAPI
94 
95 #endif // LIBKGAPI2_EVENTMODIFYJOB_H
A job to fetch a single map tile described by a StaticMapUrl.
Definition: blog.h:16
A job to modify events in a calendar on user&#39;s Google Calendar account.
Abstract superclass for all jobs that somehow modify resources on Google.
Definition: modifyjob.h:24
SendUpdatesPolicy
Determines whether Google Calendar should send updates to participants.
Definition: enums.h:27
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sun Jul 5 2020 23:10:21 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.