| 1 | // SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. |
|---|---|
| 2 | // |
| 3 | // SPDX-License-Identifier: GPL-3.0-or-later |
| 4 | |
| 5 | #ifndef SYMBOLKEEPER_H |
| 6 | #define SYMBOLKEEPER_H |
| 7 | |
| 8 | #include "symboltreeview.h" |
| 9 | #include "symbolparser.h" |
| 10 | |
| 11 | #include <QObject> |
| 12 | |
| 13 | class SymbolKeeper final : public QObject |
| 14 | { |
| 15 | Q_OBJECT |
| 16 | Q_DISABLE_COPY(SymbolKeeper) |
| 17 | public: |
| 18 | SymbolKeeper(); |
| 19 | static SymbolKeeper *instance(); |
| 20 | SymbolTreeView *treeView(); |
| 21 | |
| 22 | public slots: |
| 23 | void doParse(const SymbolParseArgs &args); |
| 24 | |
| 25 | private slots: |
| 26 | void jumpToLine(const QString &filePath, const QString &fileLine); |
| 27 | void doParseDone(bool result); |
| 28 | }; |
| 29 | |
| 30 | #endif // SYMBOLKEEPER_H |
| 31 |