Ring Daemon 16.0.0
Loading...
Searching...
No Matches
jami::AccountFactory Class Reference

#include <account_factory.h>

Collaboration diagram for jami::AccountFactory:
Collaboration graph

Public Member Functions

template<>
std::size_t accountCount () const
 
template<class T = Account>
std::size_t accountCount () const
 
template<>
std::size_t accountCount () const
 
 AccountFactory ()
 
template<>
void clear ()
 
template<class T = Account>
void clear ()
 
template<>
void clear ()
 
std::shared_ptr< AccountcreateAccount (std::string_view accountType, const std::string &id)
 
template<>
bool empty () const
 
template<class T = Account>
bool empty () const
 
template<>
bool empty () const
 
template<>
std::shared_ptr< AccountgetAccount (std::string_view accountId) const
 
template<>
std::shared_ptr< AccountgetAccount (std::string_view id) const
 
template<class T = Account>
std::shared_ptr< TgetAccount (std::string_view id) const
 
template<>
std::vector< std::shared_ptr< Account > > getAllAccounts () const
 
template<class T = Account>
std::vector< std::shared_ptr< T > > getAllAccounts () const
 
template<>
std::vector< std::shared_ptr< Account > > getAllAccounts () const
 
template<>
bool hasAccount (std::string_view id) const
 
template<class T = Account>
bool hasAccount (std::string_view id) const
 
template<>
bool hasAccount (std::string_view id) const
 
bool isSupportedType (std::string_view accountType) const
 
void removeAccount (Account &account)
 
void removeAccount (std::string_view id)
 

Static Public Attributes

static const std::string_view DEFAULT_ACCOUNT_TYPE = SIPAccount::ACCOUNT_TYPE
 

Detailed Description

Definition at line 36 of file account_factory.h.

Constructor & Destructor Documentation

◆ AccountFactory()

jami::AccountFactory::AccountFactory ( )

Member Function Documentation

◆ accountCount() [1/3]

template<>
std::size_t jami::AccountFactory::accountCount ( ) const

Definition at line 170 of file account_factory.cpp.

References jami::emitSignal().

Here is the call graph for this function:

◆ accountCount() [2/3]

template<class T = Account>
std::size_t jami::AccountFactory::accountCount ( ) const
inline

Definition at line 82 of file account_factory.h.

References jami::emitSignal().

Here is the call graph for this function:

◆ accountCount() [3/3]

template<>
std::size_t jami::AccountFactory::accountCount ( ) const

◆ clear() [1/3]

template<>
void jami::AccountFactory::clear ( )

Definition at line 114 of file account_factory.cpp.

References jami::emitSignal().

Here is the call graph for this function:

◆ clear() [2/3]

template<class T = Account>
void jami::AccountFactory::clear ( )
inline

Definition at line 61 of file account_factory.h.

References jami::emitSignal().

Here is the call graph for this function:

◆ clear() [3/3]

template<>
void jami::AccountFactory::clear ( )

◆ createAccount()

std::shared_ptr< Account > jami::AccountFactory::createAccount ( std::string_view  accountType,
const std::string &  id 
)

Definition at line 44 of file account_factory.cpp.

References jami::emitSignal(), hasAccount(), and JAMI_ERROR.

Referenced by jami::Manager::addAccount(), jami::Manager::loadAccountAndConversation(), and jami::Manager::loadAccountMap().

Here is the call graph for this function:

◆ empty() [1/3]

template<>
bool jami::AccountFactory::empty ( ) const

Definition at line 155 of file account_factory.cpp.

References jami::emitSignal().

Here is the call graph for this function:

◆ empty() [2/3]

template<class T = Account>
bool jami::AccountFactory::empty ( ) const
inline

Definition at line 73 of file account_factory.h.

References jami::emitSignal().

Here is the call graph for this function:

◆ empty() [3/3]

template<>
bool jami::AccountFactory::empty ( ) const

◆ getAccount() [1/3]

template<>
std::shared_ptr< Account > jami::AccountFactory::getAccount ( std::string_view  accountId) const

◆ getAccount() [2/3]

template<>
std::shared_ptr< Account > jami::AccountFactory::getAccount ( std::string_view  id) const

Definition at line 139 of file account_factory.cpp.

References jami::emitSignal().

Here is the call graph for this function:

◆ getAccount() [3/3]

template<class T = Account>
std::shared_ptr< T > jami::AccountFactory::getAccount ( std::string_view  id) const
inline

Definition at line 94 of file account_factory.h.

References jami::emitSignal().

Referenced by removeAccount().

Here is the call graph for this function:

◆ getAllAccounts() [1/3]

template<>
std::vector< std::shared_ptr< Account > > jami::AccountFactory::getAllAccounts ( ) const

Definition at line 122 of file account_factory.cpp.

References jami::emitSignal().

Here is the call graph for this function:

◆ getAllAccounts() [2/3]

template<class T = Account>
std::vector< std::shared_ptr< T > > jami::AccountFactory::getAllAccounts ( ) const
inline

Definition at line 110 of file account_factory.h.

References jami::emitSignal().

Here is the call graph for this function:

◆ getAllAccounts() [3/3]

template<>
std::vector< std::shared_ptr< Account > > jami::AccountFactory::getAllAccounts ( ) const

◆ hasAccount() [1/3]

template<>
bool jami::AccountFactory::hasAccount ( std::string_view  id) const

Definition at line 99 of file account_factory.cpp.

References jami::emitSignal().

Here is the call graph for this function:

◆ hasAccount() [2/3]

template<class T = Account>
bool jami::AccountFactory::hasAccount ( std::string_view  id) const
inline

Definition at line 52 of file account_factory.h.

References jami::emitSignal().

Referenced by createAccount(), jami::Manager::hasAccount(), and jami::Manager::loadAccountMap().

Here is the call graph for this function:

◆ hasAccount() [3/3]

template<>
bool jami::AccountFactory::hasAccount ( std::string_view  id) const

◆ isSupportedType()

bool jami::AccountFactory::isSupportedType ( std::string_view  accountType) const

Definition at line 67 of file account_factory.cpp.

◆ removeAccount() [1/2]

void jami::AccountFactory::removeAccount ( Account account)

Definition at line 73 of file account_factory.cpp.

References jami::emitSignal(), and JAMI_DEBUG.

Referenced by jami::Manager::removeAccount(), and removeAccount().

Here is the call graph for this function:

◆ removeAccount() [2/2]

void jami::AccountFactory::removeAccount ( std::string_view  id)

Definition at line 87 of file account_factory.cpp.

References jami::emitSignal(), getAccount(), JAMI_ERROR, and removeAccount().

Here is the call graph for this function:

Member Data Documentation

◆ DEFAULT_ACCOUNT_TYPE

const std::string_view jami::AccountFactory::DEFAULT_ACCOUNT_TYPE = SIPAccount::ACCOUNT_TYPE
static

Definition at line 39 of file account_factory.h.

Referenced by jami::Manager::addAccount().


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