|
Ring Daemon
|
#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 163 of file call_factory.cpp.
References jami::emitSignal().

| std::size_t jami::CallFactory::callCount | ( | Call::LinkType | link | ) | const |
Definition at line 241 of file call_factory.cpp.
References jami::emitSignal().

| void jami::CallFactory::clear | ( | ) |
Erase all calls.
Definition at line 110 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 97 of file call_factory.cpp.
References jami::emitSignal().

| bool jami::CallFactory::empty | ( | Call::LinkType | link | ) | const |
Definition at line 184 of file call_factory.cpp.
References jami::emitSignal().

| void jami::CallFactory::forbid | ( | ) |
Forbid creation of new calls.
Definition at line 54 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 132 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 209 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 117 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 193 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 148 of file call_factory.cpp.
References jami::emitSignal().

| std::vector< std::string > jami::CallFactory::getCallIDs | ( | Call::LinkType | link | ) | const |
Definition at line 225 of file call_factory.cpp.
References jami::emitSignal().

| std::string jami::CallFactory::getNewCallID | ( | ) | const |
Definition at line 26 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 83 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 175 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 36 of file call_factory.cpp.
References jami::emitSignal(), getNewCallID(), and JAMI_WARN.
Referenced by jami::SIPAccount::newIncomingCall().

Remove given call instance from call list.
Definition at line 60 of file call_factory.cpp.
References jami::emitSignal(), jami::Call::getCallId(), jami::Call::getLinkType(), and JAMI_DBG.
Referenced by removeCall(), and jami::Call::removeCall().

Accessor on removeCall with callID than instance.
Definition at line 72 of file call_factory.cpp.
References jami::emitSignal(), getCall(), JAMI_ERR, and removeCall().
