LCOV - code coverage report
Current view: top level - serverManager/ipc/include - IController.h (source / functions) Coverage Total Hit
Test: coverage.info Lines: 100.0 % 2 2
Test Date: 2026-10-23 12:56:16 Functions: 100.0 % 2 2

            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 2022 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 RIALTO_SERVERMANAGER_IPC_I_CONTROLLER_H_
      21              : #define RIALTO_SERVERMANAGER_IPC_I_CONTROLLER_H_
      22              : 
      23              : #include "LoggingLevels.h"
      24              : #include "SessionServerCommon.h"
      25              : #include <AudioDecoderCapabilities.h>
      26              : #include <VideoDecoderCapabilities.h>
      27              : #include <memory>
      28              : #include <optional>
      29              : #include <string>
      30              : 
      31              : namespace rialto::servermanager::ipc
      32              : {
      33              : class IController
      34              : {
      35              : public:
      36           64 :     IController() = default;
      37           64 :     virtual ~IController() = default;
      38              : 
      39              :     IController(const IController &) = delete;
      40              :     IController(IController &&) = delete;
      41              :     IController &operator=(const IController &) = delete;
      42              :     IController &operator=(IController &&) = delete;
      43              : 
      44              :     virtual bool createClient(int serverId, int appMgmtSocket) = 0;
      45              :     virtual void removeClient(int serverId) = 0;
      46              :     virtual bool performSetConfiguration(
      47              :         int serverId, const firebolt::rialto::common::SessionServerState &initialState, const std::string &socketName,
      48              :         const std::string &clientDisplayName, const firebolt::rialto::common::MaxResourceCapabilitites &maxResource,
      49              :         const unsigned int socketPermissions, const std::string &socketOwner, const std::string &socketGroup,
      50              :         const std::string &appName, const std::optional<firebolt::rialto::common::AudioDecoderCapabilities> &audioCaps,
      51              :         const std::optional<firebolt::rialto::common::VideoDecoderCapabilities> &videoCaps) = 0;
      52              :     virtual bool performSetConfiguration(
      53              :         int serverId, const firebolt::rialto::common::SessionServerState &initialState, int socketFd,
      54              :         const std::string &clientDisplayName, const firebolt::rialto::common::MaxResourceCapabilitites &maxResource,
      55              :         const std::string &appName, const std::optional<firebolt::rialto::common::AudioDecoderCapabilities> &audioCaps,
      56              :         const std::optional<firebolt::rialto::common::VideoDecoderCapabilities> &videoCaps) = 0;
      57              :     virtual bool performPing(int serverId, int pingId) = 0;
      58              :     virtual bool performSetState(int serverId, const firebolt::rialto::common::SessionServerState &state) = 0;
      59              :     virtual bool setLogLevels(const service::LoggingLevels &logLevels) const = 0;
      60              : };
      61              : } // namespace rialto::servermanager::ipc
      62              : 
      63              : #endif // RIALTO_SERVERMANAGER_IPC_I_CONTROLLER_H_
        

Generated by: LCOV version 2.0-1