blob: 3eab88650fb0f1d62346438cc32298b293cfc3d4 (
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
40
|
// Copyright (C) 2016 BlackBerry Limited. All rights reserved.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
#pragma once
#include <utils/fileutils.h>
namespace Utils { class PersistentSettingsWriter; }
namespace Qnx::Internal {
class QnxConfiguration;
class QnxPlugin;
class QnxConfigurationManager: public QObject
{
Q_OBJECT
public:
QnxConfigurationManager();
~QnxConfigurationManager() override;
static QnxConfigurationManager *instance();
QList<QnxConfiguration*> configurations() const;
void removeConfiguration(QnxConfiguration *config);
bool addConfiguration(QnxConfiguration *config);
QnxConfiguration* configurationFromEnvFile(const Utils::FilePath &envFile) const;
protected slots:
void saveConfigs();
signals:
void configurationsListUpdated();
private:
QList<QnxConfiguration*> m_configurations;
Utils::PersistentSettingsWriter *m_writer;
void restoreConfigurations();
};
} // Qnx::Internal
|