Kgapi

calendarcreatejob.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_CALENDARCREATEJOB_H
10 #define LIBKGAPI2_CALENDARCREATEJOB_H
11 
12 #include "createjob.h"
13 #include "kgapicalendar_export.h"
14 
15 #include <QScopedPointer>
16 
17 namespace KGAPI2 {
18 
26 class KGAPICALENDAR_EXPORT CalendarCreateJob : public KGAPI2::CreateJob
27 {
28  Q_OBJECT
29 
30  public:
31 
40  explicit CalendarCreateJob(const CalendarPtr &calendar,
41  const AccountPtr &account, QObject* parent = nullptr);
42 
51  explicit CalendarCreateJob(const CalendarsList &calendars,
52  const AccountPtr &account, QObject* parent = nullptr);
53 
57  ~CalendarCreateJob() override;
58 
59  protected:
60 
64  void start() override;
65 
72  ObjectsList handleReplyWithItems(const QNetworkReply *reply,
73  const QByteArray& rawData) override;
74 
75  private:
76  class Private;
78  friend class Private;
79 
80 };
81 
82 } // namespace KGAPI2
83 
84 #endif // LIBKGAPI2_CALENDARCREATEJOB_H
Abstract superclass for all jobs that create new objects on the server.
Definition: createjob.h:25
A job to create one or more new calendars in user&#39;s Google Calendar account.
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-2020 The KDE developers.
Generated on Wed Sep 23 2020 23:10:51 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.