LCOV - code coverage report
Current view: top level - muse/framework/rcontrol/mcp - itransport.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) 2026 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              : 
      20              : #pragma once
      21              : 
      22              : #include <functional>
      23              : 
      24              : #include "global/types/bytearray.h"
      25              : 
      26              : namespace muse::rcontrol::mcp {
      27              : class ITransport
      28              : {
      29              : public:
      30            0 :     virtual ~ITransport() = default;
      31              : 
      32              :     using ResponseHandler = std::function<void (const ByteArray&)>;
      33              :     using RequestHandler = std::function<void (const ByteArray& request, const ResponseHandler& onResponse)>;
      34              : 
      35              :     virtual bool start() = 0;
      36              :     virtual void stop() = 0;
      37              : 
      38              :     virtual void onRequest(const RequestHandler& onRequest) = 0;
      39              : };
      40              : }
        

Generated by: LCOV version 2.0-1