blob: da4018930d129c7b478a17c21bcdd2edaa3d9c72 (
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
|
// Copyright (c) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#pragma once
#include <QObject>
#include <utils/fileutils.h>
QT_BEGIN_NAMESPACE
class QSettings;
QT_END_NAMESPACE
namespace Haskell {
namespace Internal {
class HaskellManager : public QObject
{
Q_OBJECT
public:
static HaskellManager *instance();
static Utils::FilePath findProjectDirectory(const Utils::FilePath &filePath);
static Utils::FilePath stackExecutable();
static void setStackExecutable(const Utils::FilePath &filePath);
static void openGhci(const Utils::FilePath &haskellFile);
static void readSettings(QSettings *settings);
static void writeSettings(QSettings *settings);
signals:
void stackExecutableChanged(const Utils::FilePath &filePath);
};
} // namespace Internal
} // namespace Haskell
|