Kgapi

comment.h
1/*
2 * SPDX-FileCopyrightText: 2014 Daniel Vrátil <dvratil@redhat.com>
3 *
4 * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5 */
6
7#pragma once
8
9#include "kgapiblogger_export.h"
10#include "object.h"
11
12#include <QDateTime>
13
14namespace KGAPI2
15{
16namespace Blogger
17{
18
19class KGAPIBLOGGER_EXPORT Comment : public KGAPI2::Object
20{
21public:
22 explicit Comment();
23 ~Comment() override;
24
25 QString id() const;
26 void setId(const QString &id);
27
28 QString postId() const;
29 void setPostId(const QString &postId);
30
31 QString blogId() const;
32 void setBlogId(const QString &blogId);
33
34 QDateTime published() const;
35 void setPublished(const QDateTime &published);
36
37 QDateTime updated() const;
38 void setUpdated(const QDateTime &updated);
39
40 QString content() const;
41 void setContent(const QString &content);
42
43 QString authorId() const;
44 void setAuthorId(const QString &authorId);
45
46 QString authorName() const;
47 void setAuthorName(const QString &authorName);
48
49 QUrl authorUrl() const;
50 void setAuthorUrl(const QUrl &url);
51
52 QUrl authorImageUrl() const;
53 void setAuthorImageUrl(const QUrl &authorImageUrl);
54
55 QString inReplyTo() const;
56 void setInReplyTo(const QString &inReplyTo);
57
58 QString status() const;
59 void setStatus(const QString &status);
60
61 static CommentPtr fromJSON(const QByteArray &rawData);
62 static ObjectsList fromJSONFeed(const QByteArray &rawData, FeedData &feedData);
63
64private:
65 Q_DISABLE_COPY(Comment)
66
67 class Private;
68 Private *const d;
69 friend class Private;
70};
71}
72}
Base class for all objects.
Definition object.h:31
Q_SCRIPTABLE CaptureState status()
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-2024 The KDE developers.
Generated on Fri Dec 6 2024 12:11:00 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.