Changeset View
Changeset View
Standalone View
Standalone View
libdiscover/backends/KNSBackend/KNSBackend.h
Show All 16 Lines | |||||
17 | * You should have received a copy of the GNU General Public License * | 17 | * You should have received a copy of the GNU General Public License * | ||
18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. * | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. * | ||
19 | ***************************************************************************/ | 19 | ***************************************************************************/ | ||
20 | 20 | | |||
21 | #ifndef KNSBACKEND_H | 21 | #ifndef KNSBACKEND_H | ||
22 | #define KNSBACKEND_H | 22 | #define KNSBACKEND_H | ||
23 | 23 | | |||
24 | #include <KNSCore/EntryInternal> | 24 | #include <KNSCore/EntryInternal> | ||
25 | #include <KNSCore/ErrorCode> | ||||
25 | 26 | | |||
26 | #include <resources/AbstractResourcesBackend.h> | 27 | #include <resources/AbstractResourcesBackend.h> | ||
27 | #include "Transaction/AddonList.h" | 28 | #include "Transaction/AddonList.h" | ||
28 | #include "discovercommon_export.h" | 29 | #include "discovercommon_export.h" | ||
29 | 30 | | |||
30 | class KConfigGroup; | 31 | class KConfigGroup; | ||
31 | class KNSReviews; | 32 | class KNSReviews; | ||
32 | class KNSResource; | 33 | class KNSResource; | ||
Show All 37 Lines | 69 | Q_SIGNALS: | |||
70 | void searchFinished(); | 71 | void searchFinished(); | ||
71 | void startingSearch(); | 72 | void startingSearch(); | ||
72 | void availableForQueries(); | 73 | void availableForQueries(); | ||
73 | void initialized(); | 74 | void initialized(); | ||
74 | 75 | | |||
75 | public Q_SLOTS: | 76 | public Q_SLOTS: | ||
76 | void receivedEntries(const KNSCore::EntryInternal::List& entries); | 77 | void receivedEntries(const KNSCore::EntryInternal::List& entries); | ||
77 | void statusChanged(const KNSCore::EntryInternal& entry); | 78 | void statusChanged(const KNSCore::EntryInternal& entry); | ||
79 | void signalErrorCode(const KNSCore::ErrorCode& errorCode, const QString& message, const QVariant& metadata); | ||||
78 | 80 | | |||
79 | private: | 81 | private: | ||
80 | void fetchInstalled(); | 82 | void fetchInstalled(); | ||
81 | KNSResource* resourceForEntry(const KNSCore::EntryInternal& entry); | 83 | KNSResource* resourceForEntry(const KNSCore::EntryInternal& entry); | ||
82 | void setFetching(bool f); | 84 | void setFetching(bool f); | ||
83 | void markInvalid(const QString &message); | 85 | void markInvalid(const QString &message); | ||
84 | void searchStream(ResultsStream* stream, const QString &searchText); | 86 | void searchStream(ResultsStream* stream, const QString &searchText); | ||
85 | void fetchMore(); | 87 | void fetchMore(); | ||
Show All 18 Lines |