aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/coreplugin/locator/spotlightlocatorfilter.h
blob: 06114d4e26436a08ea74425d1ec586f0c26c81e1 (plain)
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
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#pragma once

#include "ilocatorfilter.h"

namespace Core::Internal {

class SpotlightLocatorFilter : public ILocatorFilter
{
public:
    SpotlightLocatorFilter();

    bool openConfigDialog(QWidget *parent, bool &needsRefresh) final;

protected:
    void saveState(QJsonObject &obj) const final;
    void restoreState(const QJsonObject &obj) final;

private:
    LocatorMatcherTasks matchers() final;

    QString m_command;
    QString m_arguments;
    QString m_caseSensitiveArguments;
};

} // namespace Core::Internal