File indexing completed on 2024-04-28 04:37:35
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 #include "testvariablecontroller.h" 0008 0009 #include <KTextEditor/Range> 0010 0011 using namespace KDevelop; 0012 using KTextEditor::Range; 0013 using KTextEditor::Document; 0014 using KTextEditor::Cursor; 0015 0016 TestVariableController::TestVariableController(IDebugSession* parent) 0017 : IVariableController(parent) 0018 , m_updatedTimes(0) 0019 { 0020 } 0021 0022 Variable* TestVariableController::createVariable(TreeModel* model, TreeItem* parent, 0023 const QString& expression, 0024 const QString& display) 0025 { 0026 Q_UNUSED(model); 0027 Q_UNUSED(parent); 0028 Q_UNUSED(expression); 0029 Q_UNUSED(display); 0030 0031 return nullptr; 0032 } 0033 0034 Range TestVariableController::expressionRangeUnderCursor(Document* doc, 0035 const Cursor& cursor) 0036 { 0037 Q_UNUSED(doc); 0038 Q_UNUSED(cursor); 0039 0040 return {}; 0041 } 0042 0043 void TestVariableController::addWatch(Variable* variable) 0044 { 0045 Q_UNUSED(variable); 0046 } 0047 0048 void TestVariableController::addWatchpoint(Variable* variable) 0049 { 0050 Q_UNUSED(variable); 0051 } 0052 0053 void TestVariableController::update() 0054 { 0055 ++m_updatedTimes; 0056 } 0057 0058 int TestVariableController::updatedTimes() const 0059 { 0060 return m_updatedTimes; 0061 } 0062 0063 #include "moc_testvariablecontroller.cpp"