/**
 * \file output/jsonexport.h
 * \date 29/05/2026
 * \author Olivier Langella
 * \brief JSON PSM export
 */


/*
 * SpecGlobTool, Spectra to peptide alignment tool
 * Copyright (C) 2023  Olivier Langella
 * <olivier.langella@universite-paris-saclay.fr>
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */


#include <pappsomspp/core/processing/cbor/psm/psmcbor2json.h>
#include <qcontainerfwd.h>

#pragma once

class JsonExport : public pappso::cbor::psm::PsmCbor2Json
{
  public:
  JsonExport(pappso::cbor::JsonStreamWriter *json_output_p);

  virtual ~JsonExport();

  void setOnlyScanNativeIdList(const QStringList &native_id_list);

  virtual void scanStarted(pappso::UiMonitorInterface &monitor
                           [[maybe_unused]]);
  virtual void scanFinished(pappso::UiMonitorInterface &monitor
                            [[maybe_unused]]);

  virtual void psmReady(pappso::UiMonitorInterface &monitor) override;

  private:
  QStringList m_onlyExportScanIdList;
  bool m_skipScan = false;
};
