File indexing completed on 2025-01-05 05:23:46
0001 /* 0002 This file is part of the Okteta Kasten Framework, made within the KDE community. 0003 0004 SPDX-FileCopyrightText: 2011, 2012 Alex Richardson <alex.richardson@gmx.de> 0005 0006 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0007 */ 0008 0009 #include "scripthandlerinfo.hpp" 0010 #include "classes/arrayscriptclass.hpp" 0011 #include "classes/primitivescriptclass.hpp" 0012 #include "classes/structunionscriptclass.hpp" 0013 #include "classes/stringscriptclass.hpp" 0014 #include "classes/enumscriptclass.hpp" 0015 #include "classes/bitfieldscriptclass.hpp" 0016 #include "classes/pointerscriptclass.hpp" 0017 0018 ScriptHandlerInfo::ScriptHandlerInfo(QScriptEngine* engine, ScriptLogger* logger) 0019 : mArrayClass(new ArrayScriptClass(engine, this)) 0020 , mPrimitiveClass(new PrimitiveScriptClass(engine, this)) 0021 , mEnumClass(new EnumScriptClass(engine, this)) 0022 , mStructUnionClass(new StructUnionScriptClass(engine, this)) 0023 , mStringClass(new StringScriptClass(engine, this)) 0024 , mBitfieldClass(new BitfieldScriptClass(engine, this)) 0025 , mPointerClass(new PointerScriptClass(engine, this)) 0026 , mLogger(logger) 0027 { 0028 Q_CHECK_PTR(mLogger); 0029 } 0030 0031 ScriptHandlerInfo::~ScriptHandlerInfo() = default; 0032 0033 ScriptHandlerInfo::Mode ScriptHandlerInfo::mode() const 0034 { 0035 return mMode; 0036 } 0037 0038 void ScriptHandlerInfo::setMode(Mode m) 0039 { 0040 mMode = m; 0041 } 0042 0043 ScriptLogger* ScriptHandlerInfo::logger() const 0044 { 0045 return mLogger; 0046 }