KNewStuff
provider.h
40 * @deprecated since 6.9 Use ProviderBase to implement providers (only in-tree supported). Use ProviderCore to manage instances of base.
45 "Use ProviderBase to implement providers (only in-tree supported). Use ProviderCore to manage instances of base.") Provider
112 struct KNEWSTUFFCORE_DEPRECATED_VERSION(6, 9, "Use KNSCore::CategoryMetadata") CategoryMetadata {
125 enum KNEWSTUFFCORE_DEPRECATED_VERSION(6, 9, "Use KNSCore::SearchPreset::SearchPresetTypes") SearchPresetTypes {
137 AllEntries, ///< preset indicating all possible entries, such as a crawlable list. Might be intense to load.
virtual void loadEntries(const KNSCore::Provider::SearchRequest &request)=0
load the given search and return given page
virtual void loadBasics()
Request loading of the basic information for this provider.
Definition provider.h:254
virtual bool setProviderXML(const QDomElement &xmldata)=0
Set the provider data xml, to initialize the provider.
virtual void loadComments(const KNSCore::Entry &, int, int)
Request a loading of comments from this provider.
Definition provider.h:215
void personLoaded(const std::shared_ptr< KNSCore::Author > author)
Fired when the details of a person have been loaded.
void commentsLoaded(const QList< std::shared_ptr< KNSCore::Comment > > comments)
Fired when new comments have been loaded.
virtual QString id() const =0
A unique Id for this provider (the url in most cases)
SearchPresetTypes
The SearchPresetTypes enum the preset type enum is a helper to identify the kind of label and icon th...
Definition provider.h:125
@ AllEntries
preset indicating all possible entries, such as a crawlable list. Might be intense to load.
Definition provider.h:137
@ Recommended
preset for recommended. This may be customized by the server per user.
Definition provider.h:132
void basicsLoaded()
Fired when the provider's basic information has been fetched and updated.
virtual void loadPerson(const QString &)
Request loading of the details for a specific person with the given username.
Definition provider.h:228
void searchPresetsLoaded(const QList< KNSCore::Provider::SearchPreset > &presets)
Fires when the provider has loaded search presets.
Describes a category: id/name/displayName.
Definition provider.h:112
Describes a search request that may come from the provider.
Definition provider.h:145
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 6 2024 12:13:34 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 6 2024 12:13:34 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.