blob: 74ed5ca01b0e8eeec2c3bd86712167293eedb027 (
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
31
32
33
34
35
36
37
38
39
|
// Copyright (C) 2022 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 <coreplugin/idocument.h>
namespace ProjectExplorer {
namespace Internal {
class StopMonitoringHandler : public ITaskHandler
{
public:
bool canHandle(const ProjectExplorer::Task &) const override;
void handle(const ProjectExplorer::Task &) override;
QAction *createAction(QObject *parent) const override;
};
class TaskFile : public Core::IDocument
{
public:
TaskFile(QObject *parent);
ReloadBehavior reloadBehavior(ChangeTrigger state, ChangeType type) const override;
bool reload(QString *errorString, ReloadFlag flag, ChangeType type) override;
bool load(QString *errorString, const Utils::FilePath &fileName);
static TaskFile *openTasks(const Utils::FilePath &filePath);
static void stopMonitoring();
private:
static QList<TaskFile *> openFiles;
};
} // namespace Internal
} // namespace ProjectExplorer
|