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

KDE's Doxygen guidelines are available online.