LCOV - code coverage report
Current view: top level - muse/framework/extensions - iextensionsession.h Coverage Total Hit
Test: filtered_coverage.info Lines: 0.0 % 1 0
Test Date: 2026-11-05 04:07:02

            Line data    Source code
       1              : /*
       2              :  * SPDX-License-Identifier: GPL-3.0-only
       3              :  * MuseScore/Audacity CLA applies
       4              :  *
       5              :  * Copyright (C) MuseScore/Audacity and others
       6              :  *
       7              :  * This program is free software: you can redistribute it and/or modify
       8              :  * it under the terms of the GNU General Public License version 3 as
       9              :  * published by the Free Software Foundation.
      10              :  *
      11              :  * This program is distributed in the hope that it will be useful,
      12              :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      13              :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      14              :  * GNU General Public License for more details.
      15              :  *
      16              :  * You should have received a copy of the GNU General Public License
      17              :  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
      18              :  */
      19              : #pragma once
      20              : 
      21              : #include <QJSValue>
      22              : #include <QVariant>
      23              : 
      24              : #include "global/types/retval.h"
      25              : 
      26              : class QObject;
      27              : 
      28              : namespace muse::extensions {
      29              : class IExtensionSession
      30              : {
      31              : public:
      32            0 :     virtual ~IExtensionSession() = default;
      33              : 
      34              :     virtual Ret evaluate() = 0;
      35              :     virtual Ret call(const QString& function, const QJSValueList& arguments = {}, QJSValue* result = nullptr) = 0;
      36              : 
      37              :     virtual QJSValue exports() const = 0;
      38              :     virtual QJSValue toScriptValue(const QVariant& value) = 0;
      39              : 
      40              :     // Keeps ownership in C++
      41              :     virtual QJSValue wrapQObject(QObject* object) = 0;
      42              : };
      43              : } // namespace muse::extensions
        

Generated by: LCOV version 2.0-1