accounts: adds an account ID property to the Account class
- adds account id property to the Account class
- adds reference to account ID in AccountsViewModel
- adds loading of account ID in RingD::reloadAccountList
Change-Id: I757443fb08e3f48f1e39f2b21785384d6f41d8b6
Tuleap: #976
diff --git a/AccountsViewModel.cpp b/AccountsViewModel.cpp
index 11b8c86..36e891f 100644
--- a/AccountsViewModel.cpp
+++ b/AccountsViewModel.cpp
@@ -29,12 +29,13 @@
}
void
-AccountsViewModel::add(std::string& name, std::string& ringID, std::string& accountType)
+AccountsViewModel::add(std::string& name, std::string& ringID, std::string& accountType, std::string& accountID)
{
accountsList_->Append(ref new Account(
Utils::toPlatformString(name),
Utils::toPlatformString(ringID),
- Utils::toPlatformString(accountType)
+ Utils::toPlatformString(accountType),
+ Utils::toPlatformString(accountID)
));
}