Class sh::tools::accounts::AccountsManager

class sh::tools::accounts::AccountsManager : public sh::base::Singleton

Storage for account data (for accessing network drives).

Public Functions

QList<std::shared_ptr<Account>> findAccounts(std::shared_ptr<Account> pattern)

Finds account infos by a given pattern.

void storeAccount(std::shared_ptr<Account> account)

Stores account infos.

void registerProvider(std::shared_ptr<AbstractAccountsProvider> provider)

Registers a new accounts provider.

void doInitialize()

Executes singleton initialization.

void doShutdown()

Executes singleton shutdown.

void shutdown()

Shutdown down this singleton.

bool isAlive()

Returns if this singleton is alive (true until its shutdown begins).

Private Functions

AccountsManager()

Private Members

QList<std::shared_ptr<AbstractAccountsProvider>> accountsproviders
QMutex mutex