mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2026-05-30 02:49:12 -04:00
33 lines
655 B
C++
33 lines
655 B
C++
// Copyright (C) 2024-2026 Petr Mironychev
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include <optional>
|
|
#include <vector>
|
|
|
|
#include <QString>
|
|
#include <QStringList>
|
|
|
|
#include "ProviderInstance.hpp"
|
|
|
|
namespace QodeAssist::Providers {
|
|
|
|
class ProviderInstanceLoader
|
|
{
|
|
public:
|
|
struct LoadResult
|
|
{
|
|
std::vector<ProviderInstance> instances;
|
|
QStringList errors;
|
|
QStringList warnings;
|
|
};
|
|
|
|
static LoadResult load(const QString &qrcPrefix, const QString &userDir);
|
|
|
|
static std::optional<ProviderInstance> parseFile(
|
|
const QString &path, QString *error);
|
|
};
|
|
|
|
} // namespace QodeAssist::Providers
|