blob: 1ca2401726c369e268295ce2160f63fd544ad9c1 (
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
41
42
43
44
45
46
47
|
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#ifndef QTPLUGININFO_H
#define QTPLUGININFO_H
#include "utils.h"
#include <QString>
#include <QStringList>
#include <unordered_map>
enum class PluginDetection
{
DebugOnly,
ReleaseOnly,
DebugAndRelease
};
struct PluginSelections
{
QStringList disabledPluginTypes;
QStringList enabledPluginTypes;
QStringList excludedPlugins;
QStringList includedPlugins;
};
class PluginInformation
{
public:
PluginInformation() = default;
bool isTypeForPlugin(const QString &type, const QString &plugin) const;
void generateAvailablePlugins(const QMap<QString, QString> &qtPathsVariables,
const Platform &platform);
void populatePluginToType(const QDir &pluginDir, const QStringList &plugins);
const std::unordered_map<QString, QStringList> &typeMap() const { return m_typeMap; }
private:
std::unordered_map<QString, QStringList> m_typeMap;
std::unordered_map<QString, QString> m_pluginMap;
};
#endif
|