Line data Source code
1 : /* 2 : * Copyright (C) 2004-2024 Savoir-faire Linux Inc. 3 : * 4 : * This program is free software; you can redistribute it and/or modify 5 : * it under the terms of the GNU General Public License as published by 6 : * the Free Software Foundation; either version 3 of the License, or 7 : * (at your option) any later version. 8 : * 9 : * This program is distributed in the hope that it will be useful, 10 : * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 : * GNU General Public License for more details. 13 : * 14 : * You should have received a copy of the GNU General Public License 15 : * along with this program; if not, write to the Free Software 16 : * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 17 : */ 18 : 19 : #pragma once 20 : 21 : #include "recordable.h" 22 : 23 : namespace jami { 24 : 25 : /* 26 : * @file remoterecorder.h 27 : * @brief Handles the peer's recording states. 28 : */ 29 : 30 : class PeerRecorder 31 : { 32 : public: 33 406 : PeerRecorder() {}; 34 406 : virtual ~PeerRecorder() {}; 35 : 36 : virtual void peerRecording(bool state) = 0; 37 : 38 216 : virtual bool isPeerRecording() const { return peerRecording_; } 39 : 40 : virtual void peerMuted(bool muted, int streamIdx) = 0; 41 : 42 209 : virtual bool isPeerMuted() const { return peerMuted_; } 43 : 44 : virtual void peerVoice(bool voice) = 0; 45 : 46 0 : virtual bool hasPeerVoice() const { return peerVoice_; } 47 : 48 : protected: 49 : bool peerRecording_ {false}; 50 : bool peerMuted_ {false}; 51 : bool peerVoice_ {false}; 52 : }; 53 : 54 : } // namespace jami