File indexing completed on 2024-05-12 05:22:21

0001 /*
0002  * This file is part of LibKGAPI library
0003  *
0004  * SPDX-FileCopyrightText: 2013 Daniel Vrátil <dvratil@redhat.com>
0005  *
0006  * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0007  */
0008 
0009 #pragma once
0010 
0011 #include "parentreference.h"
0012 
0013 #include <QVariantMap>
0014 
0015 namespace KGAPI2
0016 {
0017 
0018 namespace Drive
0019 {
0020 
0021 class Q_DECL_HIDDEN ParentReference::Private
0022 {
0023 public:
0024     Private();
0025     Private(const Private &other);
0026 
0027     QString id;
0028     QUrl selfLink;
0029     QUrl parentLink;
0030     bool isRoot;
0031 
0032     static ParentReferencePtr fromJSON(const QVariantMap &map);
0033     static QVariantMap toJSON(const ParentReferencePtr &reference);
0034 };
0035 
0036 } // namespace Drive
0037 
0038 } // namespace KGAPI2