Kgapi

blog.h
1 /*
2  * SPDX-FileCopyrightText: 2014 Daniel Vr├ítil <[email protected]>
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 "object.h"
10 #include "kgapiblogger_export.h"
11 
12 #include <QDateTime>
13 #include <QVariant>
14 
15 namespace KGAPI2
16 {
17 
18 namespace Blogger
19 {
20 
21 class KGAPIBLOGGER_EXPORT Blog : public KGAPI2::Object
22 {
23  public:
24  explicit Blog();
25  ~Blog();
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 
43  private:
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
53 
Base class for all objects.
Definition: object.h:30
A job to fetch a single map tile described by a StaticMapUrl.
Definition: blog.h:15
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sat Oct 16 2021 23:13:14 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.