mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2026-06-14 02:09:22 -04:00
30 lines
867 B
C++
30 lines
867 B
C++
// Copyright (C) 2025-2026 Petr Mironychev
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
// Additional attribution terms under GPLv3 §7(b) apply — see LICENSE
|
|
|
|
#pragma once
|
|
|
|
#include <QObject>
|
|
#include <QString>
|
|
|
|
#include "ContentFile.hpp"
|
|
#include "IDocumentReader.hpp"
|
|
#include "ProgrammingLanguage.hpp"
|
|
|
|
namespace QodeAssist::Context {
|
|
|
|
class IContextManager
|
|
{
|
|
public:
|
|
virtual ~IContextManager() = default;
|
|
|
|
virtual QString readFile(const QString &filePath) const = 0;
|
|
virtual QList<ContentFile> getContentFiles(const QStringList &filePaths) const = 0;
|
|
virtual ContentFile createContentFile(const QString &filePath) const = 0;
|
|
|
|
virtual ProgrammingLanguage getDocumentLanguage(const DocumentInfo &documentInfo) const = 0;
|
|
virtual bool isSpecifyCompletion(const DocumentInfo &documentInfo) const = 0;
|
|
};
|
|
|
|
} // namespace QodeAssist::Context
|