KOSMIndoorMap
35 [[nodiscard]] Error error()
const;
41 [[nodiscard]]
static QUrlQuery commonUrlQuery();
43 friend class QueryManager;
48 Error m_error = NoError;
52class EntitiesQuery :
public Query
57 ~EntitiesQuery()
override;
59 void setItems(std::vector<Wikidata::Q> &&items);
60 [[nodiscard]] std::vector<Wikidata::Item>&& takeResult();
63 void partialResult(EntitiesQuery *query);
67 [[nodiscard]]
bool processReply(
QNetworkReply *reply)
override;
69 std::vector<Wikidata::Q> m_items;
70 std::size_t m_nextBatch = 0;
71 std::vector<Wikidata::Item> m_result;
75class ImageMetadataQuery :
public Query
80 ~ImageMetadataQuery()
override;
82 void setImages(std::vector<QString> &&images);
83 [[nodiscard]] std::vector<Wikidata::Image>&& takeResult();
86 void partialResult(ImageMetadataQuery *query);
90 [[nodiscard]]
bool processReply(
QNetworkReply *reply)
override;
92 std::vector<QString> m_images;
93 std::size_t m_nextBatch = 0;
94 std::vector<Wikidata::Image> m_result;
Executes wikidata queries.
virtual bool processReply(QNetworkReply *reply)=0
Returns @true if this query is complete, @false if another request is needed.
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:54:42 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.