reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
recon::Participant Class Referenceabstract

This is the base class for a RemoteParticipant, LocalParticipant and a MediaResourceParticipant. More...

#include <Participant.hxx>

Inheritance diagram for recon::Participant:
[legend]

Public Types

typedef std::map< ConversationHandle, Conversation * > ConversationMap
 

Public Member Functions

 Participant (ParticipantHandle partHandle, ConversationManager::ParticipantType participantType, ConversationManager &conversationManager)
 
 Participant (ConversationManager::ParticipantType participantType, ConversationManager &conversationManager)
 
virtual ~Participant ()
 
virtual ParticipantHandle getParticipantHandle ()
 
virtual ConversationManager::ParticipantType getParticipantType ()
 
virtual void setRecordChannelNum (unsigned int channelNum)
 
virtual unsigned int getRecordChannelNum ()
 
virtual void addToConversation (Conversation *conversation, unsigned int inputGain=100, unsigned int outputGain=100)
 
virtual void removeFromConversation (Conversation *conversation)
 
virtual void unregisterFromAllConversations ()
 
virtual void copyConversationsToParticipant (Participant *destParticipant)
 
virtual unsigned int getNumConversations ()
 
const ConversationMap & getConversations ()
 
virtual void setHandle (ParticipantHandle partHandle)
 
virtual void replaceWithParticipant (Participant *replacingParticipant)
 
virtual int getConnectionPortOnBridge ()=0
 
virtual bool hasInput ()=0
 
virtual bool hasOutput ()=0
 
virtual void applyBridgeMixWeights ()
 
virtual void applyBridgeMixWeights (Conversation *removedConversation)
 
virtual void destroyParticipant ()=0
 

Protected Attributes

ParticipantHandle mHandle
 
ConversationManager::ParticipantType mType
 
unsigned int mRecordChannelNum
 
ConversationManager & mConversationManager
 
ConversationMap mConversations
 

Detailed Description

This is the base class for a RemoteParticipant, LocalParticipant and a MediaResourceParticipant.

It implements the common functionality of all participants, such as managing which Conversations that are participant belongs to.

Author: Scott Godin (sgodin AT SipSpectrum DOT com)

Definition at line 20 of file Participant.hxx.

Member Typedef Documentation

◆ ConversationMap

Constructor & Destructor Documentation

◆ Participant() [1/2]

Participant::Participant ( ParticipantHandle  partHandle,
ConversationManager::ParticipantType  participantType,
ConversationManager &  conversationManager 
)

Definition at line 17 of file Participant.cxx.

◆ Participant() [2/2]

Participant::Participant ( ConversationManager::ParticipantType  participantType,
ConversationManager &  conversationManager 
)

Definition at line 29 of file Participant.cxx.

◆ ~Participant()

Participant::~Participant ( )
virtual

Definition at line 40 of file Participant.cxx.

Member Function Documentation

◆ addToConversation()

void Participant::addToConversation ( Conversation *  conversation,
unsigned int  inputGain = 100,
unsigned int  outputGain = 100 
)
virtual

◆ applyBridgeMixWeights() [1/2]

void Participant::applyBridgeMixWeights ( )
virtual

◆ applyBridgeMixWeights() [2/2]

void Participant::applyBridgeMixWeights ( Conversation *  removedConversation)
virtual

◆ copyConversationsToParticipant()

void Participant::copyConversationsToParticipant ( Participant *  destParticipant)
virtual

Definition at line 100 of file Participant.cxx.

◆ destroyParticipant()

virtual void recon::Participant::destroyParticipant ( )
pure virtual

◆ getConnectionPortOnBridge()

◆ getConversations()

const ConversationMap & recon::Participant::getConversations ( )
inline

Definition at line 46 of file Participant.hxx.

◆ getNumConversations()

virtual unsigned int recon::Participant::getNumConversations ( )
inlinevirtual

Definition at line 45 of file Participant.hxx.

◆ getParticipantHandle()

virtual ParticipantHandle recon::Participant::getParticipantHandle ( )
inlinevirtual

Definition at line 35 of file Participant.hxx.

◆ getParticipantType()

virtual ConversationManager::ParticipantType recon::Participant::getParticipantType ( )
inlinevirtual

Definition at line 36 of file Participant.hxx.

◆ getRecordChannelNum()

virtual unsigned int recon::Participant::getRecordChannelNum ( )
inlinevirtual

Definition at line 39 of file Participant.hxx.

◆ hasInput()

◆ hasOutput()

◆ removeFromConversation()

void Participant::removeFromConversation ( Conversation *  conversation)
virtual

◆ replaceWithParticipant()

void Participant::replaceWithParticipant ( Participant *  replacingParticipant)
virtual

Definition at line 110 of file Participant.cxx.

◆ setHandle()

void Participant::setHandle ( ParticipantHandle  partHandle)
virtual

Definition at line 50 of file Participant.cxx.

◆ setRecordChannelNum()

virtual void recon::Participant::setRecordChannelNum ( unsigned int  channelNum)
inlinevirtual

Definition at line 38 of file Participant.hxx.

◆ unregisterFromAllConversations()

void Participant::unregisterFromAllConversations ( )
virtual

Definition at line 88 of file Participant.cxx.

Member Data Documentation

◆ mConversationManager

ConversationManager& recon::Participant::mConversationManager
protected

Definition at line 65 of file Participant.hxx.

◆ mConversations

ConversationMap recon::Participant::mConversations
protected

Definition at line 66 of file Participant.hxx.

◆ mHandle

ParticipantHandle recon::Participant::mHandle
protected

Definition at line 62 of file Participant.hxx.

◆ mRecordChannelNum

unsigned int recon::Participant::mRecordChannelNum
protected

Definition at line 64 of file Participant.hxx.

◆ mType

ConversationManager::ParticipantType recon::Participant::mType
protected

Definition at line 63 of file Participant.hxx.


The documentation for this class was generated from the following files: