Kgapi

calendarmodifyjob.h
1 /*
2  * This file is part of LibKGAPI library
3  *
4  * Copyright (C) 2013 Daniel Vrátil <[email protected]>
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) version 3, or any
10  * later version accepted by the membership of KDE e.V. (or its
11  * successor approved by the membership of KDE e.V.), which shall
12  * act as a proxy defined in Section 6 of version 3 of the license.
13  *
14  * This library is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  * GNU Lesser General Public License for more details.
18  *
19  * You should have received a copy of the GNU Lesser General Public
20  * License along with this library. If not, see <https://www.gnu.org/licenses/>.
21  */
22 
23 #ifndef LIBKGAPI2_CALENDARMODIFYJOB_H
24 #define LIBKGAPI2_CALENDARMODIFYJOB_H
25 
26 #include "modifyjob.h"
27 #include "kgapicalendar_export.h"
28 
29 #include <QScopedPointer>
30 
31 namespace KGAPI2 {
32 
39 class KGAPICALENDAR_EXPORT CalendarModifyJob : public KGAPI2::ModifyJob
40 {
41  Q_OBJECT
42 
43  public:
44 
53  explicit CalendarModifyJob(const CalendarPtr &calendar,
54  const AccountPtr &account, QObject* parent = nullptr);
55 
64  explicit CalendarModifyJob(const CalendarsList &calendars,
65  const AccountPtr &account, QObject* parent = nullptr);
66 
70  ~CalendarModifyJob() override;
71 
72  protected:
73 
77  void start() override;
78 
85  ObjectsList handleReplyWithItems(const QNetworkReply *reply,
86  const QByteArray& rawData) override;
87 
88  private:
89  class Private;
91  friend class Private;
92 };
93 
94 } // namespace KGAPI2
95 
96 #endif // LIBKGAPI2_CALENDARMODIFYJOB_H
A job to fetch a single map tile described by a StaticMapUrl.
Definition: blog.h:30
A job to modify calendars on user&#39;s Google Calendar account.
Abstract superclass for all jobs that somehow modify resources on Google.
Definition: modifyjob.h:38
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Wed May 27 2020 22:36:27 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.