2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
2023-01-04 08:52:22 +01:00
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
2011-08-23 12:02:29 +02:00
|
|
|
|
2016-03-18 07:55:01 +01:00
|
|
|
#pragma once
|
2011-08-23 12:02:29 +02:00
|
|
|
|
|
|
|
|
#include <cplusplus/CppDocument.h>
|
|
|
|
|
|
2014-01-23 14:28:31 +01:00
|
|
|
#include <QObject>
|
|
|
|
|
#include <QList>
|
2011-08-24 10:55:48 +02:00
|
|
|
|
2014-01-23 14:28:31 +01:00
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
|
class QString;
|
|
|
|
|
QT_END_NAMESPACE
|
2011-08-23 12:02:29 +02:00
|
|
|
|
2014-01-23 14:28:31 +01:00
|
|
|
namespace CPlusPlus {
|
|
|
|
|
|
|
|
|
|
class CPLUSPLUS_EXPORT CppModelManagerBase : public QObject
|
2011-08-23 12:02:29 +02:00
|
|
|
{
|
2014-01-23 14:28:31 +01:00
|
|
|
Q_OBJECT
|
2011-08-23 12:02:29 +02:00
|
|
|
public:
|
2019-07-31 17:21:41 +02:00
|
|
|
CppModelManagerBase(QObject *parent = nullptr);
|
2014-01-23 14:28:31 +01:00
|
|
|
~CppModelManagerBase();
|
2011-08-23 12:02:29 +02:00
|
|
|
|
2014-01-23 14:28:31 +01:00
|
|
|
static CppModelManagerBase *instance();
|
|
|
|
|
static bool trySetExtraDiagnostics(const QString &fileName, const QString &kind,
|
|
|
|
|
const QList<Document::DiagnosticMessage> &diagnostics);
|
2011-08-23 12:02:29 +02:00
|
|
|
|
2014-01-23 14:28:31 +01:00
|
|
|
virtual bool setExtraDiagnostics(const QString &fileName, const QString &kind,
|
|
|
|
|
const QList<Document::DiagnosticMessage> &diagnostics);
|
|
|
|
|
virtual CPlusPlus::Snapshot snapshot() const;
|
2011-08-23 12:02:29 +02:00
|
|
|
};
|
|
|
|
|
|
2014-01-23 14:28:31 +01:00
|
|
|
} // namespace CPlusPlus
|