File indexing completed on 2024-05-12 04:40:07

0001 /*
0002     SPDX-FileCopyrightText: 2016 Aetf <aetf@unlimitedcodeworks.xyz>
0003 
0004     SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0005 */
0006 
0007 #ifndef LLDB_VARIABLECONTROLLER_H
0008 #define LLDB_VARIABLECONTROLLER_H
0009 
0010 #include "mivariablecontroller.h"
0011 #include "variable.h"
0012 
0013 namespace KDevMI { namespace LLDB {
0014 
0015 class DebugSession;
0016 class VariableController : public MIVariableController
0017 {
0018     Q_OBJECT
0019 
0020 public:
0021     explicit VariableController(DebugSession* parent);
0022 
0023     void update() override;
0024     LldbVariable* createVariable(KDevelop::TreeModel* model, KDevelop::TreeItem* parent,
0025                                  const QString& expression,
0026                                  const QString& display = QString()) override;
0027 private:
0028     DebugSession* debugSession() const;
0029 };
0030 
0031 } // end of namespace LLDB
0032 } // end of namespace KDevMI
0033 
0034 #endif // LLDB_VARIABLECONTROLLER_H