Kgapi
9#include "kgapiblogger_export.h"
22class KGAPIBLOGGER_EXPORT Post :
public KGAPI2::Object
29 void setId(
const QString &
id);
32 void setBlogId(
const QString &
id);
34 QDateTime published()
const;
35 void setPublished(
const QDateTime &published);
37 QDateTime updated()
const;
38 void setUpdated(
const QDateTime &updated);
41 void setUrl(
const QUrl &url);
43 QString title()
const;
44 void setTitle(
const QString &title);
46 QString content()
const;
47 void setContent(
const QString &content);
49 QString authorId()
const;
50 QString authorName()
const;
51 QUrl authorUrl()
const;
52 QUrl authorImageUrl()
const;
54 uint commentsCount()
const;
56 QStringList labels()
const;
57 void setLabels(
const QStringList &labels);
59 QVariant customMetaData()
const;
60 void setCustomMetaData(
const QVariant &metadata);
63 void setLocation(
const QString &location);
65 double latitude()
const;
66 void setLatitude(
double lat);
68 double longitude()
const;
69 void setLongitute(
double lng);
71 QList<QUrl> images()
const;
72 void setImages(
const QList<QUrl> &images);
76 static PostPtr fromJSON(
const QByteArray &json);
77 static ObjectsList fromJSONFeed(
const QByteArray &json, FeedData &feedData);
78 static QByteArray toJSON(
const PostPtr &post);
Q_SCRIPTABLE CaptureState status()
A job to fetch a single map tile described by a StaticMapUrl.
QVariant location(const QVariant &res)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:57:30 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.