KNewStuff
knewstuff3/core/provider.h
Go to the documentation of this file.
71 SearchRequest(SortMode sortMode_ = Newest, const QString& searchTerm_ = QString(), const QStringList& categories_ = QStringList(), int page_ = -1, int pageSize_ = 20)
72 :sortMode(sortMode_), searchTerm(searchTerm_), categories(categories_), page(page_), pageSize(pageSize_)
138 void loadingFinished(const KNS3::Provider::SearchRequest&, const KNS3::EntryInternal::List&) const;
virtual void loadEntries(const KNS3::Provider::SearchRequest &request)=0
load the given search and return given page
virtual void loadPayloadLink(const EntryInternal &entry, int linkId)=0
void signalInformation(const QString &) const
virtual KUrl icon() const
Retrieves the icon URL for this provider.
Definition: knewstuff3/core/provider.cpp:53
void loadingFailed(const KNS3::Provider::SearchRequest &)
virtual bool userCanBecomeFan()
Definition: knewstuff3/core/provider.h:132
virtual QString name() const
Retrieves the common name of the provider.
Definition: knewstuff3/core/provider.cpp:48
virtual bool isInitialized() const =0
void payloadLinkLoaded(const KNS3::EntryInternal &)
used to keep track of a search
Definition: knewstuff3/core/provider.h:64
void providerInitialized(KNS3::Provider *)
virtual bool setProviderXML(const QDomElement &xmldata)=0
Set the provider data xml, to initialize the provider.
virtual void vote(const EntryInternal &entry, uint rating)
Definition: knewstuff3/core/provider.h:130
virtual void becomeFan(const EntryInternal &entry)
Definition: knewstuff3/core/provider.h:133
QString searchTerm
Definition: knewstuff3/core/provider.h:66
void loadingFinished(const KNS3::Provider::SearchRequest &, const KNS3::EntryInternal::List &) const
virtual QString id() const =0
A unique Id for this provider (the url in most cases)
void signalError(const QString &) const
SearchRequest(SortMode sortMode_=Newest, const QString &searchTerm_=QString(), const QStringList &categories_=QStringList(), int page_=-1, int pageSize_=20)
Definition: knewstuff3/core/provider.h:71
virtual void setCachedEntries(const KNS3::EntryInternal::List &cachedEntries)=0
QStringList categories
Definition: knewstuff3/core/provider.h:67
QString hashForRequest() const
Definition: knewstuff3/core/provider.cpp:33
void entryDetailsLoaded(const KNS3::EntryInternal &)
virtual void loadEntryDetails(const KNS3::EntryInternal &)
Definition: knewstuff3/core/provider.h:126
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:49 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:49 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.