Kgapi

change.h
1 /*
2  Copyright 2012 Andrius da Costa Ribas <[email protected]>
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Lesser General Public
6  License as published by the Free Software Foundation; either
7  version 2.1 of the License, or (at your option) version 3, or any
8  later version accepted by the membership of KDE e.V. (or its
9  successor approved by the membership of KDE e.V.), which shall
10  act as a proxy defined in Section 6 of version 3 of the license.
11 
12  This library is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU Lesser General Public License for more details.
16 
17  You should have received a copy of the GNU Lesser General Public
18  License along with this library. If not, see <https://www.gnu.org/licenses/>.
19 */
20 
21 #ifndef LIBKGAPI2_DRIVE_CHANGE_H
22 #define LIBKGAPI2_DRIVE_CHANGE_H
23 
24 #include "types.h"
25 #include "object.h"
26 #include "kgapidrive_export.h"
27 
28 #include <QString>
29 #include <QUrl>
30 
31 namespace KGAPI2
32 {
33 
34 namespace Drive
35 {
36 
47 class KGAPIDRIVE_EXPORT Change: public KGAPI2::Object
48 {
49  public:
50  explicit Change();
51  explicit Change(const Change& other);
52  ~Change() override;
53  bool operator==(const Change &other) const;
54  bool operator!=(const Change &other) const { return !operator==(other); }
55 
59  qlonglong id() const;
60 
64  QString fileId() const;
65 
69  QUrl selfLink() const;
70 
74  bool deleted() const;
75 
81  FilePtr file() const;
82 
83  static ChangePtr fromJSON(const QByteArray &jsonData);
84  static ChangesList fromJSONFeed(const QByteArray &jsonData, FeedData &feedData);
85 
86  private:
87  class Private;
88  Private * const d;
89  friend class Private;
90  friend class File;
91 };
92 
93 } /* namespace Drive */
94 
95 } /* namespace KGAPI2 */
96 
97 #endif // LIBKGAPI2_DRIVE_CHANGE_H
Base class for all objects.
Definition: object.h:45
Change contains the representation of a change to a file.
Definition: change.h:47
Structure to store additional information about a feed.
Definition: types.h:38
A job to fetch a single map tile described by a StaticMapUrl.
Definition: blog.h:30
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sun May 31 2020 22:38:47 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.