Kgapi

blog.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#include <QVariant>
14
15namespace KGAPI2
16{
17
18namespace Blogger
19{
20
21class KGAPIBLOGGER_EXPORT Blog : public KGAPI2::Object
22{
23public:
24 explicit Blog();
25 ~Blog() override;
26
27 QString id() const;
28 QString name() const;
29 QString description() const;
30 QDateTime published() const;
31 QDateTime updated() const;
32 QUrl url() const;
33 uint postsCount() const;
34 uint pagesCount() const;
35 QString language() const;
36 QString country() const;
37 QString languageVariant() const;
38 QVariant customMetaData() const;
39
40 static BlogPtr fromJSON(const QByteArray &rawData);
41 static BlogsList fromJSONFeed(const QByteArray &rawData);
42
43private:
44 Q_DISABLE_COPY(Blog)
45
46 class Private;
47 Private *const d;
48 friend class Private;
49};
50
51} // namespace Blogger
52} // namespace KGAPI2
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-2024 The KDE developers.
Generated on Fri Dec 13 2024 11:54:37 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.