Skip to content
Snippets Groups Projects
Commit 4d4fdb80 authored by Ming Rui Zhang's avatar Ming Rui Zhang
Browse files

test: add accountDetailsChanged signal

To differentiate from accountStatusChanged

accountStatusChanged is emitted in onAccountDetailsChanged
any client code that actually depends on accountDetails and
connects to accountStatusChanged should switch the connection
to listen for accountDetailsChanged

Change-Id: I131493b831a2a6d32fae67c5c1af798a066e38a7
parent ffd8c505
Branches
No related tags found
No related merge requests found
...@@ -271,6 +271,11 @@ Q_SIGNALS: ...@@ -271,6 +271,11 @@ Q_SIGNALS:
* @param accountID * @param accountID
*/ */
void accountStatusChanged(const QString& accountID); void accountStatusChanged(const QString& accountID);
/**
* Connect this signal to know when the details of an account has changed.
* @param accountID
*/
void accountDetailsChanged(const QString& accountID);
/** /**
* Connect this signal to know when an account was added. * Connect this signal to know when an account was added.
* @param accountID * @param accountID
......
...@@ -566,7 +566,9 @@ NewAccountModelPimpl::slotAccountDetailsChanged(const QString& accountId, ...@@ -566,7 +566,9 @@ NewAccountModelPimpl::slotAccountDetailsChanged(const QString& accountId,
accountInfo.registeredName = new_username; accountInfo.registeredName = new_username;
emit linked.profileUpdated(accountId); emit linked.profileUpdated(accountId);
} }
// TODO: Remove accountStatusChanged here.
emit linked.accountStatusChanged(accountId); emit linked.accountStatusChanged(accountId);
emit linked.accountDetailsChanged(accountId);
} }
void void
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment