2015-09-21 22:16:19 +02:00
|
|
|
#ifndef REPOINDEX_SUGGESTIONSLOOKUP_H
|
|
|
|
#define REPOINDEX_SUGGESTIONSLOOKUP_H
|
|
|
|
|
2015-09-27 19:29:45 +02:00
|
|
|
#include "./packagelookup.h"
|
2015-09-21 22:16:19 +02:00
|
|
|
|
|
|
|
namespace RepoIndex {
|
|
|
|
|
|
|
|
class Manager;
|
2016-02-25 22:53:33 +01:00
|
|
|
class Repository;
|
2015-09-21 22:16:19 +02:00
|
|
|
|
2015-09-27 19:29:45 +02:00
|
|
|
class SuggestionsLookup : public PackageLookup
|
2015-09-21 22:16:19 +02:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2015-09-27 19:29:45 +02:00
|
|
|
SuggestionsLookup(Manager &manager, const QJsonObject &request, QObject *parent = nullptr);
|
2015-09-21 22:16:19 +02:00
|
|
|
|
2020-03-08 14:12:22 +01:00
|
|
|
private Q_SLOTS:
|
2016-02-25 22:53:33 +01:00
|
|
|
void performLookup();
|
2015-09-21 22:16:19 +02:00
|
|
|
void addResults();
|
2016-02-25 22:53:33 +01:00
|
|
|
|
|
|
|
private:
|
|
|
|
QList<Repository *> m_repos;
|
|
|
|
const QString m_searchTerm;
|
2015-09-21 22:16:19 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace RepoIndex
|
|
|
|
|
|
|
|
#endif // REPOINDEX_SUGGESTIONSLOOKUP_H
|