Changeset View
Changeset View
Standalone View
Standalone View
src/core/provider.h
Show All 19 Lines | |||||
20 | #ifndef KNEWSTUFF3_PROVIDER_P_H | 20 | #ifndef KNEWSTUFF3_PROVIDER_P_H | ||
21 | #define KNEWSTUFF3_PROVIDER_P_H | 21 | #define KNEWSTUFF3_PROVIDER_P_H | ||
22 | 22 | | |||
23 | #include <QList> | 23 | #include <QList> | ||
24 | #include <QString> | 24 | #include <QString> | ||
25 | #include <QUrl> | 25 | #include <QUrl> | ||
26 | 26 | | |||
27 | #include "entryinternal.h" | 27 | #include "entryinternal.h" | ||
28 | #include "errorcode.h" | ||||
28 | 29 | | |||
29 | #include "knewstuffcore_export.h" | 30 | #include "knewstuffcore_export.h" | ||
30 | 31 | | |||
31 | class KJob; | 32 | class KJob; | ||
32 | 33 | | |||
33 | namespace KNSCore | 34 | namespace KNSCore | ||
34 | { | 35 | { | ||
35 | /** | 36 | /** | ||
▲ Show 20 Lines • Show All 161 Lines • ▼ Show 20 Line(s) | 195 | Q_SIGNALS: | |||
197 | void loadingFinished(const KNSCore::Provider::SearchRequest &, const KNSCore::EntryInternal::List &) const; | 198 | void loadingFinished(const KNSCore::Provider::SearchRequest &, const KNSCore::EntryInternal::List &) const; | ||
198 | void loadingFailed(const KNSCore::Provider::SearchRequest &); | 199 | void loadingFailed(const KNSCore::Provider::SearchRequest &); | ||
199 | 200 | | |||
200 | void entryDetailsLoaded(const KNSCore::EntryInternal &); | 201 | void entryDetailsLoaded(const KNSCore::EntryInternal &); | ||
201 | void payloadLinkLoaded(const KNSCore::EntryInternal &); | 202 | void payloadLinkLoaded(const KNSCore::EntryInternal &); | ||
202 | 203 | | |||
203 | void signalInformation(const QString &) const; | 204 | void signalInformation(const QString &) const; | ||
204 | void signalError(const QString &) const; | 205 | void signalError(const QString &) const; | ||
206 | void signalErrorCode(const KNSCore::ErrorCode &errorCode, const QString &message, const QVariant &metadata) const; | ||||
205 | 207 | | |||
206 | void categoriesMetadataLoded(const QList<CategoryMetadata> &categories); | 208 | void categoriesMetadataLoded(const QList<CategoryMetadata> &categories); | ||
207 | 209 | | |||
208 | protected: | 210 | protected: | ||
209 | QString mName; | 211 | QString mName; | ||
210 | QUrl mIcon; | 212 | QUrl mIcon; | ||
211 | 213 | | |||
212 | private: | 214 | private: | ||
213 | Q_DISABLE_COPY(Provider) | 215 | Q_DISABLE_COPY(Provider) | ||
214 | }; | 216 | }; | ||
215 | 217 | | |||
216 | KNEWSTUFFCORE_EXPORT QDebug operator<<(QDebug, const Provider::SearchRequest &); | 218 | KNEWSTUFFCORE_EXPORT QDebug operator<<(QDebug, const Provider::SearchRequest &); | ||
217 | } | 219 | } | ||
218 | 220 | | |||
219 | #endif | 221 | #endif |