Kgapi

parentreference.h
1 /*
2  SPDX-FileCopyrightText: 2012 Andrius da Costa Ribas <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5 */
6 
7 #ifndef LIBKGAPI2_DRIVEPARENTREFERENCE_H
8 #define LIBKGAPI2_DRIVEPARENTREFERENCE_H
9 
10 #include "types.h"
11 #include "object.h"
12 #include "file.h"
13 #include "kgapidrive_export.h"
14 
15 #include <QString>
16 #include <QUrl>
17 
18 namespace KGAPI2
19 {
20 
21 namespace Drive
22 {
23 
34 class KGAPIDRIVE_EXPORT ParentReference: public KGAPI2::Object
35 {
36 
37  public:
38  explicit ParentReference(const QString &id);
39  explicit ParentReference(const ParentReference &other);
40  ~ParentReference() override;
41  bool operator==(const ParentReference &other) const;
42  bool operator!=(const ParentReference &other) const { return !operator==(other); }
43 
47  QString id() const;
48 
52  QUrl selfLink() const;
53 
57  QUrl parentLink() const;
58 
62  bool isRoot() const;
63 
64  static ParentReferencePtr fromJSON(const QByteArray &jsonData);
65  static ParentReferencesList fromJSONFeed(const QByteArray &jsonData);
66  static QByteArray toJSON(const ParentReferencePtr &reference);
67 
68  private:
69  class Private;
70  Private *const d;
71  friend class Private;
72  friend class File;
73  friend class File::Private;
74 };
75 
76 } /* namespace Drive */
77 
78 } /* namespace KGAPI2 */
79 
80 #endif // LIBKGAPI2_DRIVEPARENTREFERENCE_H
ParentReference contains a reference to a file&#39;s parent.
Base class for all objects.
Definition: object.h:31
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 Fri Dec 4 2020 23:11:34 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.