mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2026-06-10 00:09:12 -04:00
27 lines
539 B
C++
27 lines
539 B
C++
// Copyright (C) 2025 Povilas Kanapickas
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
// Additional attribution terms under GPLv3 §7(b) apply — see LICENSE
|
|
|
|
#pragma once
|
|
|
|
#include <QTextDocument>
|
|
|
|
namespace QodeAssist::Context {
|
|
|
|
struct DocumentInfo
|
|
{
|
|
QTextDocument *document = nullptr; // not owned
|
|
QString mimeType;
|
|
QString filePath;
|
|
};
|
|
|
|
class IDocumentReader
|
|
{
|
|
public:
|
|
virtual ~IDocumentReader() = default;
|
|
|
|
virtual DocumentInfo readDocument(const QString &path) const = 0;
|
|
};
|
|
|
|
} // namespace QodeAssist::Context
|