Ring Daemon 16.0.0
|
#include <call_factory.h>
Public Member Functions | |
std::size_t | callCount () const |
Return number of calls. | |
std::size_t | callCount (Call::LinkType link) const |
CallFactory (std::mt19937_64 &rand) | |
void | clear () |
Erase all calls. | |
bool | empty () const |
Return if calls exist. | |
bool | empty (Call::LinkType link) const |
void | forbid () |
Forbid creation of new calls. | |
std::vector< std::shared_ptr< Call > > | getAllCalls () const |
Return all calls. | |
std::vector< std::shared_ptr< Call > > | getAllCalls (Call::LinkType link) const |
template<class C > | |
std::shared_ptr< C > | getCall (const std::string &id) |
std::shared_ptr< Call > | getCall (const std::string &id) const |
Return call pointer associated to given ID.Type can optionally be specified. | |
std::shared_ptr< Call > | getCall (const std::string &id, Call::LinkType link) const |
std::vector< std::string > | getCallIDs () const |
Return all call's IDs. | |
std::vector< std::string > | getCallIDs (Call::LinkType link) const |
std::string | getNewCallID () const |
bool | hasCall (const std::string &id) const |
Return if given call exists. | |
bool | hasCall (const std::string &id, Call::LinkType link) const |
std::shared_ptr< SIPCall > | newSipCall (const std::shared_ptr< SIPAccountBase > &account, Call::CallType type, const std::vector< libjami::MediaMap > &mediaList) |
Create a new call instance. | |
void | removeCall (Call &call) |
Remove given call instance from call list. | |
void | removeCall (const std::string &id) |
Accessor on removeCall with callID than instance. | |
Definition at line 34 of file call_factory.h.
|
inline |
Definition at line 37 of file call_factory.h.
std::size_t jami::CallFactory::callCount | ( | ) | const |
Return number of calls.
Type can optionally be specified.
Definition at line 167 of file call_factory.cpp.
References jami::emitSignal().
std::size_t jami::CallFactory::callCount | ( | Call::LinkType | link | ) | const |
Definition at line 245 of file call_factory.cpp.
References jami::emitSignal().
void jami::CallFactory::clear | ( | ) |
Erase all calls.
Definition at line 114 of file call_factory.cpp.
References jami::emitSignal().
bool jami::CallFactory::empty | ( | ) | const |
Return if calls exist.
Type can optionally be specified.
Definition at line 101 of file call_factory.cpp.
References jami::emitSignal().
bool jami::CallFactory::empty | ( | Call::LinkType | link | ) | const |
Definition at line 188 of file call_factory.cpp.
References jami::emitSignal().
void jami::CallFactory::forbid | ( | ) |
Forbid creation of new calls.
Definition at line 58 of file call_factory.cpp.
std::vector< std::shared_ptr< Call > > jami::CallFactory::getAllCalls | ( | ) | const |
Return all calls.
Type can optionally be specified.
Definition at line 136 of file call_factory.cpp.
References jami::emitSignal().
Referenced by jami::Manager::getCallList().
std::vector< std::shared_ptr< Call > > jami::CallFactory::getAllCalls | ( | Call::LinkType | link | ) | const |
Definition at line 213 of file call_factory.cpp.
References jami::emitSignal().
Definition at line 76 of file call_factory.h.
References getCall().
Return call pointer associated to given ID.Type can optionally be specified.
Definition at line 121 of file call_factory.cpp.
References jami::emitSignal().
Referenced by getCall(), and removeCall().
std::shared_ptr< Call > jami::CallFactory::getCall | ( | const std::string & | id, |
Call::LinkType | link | ||
) | const |
Definition at line 197 of file call_factory.cpp.
References jami::emitSignal().
std::vector< std::string > jami::CallFactory::getCallIDs | ( | ) | const |
Return all call's IDs.
Type can optionally be specified.
Definition at line 152 of file call_factory.cpp.
References jami::emitSignal().
std::vector< std::string > jami::CallFactory::getCallIDs | ( | Call::LinkType | link | ) | const |
Definition at line 229 of file call_factory.cpp.
References jami::emitSignal().
std::string jami::CallFactory::getNewCallID | ( | ) | const |
Definition at line 29 of file call_factory.cpp.
References jami::emitSignal(), hasCall(), and jami::JAMI_ID_MAX_VAL.
Referenced by jami::ConversationModule::call(), and newSipCall().
Return if given call exists.
Type can optionally be specified.
Definition at line 87 of file call_factory.cpp.
References jami::emitSignal().
Referenced by getNewCallID().
bool jami::CallFactory::hasCall | ( | const std::string & | id, |
Call::LinkType | link | ||
) | const |
Definition at line 179 of file call_factory.cpp.
References jami::emitSignal().
std::shared_ptr< SIPCall > jami::CallFactory::newSipCall | ( | const std::shared_ptr< SIPAccountBase > & | account, |
Call::CallType | type, | ||
const std::vector< libjami::MediaMap > & | mediaList | ||
) |
Create a new call instance.
account | Account used to create this call |
type | Set definitely this call as incoming/outgoing |
mediaList | The list of media to include |
Definition at line 40 of file call_factory.cpp.
References jami::emitSignal(), getNewCallID(), and JAMI_WARN.
Referenced by jami::JamiAccount::newIncomingCall(), and jami::SIPAccount::newIncomingCall().
Remove given call instance from call list.
Definition at line 64 of file call_factory.cpp.
References jami::emitSignal(), jami::Call::getCallId(), jami::Call::getLinkType(), and JAMI_DBG.
Referenced by removeCall().
Accessor on removeCall with callID than instance.
Definition at line 76 of file call_factory.cpp.
References jami::emitSignal(), getCall(), JAMI_ERR, and removeCall().