Changeset View
Changeset View
Standalone View
Standalone View
src/core/provider_p.h
Context not available. | |||||
26 | 26 | | |||
---|---|---|---|---|---|
27 | #include "entryinternal_p.h" | 27 | #include "entryinternal_p.h" | ||
28 | 28 | | |||
29 | #include "knewstuffcore_export.h" | ||||
30 | | ||||
29 | class KJob; | 31 | class KJob; | ||
30 | 32 | | |||
31 | namespace KNS3 | 33 | namespace KNSCore | ||
32 | { | 34 | { | ||
33 | /** | 35 | /** | ||
34 | * @short KNewStuff Base Provider class. | 36 | * @short KNewStuff Base Provider class. | ||
Context not available. | |||||
42 | * | 44 | * | ||
43 | * @internal | 45 | * @internal | ||
44 | */ | 46 | */ | ||
45 | class Provider: public QObject | 47 | class KNEWSTUFFCORE_EXPORT Provider: public QObject | ||
46 | { | 48 | { | ||
47 | Q_OBJECT | 49 | Q_OBJECT | ||
48 | public: | 50 | public: | ||
Context not available. | |||||
105 | 107 | | |||
106 | virtual bool isInitialized() const = 0; | 108 | virtual bool isInitialized() const = 0; | ||
107 | 109 | | |||
108 | virtual void setCachedEntries(const KNS3::EntryInternal::List &cachedEntries) = 0; | 110 | virtual void setCachedEntries(const KNSCore::EntryInternal::List &cachedEntries) = 0; | ||
109 | 111 | | |||
110 | /** | 112 | /** | ||
111 | * Retrieves the common name of the provider. | 113 | * Retrieves the common name of the provider. | ||
Context not available. | |||||
129 | * | 131 | * | ||
130 | * Note: the engine connects to loadingFinished() signal to get the result | 132 | * Note: the engine connects to loadingFinished() signal to get the result | ||
131 | */ | 133 | */ | ||
132 | virtual void loadEntries(const KNS3::Provider::SearchRequest &request) = 0; | 134 | virtual void loadEntries(const KNSCore::Provider::SearchRequest &request) = 0; | ||
133 | virtual void loadEntryDetails(const KNS3::EntryInternal &) {} | 135 | virtual void loadEntryDetails(const KNSCore::EntryInternal &) {} | ||
134 | virtual void loadPayloadLink(const EntryInternal &entry, int linkId) = 0; | 136 | virtual void loadPayloadLink(const EntryInternal &entry, int linkId) = 0; | ||
135 | 137 | | |||
136 | virtual bool userCanVote() | 138 | virtual bool userCanVote() | ||
Context not available. | |||||
152 | } | 154 | } | ||
153 | 155 | | |||
154 | Q_SIGNALS: | 156 | Q_SIGNALS: | ||
155 | void providerInitialized(KNS3::Provider *); | 157 | void providerInitialized(KNSCore::Provider *); | ||
156 | 158 | | |||
157 | void loadingFinished(const KNS3::Provider::SearchRequest &, const KNS3::EntryInternal::List &) const; | 159 | void loadingFinished(const KNSCore::Provider::SearchRequest &, const KNSCore::EntryInternal::List &) const; | ||
158 | void loadingFailed(const KNS3::Provider::SearchRequest &); | 160 | void loadingFailed(const KNSCore::Provider::SearchRequest &); | ||
159 | 161 | | |||
160 | void entryDetailsLoaded(const KNS3::EntryInternal &); | 162 | void entryDetailsLoaded(const KNSCore::EntryInternal &); | ||
161 | void payloadLinkLoaded(const KNS3::EntryInternal &); | 163 | void payloadLinkLoaded(const KNSCore::EntryInternal &); | ||
162 | 164 | | |||
163 | void signalInformation(const QString &) const; | 165 | void signalInformation(const QString &) const; | ||
164 | void signalError(const QString &) const; | 166 | void signalError(const QString &) const; | ||
Context not available. |