reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
Participant.hxx
Go to the documentation of this file.
1#if !defined(Participant_hxx)
2#define Participant_hxx
3
5#include <map>
6
7namespace recon
8{
9class ConversationManager;
10
21{
22 public:
23
24 typedef std::map<ConversationHandle,Conversation*> ConversationMap;
25
29
32
33 virtual ~Participant();
34
37
39 virtual unsigned int getRecordChannelNum() { return mRecordChannelNum; }
40
41 virtual void addToConversation(Conversation *conversation, unsigned int inputGain = 100, unsigned int outputGain = 100);
43 virtual void unregisterFromAllConversations();
45 virtual unsigned int getNumConversations() { return (unsigned int)mConversations.size(); }
47
50
51 virtual int getConnectionPortOnBridge() = 0;
52 virtual bool hasInput() = 0;
53 virtual bool hasOutput() = 0;
54
55 virtual void applyBridgeMixWeights();
57
58 virtual void destroyParticipant() = 0;
59
60
61 protected:
64 unsigned int mRecordChannelNum;
67};
68
69}
70
71#endif
72
73
74/* ====================================================================
75
76 Copyright (c) 2021-2023, SIP Spectrum, Inc. http://www.sipspectrum.com
77 Copyright (c) 2021, Daniel Pocock https://danielpocock.com
78 Copyright (c) 2007-2008, Plantronics, Inc.
79 All rights reserved.
80
81 Redistribution and use in source and binary forms, with or without
82 modification, are permitted provided that the following conditions are
83 met:
84
85 1. Redistributions of source code must retain the above copyright
86 notice, this list of conditions and the following disclaimer.
87
88 2. Redistributions in binary form must reproduce the above copyright
89 notice, this list of conditions and the following disclaimer in the
90 documentation and/or other materials provided with the distribution.
91
92 3. Neither the name of Plantronics nor the names of its contributors
93 may be used to endorse or promote products derived from this
94 software without specific prior written permission.
95
96 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
97 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
98 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
99 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
100 OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
101 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
102 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
103 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
104 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
105 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
106 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
107
108 ==================================================================== */
This class is one of two main classes of concern to an application using the UserAgent library.
This class is used to manage membership of participants.
This is the base class for a RemoteParticipant, LocalParticipant and a MediaResourceParticipant.
virtual void removeFromConversation(Conversation *conversation)
virtual unsigned int getNumConversations()
virtual void applyBridgeMixWeights()
virtual void setRecordChannelNum(unsigned int channelNum)
ConversationMap mConversations
ConversationManager::ParticipantType mType
virtual void setHandle(ParticipantHandle partHandle)
virtual bool hasInput()=0
virtual void destroyParticipant()=0
std::map< ConversationHandle, Conversation * > ConversationMap
virtual unsigned int getRecordChannelNum()
virtual void addToConversation(Conversation *conversation, unsigned int inputGain=100, unsigned int outputGain=100)
virtual bool hasOutput()=0
virtual ParticipantHandle getParticipantHandle()
virtual void unregisterFromAllConversations()
ParticipantHandle mHandle
virtual void replaceWithParticipant(Participant *replacingParticipant)
virtual void copyConversationsToParticipant(Participant *destParticipant)
unsigned int mRecordChannelNum
const ConversationMap & getConversations()
virtual ConversationManager::ParticipantType getParticipantType()
virtual int getConnectionPortOnBridge()=0
ConversationManager & mConversationManager
unsigned int ParticipantHandle
void list()
Definition userAdmin.cxx:66