Ring Daemon 16.0.0
|
#include <account_factory.h>
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< Account > | createAccount (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< Account > | getAccount (std::string_view accountId) const |
template<> | |
std::shared_ptr< Account > | getAccount (std::string_view id) const |
template<class T = Account> | |
std::shared_ptr< T > | getAccount (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 |
Definition at line 36 of file account_factory.h.
jami::AccountFactory::AccountFactory | ( | ) |
Definition at line 33 of file account_factory.cpp.
References jami::JamiAccount::ACCOUNT_TYPE, and jami::SIPAccount::ACCOUNT_TYPE.
std::size_t jami::AccountFactory::accountCount | ( | ) | const |
Definition at line 170 of file account_factory.cpp.
References jami::emitSignal().
Definition at line 82 of file account_factory.h.
References jami::emitSignal().
std::size_t jami::AccountFactory::accountCount | ( | ) | const |
void jami::AccountFactory::clear | ( | ) |
Definition at line 114 of file account_factory.cpp.
References jami::emitSignal().
Definition at line 61 of file account_factory.h.
References jami::emitSignal().
void jami::AccountFactory::clear | ( | ) |
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().
bool jami::AccountFactory::empty | ( | ) | const |
Definition at line 155 of file account_factory.cpp.
References jami::emitSignal().
Definition at line 73 of file account_factory.h.
References jami::emitSignal().
bool jami::AccountFactory::empty | ( | ) | const |
std::shared_ptr< Account > jami::AccountFactory::getAccount | ( | std::string_view | accountId | ) | const |
std::shared_ptr< Account > jami::AccountFactory::getAccount | ( | std::string_view | id | ) | const |
Definition at line 139 of file account_factory.cpp.
References jami::emitSignal().
|
inline |
Definition at line 94 of file account_factory.h.
References jami::emitSignal().
Referenced by removeAccount().
std::vector< std::shared_ptr< Account > > jami::AccountFactory::getAllAccounts | ( | ) | const |
Definition at line 122 of file account_factory.cpp.
References jami::emitSignal().
|
inline |
Definition at line 110 of file account_factory.h.
References jami::emitSignal().
std::vector< std::shared_ptr< Account > > jami::AccountFactory::getAllAccounts | ( | ) | const |
bool jami::AccountFactory::hasAccount | ( | std::string_view | id | ) | const |
Definition at line 99 of file account_factory.cpp.
References jami::emitSignal().
|
inline |
Definition at line 52 of file account_factory.h.
References jami::emitSignal().
Referenced by createAccount(), jami::Manager::hasAccount(), and jami::Manager::loadAccountMap().
bool jami::AccountFactory::hasAccount | ( | std::string_view | id | ) | const |
bool jami::AccountFactory::isSupportedType | ( | std::string_view | accountType | ) | const |
Definition at line 67 of file account_factory.cpp.
Definition at line 73 of file account_factory.cpp.
References jami::emitSignal(), and JAMI_DEBUG.
Referenced by jami::Manager::removeAccount(), and removeAccount().
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().
|
static |
Definition at line 39 of file account_factory.h.
Referenced by jami::Manager::addAccount().