-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcheatfilter.h
46 lines (34 loc) · 1.04 KB
/
cheatfilter.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifndef CHEATFILTER_H
#define CHEATFILTER_H
#include <coreplugin/locator/ilocatorfilter.h>
#include <coreplugin/icore.h>
//#include <coreplugin/messagemanager.h>
#include <QNetworkAccessManager>
#include <QNetworkReply>
#include <QTimer>
#include <QWaitCondition>
#include <memory>
class QNetworkReply;
class QMutex;
class QWaitCondition;
namespace CheatSh {
namespace Internal {
class Settings;
class CheatFilter : public Core::ILocatorFilter
{
Q_OBJECT
public:
CheatFilter(const Settings* settigns);
~CheatFilter();
QList<Core::LocatorFilterEntry> matchesFor(QFutureInterface<Core::LocatorFilterEntry> &future,
const QString &entry) override;
void accept(Core::LocatorFilterEntry selection,
QString *newText, int *selectionStart, int *selectionLength) const override;
void refresh(QFutureInterface<void> &) override {}
signals:
void query(const QString& text) const;
private:
const Settings* settings_ = nullptr;
};
}}
#endif // CHEATFILTER_H