LCOV - code coverage report
Current view: top level - src/project - iexportprojectscenario.h Coverage Total Hit
Test: filtered_coverage.info Lines: 0.0 % 1 0
Test Date: 2026-11-19 04:14:36

            Line data    Source code
       1              : /*
       2              :  * SPDX-License-Identifier: GPL-3.0-only
       3              :  * MuseScore-Studio-CLA-applies
       4              :  *
       5              :  * MuseScore Studio
       6              :  * Music Composition & Notation
       7              :  *
       8              :  * Copyright (C) 2021 MuseScore Limited and others
       9              :  *
      10              :  * This program is free software: you can redistribute it and/or modify
      11              :  * it under the terms of the GNU General Public License version 3 as
      12              :  * published by the Free Software Foundation.
      13              :  *
      14              :  * This program is distributed in the hope that it will be useful,
      15              :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      16              :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      17              :  * GNU General Public License for more details.
      18              :  *
      19              :  * You should have received a copy of the GNU General Public License
      20              :  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
      21              :  */
      22              : 
      23              : #pragma once
      24              : 
      25              : #include "modularity/imoduleinterface.h"
      26              : #include "async/promise.h"
      27              : #include "types/ret.h"
      28              : #include "notation/inotation_fwd.h"
      29              : #include "inotationwriter.h"
      30              : #include "internal/exporttype.h"
      31              : 
      32              : namespace mu::project {
      33              : struct ExportInfo {
      34              :     QString id;
      35              :     muse::io::path_t exportDirPath;
      36              :     INotationWriter::UnitType unitType;
      37              :     std::vector<notation::INotationWeakPtr> notations;
      38              : };
      39              : 
      40              : class IExportProjectScenario : MODULE_CONTEXT_INTERFACE
      41              : {
      42            0 :     INTERFACE_ID(IExportProjectScenario)
      43              : 
      44              : public:
      45              :     virtual std::vector<INotationWriter::UnitType> supportedUnitTypes(const ExportType& exportType) const = 0;
      46              : 
      47              :     virtual muse::RetVal<muse::io::path_t> askExportPath(const notation::INotationPtrList& notations, const ExportType& exportType,
      48              :                                                          INotationWriter::UnitType unitType = INotationWriter::UnitType::PER_PART,
      49              :                                                          muse::io::path_t defaultPath = "") const = 0;
      50              : 
      51              :     virtual muse::async::Promise<muse::Ret> exportScores(notation::INotationPtrList notations, const muse::io::path_t destinationPath,
      52              :                                                          INotationWriter::UnitType unitType = INotationWriter::UnitType::PER_PART,
      53              :                                                          bool openDestinationFolderOnExport = false) const = 0;
      54              : 
      55              :     virtual const ExportInfo& exportInfo() const = 0;
      56              :     virtual void setExportInfo(const ExportInfo& exportInfo) = 0;
      57              : };
      58              : }
        

Generated by: LCOV version 2.0-1