newaccountmodel: stop using old lrc for accountsChanged signal
Add a CallbackHandler entry for deamon signal accountsChanged.
Add an updateAccounts() function to the NewAccountModel and connect it
to this new signal. This function detects new accounts and account
removals. It calls addToAccounts and removeFromAccounts (formerly
slotAccountRemoved) when appropriate.
Stop using registrationStateChanged signal to detect new accounts.
Fix various race conditions and potential errors during account
creation and removal.
Change-Id: Id774df852e63b69658160473962ec499fc244c53
Reviewed-by:
Andreas Traczyk <andreas.traczyk@savoirfairelinux.com>
Showing