aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer/configtaskhandler.h
blob: e32a02cc34a80f1631d71f7676b0766b61b70da5 (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
30
// 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 "itaskhandler.h"

#include "task.h"

namespace ProjectExplorer {
namespace Internal {

class ConfigTaskHandler : public ITaskHandler
{
    Q_OBJECT

public:
    ConfigTaskHandler(const Task &pattern, Utils::Id page);

    bool canHandle(const Task &task) const override;
    void handle(const Task &task) override;
    QAction *createAction(QObject *parent) const override;

private:
    const Task m_pattern;
    const Utils::Id m_targetPage;
};

} // namespace Internal
} // namespace ProjectExplorer