Kgapi

tagline.h
1/*
2 * SPDX-FileCopyrightText: 2021 Daniel Vrátil <dvratil@kde.org>
3 *
4 * SPDX-License-Identifier: LGPL-2.1-only
5 * SPDX-License-Identifier: LGPL-3.0-only
6 * SPDX-License-Identifier: LicenseRef-KDE-Accepted-LGPL
7 */
8
9#pragma once
10
11#include <QSharedDataPointer>
12#include "kgapipeople_export.h"
13
14#include <QString>
15
16#include <optional>
17
18class QJsonObject;
19class QJsonValue;
20
21namespace KGAPI2::People
22{
23class FieldMetadata;
24
25/**
26 * **DEPRECATED**: No data will be returned A brief one-line description of the
27 * person.
28 *
29 * @see https://developers.google.com/people/api/rest/v1/people#tagline
30 * @since 5.23.0
31 **/
32class KGAPIPEOPLE_EXPORT Tagline
33{
34public:
35 /** Constructs a new Tagline **/
36 explicit Tagline();
37 Tagline(const Tagline &);
38 Tagline(Tagline &&) noexcept;
39 Tagline &operator=(const Tagline &);
40 Tagline &operator=(Tagline &&) noexcept;
41 /** Destructor. **/
43
44 bool operator==(const Tagline &) const;
45 bool operator!=(const Tagline &) const;
46
47 [[nodiscard]] static Tagline fromJSON(const QJsonObject &);
48 [[nodiscard]] QJsonValue toJSON() const;
49
50 /** The tagline. **/
51 [[nodiscard]] QString value() const;
52 /** Sets value of the value property. **/
53 void setValue(const QString &value);
54
55 /** Metadata about the tagline. **/
56 [[nodiscard]] FieldMetadata metadata() const;
57 /** Sets value of the metadata property. **/
58 void setMetadata(const FieldMetadata &value);
59
60private:
61 class Private;
63}; // Tagline
64
65} // namespace KGAPI2::People
Metadata about a field.
DEPRECATED: No data will be returned A brief one-line description of the person.
Definition tagline.h:33
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 6 2024 12:11:01 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.