LCOV - code coverage report
Current view: top level - media/server/ipc/include - MediaCapabilitiesModuleService.h (source / functions) Coverage Total Hit
Test: coverage.info Lines: 0.0 % 2 0
Test Date: 2026-09-29 14:28:21 Functions: 0.0 % 2 0

            Line data    Source code
       1              : /*
       2              :  * If not stated otherwise in this file or this component's LICENSE file the
       3              :  * following copyright and licenses apply:
       4              :  *
       5              :  * Copyright 2026 Sky UK
       6              :  *
       7              :  * Licensed under the Apache License, Version 2.0 (the "License");
       8              :  * you may not use this file except in compliance with the License.
       9              :  * You may obtain a copy of the License at
      10              :  *
      11              :  * http://www.apache.org/licenses/LICENSE-2.0
      12              :  *
      13              :  * Unless required by applicable law or agreed to in writing, software
      14              :  * distributed under the License is distributed on an "AS IS" BASIS,
      15              :  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
      16              :  * See the License for the specific language governing permissions and
      17              :  * limitations under the License.
      18              :  */
      19              : 
      20              : #ifndef FIREBOLT_RIALTO_SERVER_IPC_MEDIA_CAPABILITIES_MODULE_SERVICE_H_
      21              : #define FIREBOLT_RIALTO_SERVER_IPC_MEDIA_CAPABILITIES_MODULE_SERVICE_H_
      22              : 
      23              : #include "IMediaCapabilitiesModuleService.h"
      24              : #include "IMediaPipelineService.h"
      25              : #include <memory>
      26              : 
      27              : namespace firebolt::rialto::server::ipc
      28              : {
      29              : class MediaCapabilitiesModuleServiceFactory : public IMediaCapabilitiesModuleServiceFactory
      30              : {
      31              : public:
      32            0 :     MediaCapabilitiesModuleServiceFactory() = default;
      33            0 :     virtual ~MediaCapabilitiesModuleServiceFactory() = default;
      34              : 
      35              :     std::shared_ptr<IMediaCapabilitiesModuleService>
      36              :     create(service::IMediaPipelineService &mediaPipelineService) const override;
      37              : };
      38              : 
      39              : class MediaCapabilitiesModuleService : public IMediaCapabilitiesModuleService
      40              : {
      41              : public:
      42              :     explicit MediaCapabilitiesModuleService(service::IMediaPipelineService &mediaPipelineService);
      43              :     ~MediaCapabilitiesModuleService() override;
      44              : 
      45              :     void clientConnected(const std::shared_ptr<::firebolt::rialto::ipc::IClient> &ipcClient) override;
      46              :     void clientDisconnected(const std::shared_ptr<::firebolt::rialto::ipc::IClient> &ipcClient) override;
      47              : 
      48              :     void getSupportedAudioCapabilities(::google::protobuf::RpcController *controller,
      49              :                                        const ::firebolt::rialto::GetSupportedAudioCapabilitiesRequest *request,
      50              :                                        ::firebolt::rialto::AudioCapabilities *response,
      51              :                                        ::google::protobuf::Closure *done) override;
      52              :     void getSupportedVideoCapabilities(::google::protobuf::RpcController *controller,
      53              :                                        const ::firebolt::rialto::GetSupportedVideoCapabilitiesRequest *request,
      54              :                                        ::firebolt::rialto::VideoCapabilities *response,
      55              :                                        ::google::protobuf::Closure *done) override;
      56              : 
      57              : private:
      58              :     service::IMediaPipelineService &m_mediaPipelineService;
      59              : };
      60              : } // namespace firebolt::rialto::server::ipc
      61              : 
      62              : #endif // FIREBOLT_RIALTO_SERVER_IPC_MEDIA_CAPABILITIES_MODULE_SERVICE_H_
        

Generated by: LCOV version 2.0-1